Use NekoRouter in Codex
Connect Codex CLI to NekoRouter through the Responses API and GPT models.
| Format | OpenAI Responses |
| Base URL | https://nekorouter.cc/v1 |
| Models | GPT |
Setup
- Get a key: Quick start.
- Add the provider to
~/.codex/config.toml(the folder can be changed withCODEX_HOME; on Windows use.codexin your user profile):
model = "gpt-6-sol"
model_provider = "nekorouter"
[model_providers.nekorouter]
name = "NekoRouter"
base_url = "https://nekorouter.cc/v1"
env_key = "NEKOROUTER_API_KEY"
wire_api = "responses"
export NEKOROUTER_API_KEY=sk-...and runcodex(interactive) orcodex exec "...".
Checked on 2026-10-25 with Codex CLI 0.164.0.
Support: Telegram @nekorouter_cc.