Skip to content
exoticrouter.com ↗

Command Code

Runs a coding agent from the terminal. Point it at ExoticRouter with a base URL and a key: here are the values, and where they go in Command Code.

Setting Value
Base URL https://api.exoticrouter.com/v1
API key Your key, from the API keys page
Model An id such as anthropic/claude-sonnet-5-5, from the models page

A tool that adds /v1 to the address by itself is given https://api.exoticrouter.com instead.

An example with a handful of models and a stand-in for the key. Put your own key where it says sk-er-YOUR-KEY.

providers.json goes here:

System Path
macOS ~/.commandcode/providers.json
Linux ~/.commandcode/providers.json
Windows %USERPROFILE%\.commandcode\providers.json
providers.json
{
"provider": {
"exoticrouter": {
"name": "ExoticRouter",
"baseURL": "https://api.exoticrouter.com/v1",
"apiKey": "$EXOTICROUTER_API_KEY",
"models": {
"anthropic/claude-fable-5-2": { "name": "Claude Fable 5.2", "contextWindow": 1000000, "maxOutput": 64000, "reasoning": true },
"anthropic/claude-haiku-5-5": { "name": "Claude Haiku 5.5", "contextWindow": 1000000, "maxOutput": 64000, "reasoning": true },
"anthropic/claude-opus-5": { "name": "Claude Opus 5", "contextWindow": 1000000, "maxOutput": 64000, "reasoning": true },
"anthropic/claude-opus-5-5": { "name": "Claude Opus 5.5", "contextWindow": 1000000, "maxOutput": 128000, "reasoning": true },
"anthropic/claude-sonnet-5": { "name": "Claude Sonnet 5", "contextWindow": 1000000, "maxOutput": 64000, "reasoning": true },
"anthropic/claude-sonnet-5-5": { "name": "Claude Sonnet 5.5", "contextWindow": 1000000, "maxOutput": 64000, "reasoning": true },
"openai/gpt-6.1-sol": { "name": "GPT-6.1 Sol", "contextWindow": 1050000, "maxOutput": 128000, "reasoning": true },
"openai/gpt-6.2-astra": { "name": "GPT-6.2 Astra", "contextWindow": 1050000, "maxOutput": 128000, "reasoning": true },
"openai/gpt-6.2-sol": { "name": "GPT-6.2 Sol", "contextWindow": 1050000, "maxOutput": 128000, "reasoning": true },
"360/gpt-6.1-sol": { "name": "gpt-6.1-sol", "contextWindow": 128000, "maxOutput": 16384 }
}
}
}
}

If the file is there already, add this to it and keep the settings you have.

env.sh
export EXOTICROUTER_API_KEY="sk-er-YOUR-KEY"

Command Code does not take a key written in the file, so set EXOTICROUTER_API_KEY to your key in your shell profile (on Windows, as a user variable): this step is by hand. Then start cmd, open /model and pick a model listed under ExoticRouter.

If Command Code is not on the machine yet, this is its own installer:

System Command
macOS npm i -g command-code
Linux npm i -g command-code
Windows npm i -g command-code

Command Code speaks the OpenAI API, which every text model in the catalogue answers: Claude, GPT, Gemini and the rest, each by its id.

The setting is described in Command Code’s own documentation.

  • Claude Code: Works on a codebase from the terminal, IDE, or web.
  • Codex: Works on software engineering tasks through a coding agent.
  • OpenCode: Runs an open-source coding agent with configurable model providers.
  • Kilo Code: Open-source coding agent for editing and working with repositories.
  • Qwen Code: Runs the Qwen coding agent in a terminal.
  • Gemini CLI: Brings Google’s Gemini agent into a terminal.