The goal is not another model gateway. The goal is to make the gateway remember.
One OpenAI-compatible endpoint for many providers, with per-user memory built in. Bring your own keys.
It remembers
Store what your app knows about each user once. RouterMax adds it to the prompt for whichever model answers, so switching models never means starting over.
Many models, one API
Call Claude, GPT, Gemini and others through the OpenAI format. Ask for a model by name or by tier, and list fallbacks in case a provider is down.
Your keys, your bill
You add your own provider keys. They are encrypted at rest. RouterMax does not resell inference, and it does not store prompts or replies.
Drop-in for the OpenAI SDK
Change the base URL and the key. Add a user id when you want memory.
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://YOUR-ROUTERMAX-HOST/v1',
apiKey: process.env.ROUTERMAX_KEY,
})
const reply = await client.chat.completions.create({
model: 'routermax/balanced',
messages: [{ role: 'user', content: 'Summarize what you know about me.' }],
// @ts-expect-error RouterMax extension
routermax: { user_id: 'customer-42' },
})Providers
Tested against live accounts: Anthropic, OpenAI, Cohere, DeepSeek and GLM. Also wired but not yet tested live: Gemini, Perplexity and Qwen.