Reference

Migration from OpenRouter

Hober is a drop-in replacement for OpenRouter. Change two lines and save immediately.

Before (OpenRouter)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://openrouter.ai/api",
  apiKey: "sk-or-v1-abc123...",
});
After (Hober)
import OpenAI from "openai";

const client = new OpenAI({
  baseURL: "https://api.hober.dev",
  apiKey: "hb_live_your_key_here",
});

Python

Before
client = OpenAI(
    base_url="https://openrouter.ai/api",
    api_key="sk-or-v1-abc123...",
)
After
client = OpenAI(
    base_url="https://api.hober.dev",
    api_key="hb_live_your_key_here",
)

That's it. Model slugs, message format, streaming, tool calls — everything else stays exactly the same. Your code works instantly.