Models and providers
A model is written provider/model: anthropic/claude-sonnet-4-5, openai/gpt-5, google/gemini-2.5-pro,
openrouter/google/gemma-4-31b-it:free. Choose it with --model, /model, the model setting or the
MAXXING_CODE_MODEL variable. Without any of these, a recent model of the first provider that has a key is used.
maxxing-code models # providers that have a key, and every provider known
maxxing-code models openrouter # the models of one provider: context size, prices
maxxing-code models --refresh # update the catalog from models.dev
The catalog
The binary embeds a reduced copy of models.dev: about 300 providers with, for each model, the
context window, the output limit, the prices and whether it reasons or reads images. It is what makes /cost and
/context exact. It is never refreshed behind your back: models --refresh downloads a new copy into
~/.maxxing-code/catalog.json.
A model that is not in the catalog still works (context assumed 128k, cost unknown).
Four protocols
| Protocol | Providers |
|---|---|
| Anthropic Messages | Anthropic, and gateways that speak it |
| OpenAI Chat Completions | OpenRouter, DeepSeek, Groq, Mistral, xAI, Together, local servers… anything "OpenAI-compatible" |
| OpenAI Responses | OpenAI |
| Gemini |
Subscriptions (ChatGPT, Claude, Copilot logins) are not supported: API keys only.
Your own endpoint
Any address works: a local model (Ollama, LM Studio, vLLM, llama.cpp), a gateway, a compatible service. In the
terminal, /connect then Custom API: type the address, the key (empty for a server that needs none), the kind
of API, and pick a model from the list the server gives. The first launch offers the same choice.
It is saved in ~/.maxxing-code/settings.json, which you can also write by hand:
{
"providers": {
"local": { "protocol": "openai-chat", "baseURL": "http://localhost:11434/v1", "models": ["qwen3-coder"], "context": 32768 },
"work": { "protocol": "anthropic", "baseURL": "https://llm.example.com", "apiKeyEnv": "WORK_LLM_KEY", "name": "Work gateway" }
},
"model": "local/qwen3-coder"
}
protocol is one of openai-chat, openai-responses, anthropic, gemini. Without apiKeyEnv, no key is sent.
The same block can override the baseURL of a known provider. models is what /model lists for it, and
context is the context size of its models in tokens (128,000 when absent): set it to what the server really
allows, since the conversation is summarized when it gets close to that size. Costs of your own endpoints show as 0.
Local models
- Context size. A local server often serves a model with a smaller context than the model allows and silently
cuts what does not fit: the agent then loses its instructions.
/connectasks for the size once: give the one the server really uses. - Tool calls written as text. Small models often write a tool call as JSON in their answer instead of making it. When the whole answer is such a call, Maxxing Code runs it as a call.
- Small contexts. Under 16,384 tokens, tool descriptions are shortened to their first sentence.
/connecton an endpoint you already saved reads its list of models again.
Costs
Each model call records its tokens (input, cached, cache writes, output, reasoning) in the session file. The cost
is the one the provider reports when it does (OpenRouter), otherwise tokens × catalog prices. /cost shows the
session; the status line shows the running total; --json and ACP carry it per call.
With Anthropic models the system prompt and the conversation are marked for prompt caching, which makes long sessions several times cheaper; Claude models reached through OpenRouter are cached too. Most other providers cache by themselves.
Reasoning effort
--effort, /effort or the effort setting: none, low, medium, high, max. It is sent to models that
have a reasoning setting and ignored by the others.
Maxxing Code