Skip to content
exoticrouter.com ↗

Pi

Extensible terminal coding harness with a programmable agent loop. Point it at ExoticRouter with a base URL and a key: here are the values, and where they go in Pi.

Setting Value
Base URL, OpenAI-compatible API https://api.exoticrouter.com/v1
Base URL, Anthropic API https://api.exoticrouter.com
Base URL, Gemini API https://api.exoticrouter.com
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.

models.json goes here:

System Path
macOS ~/.pi/agent/models.json
Linux ~/.pi/agent/models.json
Windows %USERPROFILE%\.pi\agent\models.json
models.json
{
"$schema": "https://pi.dev/schemas/models.schema.json",
"providers": {
"exoticrouter": {
"name": "ExoticRouter",
"baseUrl": "https://api.exoticrouter.com/v1",
"api": "openai-completions",
"apiKey": "sk-er-YOUR-KEY",
"models": [
{ "id": "anthropic/claude-fable-5-2", "name": "Claude Fable 5.2", "reasoning": true, "input": ["text", "image"], "contextWindow": 1000000, "maxTokens": 64000 },
{ "id": "anthropic/claude-haiku-5-5", "name": "Claude Haiku 5.5", "reasoning": true, "input": ["text", "image"], "contextWindow": 1000000, "maxTokens": 64000 },
{ "id": "anthropic/claude-opus-5", "name": "Claude Opus 5", "reasoning": true, "input": ["text", "image"], "contextWindow": 1000000, "maxTokens": 64000 },
{ "id": "anthropic/claude-opus-5-5", "name": "Claude Opus 5.5", "reasoning": true, "input": ["text", "image"], "contextWindow": 1000000, "maxTokens": 128000 },
{ "id": "anthropic/claude-sonnet-5", "name": "Claude Sonnet 5", "reasoning": true, "input": ["text", "image"], "contextWindow": 1000000, "maxTokens": 64000 },
{ "id": "anthropic/claude-sonnet-5-5", "name": "Claude Sonnet 5.5", "reasoning": true, "input": ["text", "image"], "contextWindow": 1000000, "maxTokens": 64000 },
{ "id": "openai/gpt-6.1-sol", "name": "GPT-6.1 Sol", "reasoning": true, "input": ["text", "image"], "contextWindow": 1050000, "maxTokens": 128000 },
{ "id": "openai/gpt-6.2-astra", "name": "GPT-6.2 Astra", "reasoning": true, "input": ["text", "image"], "contextWindow": 1050000, "maxTokens": 128000 },
{ "id": "openai/gpt-6.2-sol", "name": "GPT-6.2 Sol", "reasoning": true, "input": ["text", "image"], "contextWindow": 1050000, "maxTokens": 128000 },
{ "id": "360/gpt-6.1-sol", "name": "gpt-6.1-sol", "contextWindow": 128000, "maxTokens": 16384 }
]
}
}
}

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

Start pi, open /model and pick a model listed under ExoticRouter. To start with one, run pi --model exoticrouter/anthropic/claude-opus-5-5.

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

System Command
macOS curl -fsSL https://pi.dev/install.sh | sh
Linux curl -fsSL https://pi.dev/install.sh | sh
Windows powershell -c "irm https://pi.dev/install.ps1 | iex"
API Models
OpenAI-compatible Every text model in the catalogue
Anthropic The Claude models
Gemini The Gemini models

The setting is described in Pi’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.