Codex
Works on software engineering tasks through a coding agent. Point it at ExoticRouter with a base URL and a key: here are the values, and where they go in Codex.
What to enter
Section titled “What to enter”| 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.
The config file
Section titled “The config file”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.
exoticrouter.config.toml goes here:
| System | Path |
|---|---|
| macOS | ~/.codex/exoticrouter.config.toml |
| Linux | ~/.codex/exoticrouter.config.toml |
| Windows | %USERPROFILE%\.codex\exoticrouter.config.toml |
model = "gpt-6.2-astra"model_provider = "exoticrouter"
[model_providers.exoticrouter]name = "ExoticRouter"base_url = "https://api.exoticrouter.com/v1"wire_api = "responses"experimental_bearer_token = "sk-er-YOUR-KEY"Start it with codex --profile exoticrouter (Codex 0.134 or newer). Your own config.toml is left as it is.
Installing Codex
Section titled “Installing Codex”If Codex is not on the machine yet, this is its own installer:
| System | Command |
|---|---|
| macOS | curl -fsSL https://chatgpt.com/codex/install.sh | sh |
| Linux | curl -fsSL https://chatgpt.com/codex/install.sh | sh |
| Windows | powershell -ExecutionPolicy ByPass -c "irm https://chatgpt.com/codex/install.ps1 | iex" |
The models it can use
Section titled “The models it can use”Codex 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 Codex’s own documentation.
More coding agents
Section titled “More coding agents”- Claude Code: Works on a codebase from the terminal, IDE, or web.
- 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.
- Goose: Runs an extensible local agent for engineering work.