in your coding agent
claude code, opencode, codex and pi · every model blackrouter serves (1 now), with its price and context window · each through the api it speaks
coding agents
claude code
messages · /v1/messages
~/.claude/settings.json
/model names it · compacts in its window
set up claude code
opencode
chat completions · /v1/chat/completions
~/.config/opencode/opencode.json
a provider with every model and its price · opencode 1 and 2
set up opencode
codex
responses · /v1/responses
~/.codex/config.toml
a profile: codex -p blackrouter
set up codex
pi
chat completions · /v1/chat/completions
~/.pi/agent/models.json
a provider with every model and its price
set up pi
what each gets
- the api it speaks
- anthropic's events for claude code, openai's responses for codex, chat completions with the reasoning for opencode and pi
- ids that keep working
- model, model@fast, model@abliterated · never @new, a status a route loses once it is measured
- compacts in time
- each model's context window, from /v1/models
nothing to install: each page gives the lines for the agent's own config, to add beside what it holds