Skip to content
exoticrouter.com ↗

Kimi Code

Runs Moonshot’s Kimi coding agent. Point it at ExoticRouter with a base URL and a key: here are the values, and where they go in Kimi Code.

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.

config.toml goes here:

System Path
macOS ~/.kimi-code/config.toml
Linux ~/.kimi-code/config.toml
Windows %USERPROFILE%\.kimi-code\config.toml
config.toml
[providers.exoticrouter]
type = "openai"
display_name = "ExoticRouter"
base_url = "https://api.exoticrouter.com/v1"
api_key = "sk-er-YOUR-KEY"
[models.anthropic-claude-fable-5-2]
provider = "exoticrouter"
model = "anthropic/claude-fable-5-2"
display_name = "Claude Fable 5.2"
max_context_size = 1000000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.anthropic-claude-haiku-5-5]
provider = "exoticrouter"
model = "anthropic/claude-haiku-5-5"
display_name = "Claude Haiku 5.5"
max_context_size = 1000000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.anthropic-claude-opus-5]
provider = "exoticrouter"
model = "anthropic/claude-opus-5"
display_name = "Claude Opus 5"
max_context_size = 1000000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.anthropic-claude-opus-5-5]
provider = "exoticrouter"
model = "anthropic/claude-opus-5-5"
display_name = "Claude Opus 5.5"
max_context_size = 1000000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.anthropic-claude-sonnet-5]
provider = "exoticrouter"
model = "anthropic/claude-sonnet-5"
display_name = "Claude Sonnet 5"
max_context_size = 1000000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.anthropic-claude-sonnet-5-5]
provider = "exoticrouter"
model = "anthropic/claude-sonnet-5-5"
display_name = "Claude Sonnet 5.5"
max_context_size = 1000000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.openai-gpt-6-1-sol]
provider = "exoticrouter"
model = "openai/gpt-6.1-sol"
display_name = "GPT-6.1 Sol"
max_context_size = 1050000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.openai-gpt-6-2-astra]
provider = "exoticrouter"
model = "openai/gpt-6.2-astra"
display_name = "GPT-6.2 Astra"
max_context_size = 1050000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.openai-gpt-6-2-sol]
provider = "exoticrouter"
model = "openai/gpt-6.2-sol"
display_name = "GPT-6.2 Sol"
max_context_size = 1050000
capabilities = [
"thinking",
"image_in",
"tool_use",
]
[models.360-gpt-6-1-sol]
provider = "exoticrouter"
model = "360/gpt-6.1-sol"
display_name = "gpt-6.1-sol"
max_context_size = 128000
capabilities = [
]

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

Start kimi -m anthropic-claude-opus-5-5. Use /model later to switch to another of the ExoticRouter models.

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

System Command
macOS curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
Linux curl -fsSL https://code.kimi.com/kimi-code/install.sh | bash
Windows irm https://code.kimi.com/kimi-code/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 Kimi 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.