Any provider
DeepSeek, Kimi, GLM, Grok, Claude, opencode Go, Command Code, Meta and 20+ OpenAI-compatible providers.
Codex Router is a local proxy that adds DeepSeek, Kimi, GLM, Grok and Claude to the Codex App and CLI — native in the model picker, with OAuth or API keys, and your GPT models left untouched.
Install the router from this public repository:
https://github.com/duolahypercho/codex-router
Follow AGENTS.md. Preserve my existing Codex models, profiles, settings, and
ChatGPT login. Use only the provider authentication I choose, safely migrate
only recognized older versions, run the Codex doctor, and leave the final app
restart to me. Never ask me to paste a token or API key into chat. curl -fsSL https://raw.githubusercontent.com/duolahypercho/codex-router/main/install.sh \
| sh -s -- --target codex --guided $installer = Join-Path $env:TEMP "codex-router-install.ps1"
Invoke-WebRequest https://raw.githubusercontent.com/duolahypercho/codex-router/main/install.ps1 -OutFile $installer
powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer -Target codex -Guided Codex speaks the Responses API. The router authenticates the caller, LiteLLM translates the request to each provider’s native protocol, and only the selected provider’s credential leaves your machine. Learn more →
Codex Router is a free, open-source, credential-isolating model router that lets you use DeepSeek, Kimi, GLM, Grok and Claude inside the Codex App and CLI. Instead of replacing your setup, Codex Router merges external models into Codex’s native model catalog, so they appear in the normal model picker right next to your GPT models — with OAuth or API keys, per-provider credential isolation, and your ChatGPT login left untouched. Everything runs locally on 127.0.0.1: the router authenticates the caller, LiteLLM translates each request to the provider’s protocol, and only the selected provider’s credential ever leaves your machine.
Installing Codex Router takes one command — see the install guide for macOS, Linux and Windows — and a doctor command verifies every layer. Each model page (codex deepseek, codex kimi, codex glm, codex grok, codex claude) explains the exact commands, OAuth versus API-key setup, verification steps and common pitfalls. If a model is missing from the picker or a provider stops working, the troubleshooting guide covers the most common fixes, and the changelog tracks every release.
DeepSeek, Kimi, GLM, Grok, Claude, opencode Go, Command Code, Meta and 20+ OpenAI-compatible providers.
Reuse Kimi or Grok CLI logins, or store keys in hidden per-user prompts — auto-refreshed and isolated per provider.
Routed models appear in the Codex App and CLI picker with reasoning levels, next to the native GPT entries.
The built-in OpenAI provider, ChatGPT login, profiles and MCP settings are preserved exactly as they were.
Routed models work as Codex sub-agents, with encrypted task payloads relayed through the native backend.
Everything listens on 127.0.0.1. No cloud, no database, no third-party proxy between you and your provider.
Install the router, restart Codex, and DeepSeek, Kimi, GLM, Grok and Claude appear in your normal model picker — right next to the GPT models you already have. Nothing else in your setup changes.
Install Codex Router in one command and verify it with the doctor.
macOS, Windows, Linux and agent-driven installation guides.
How it works, troubleshooting, compatible apps and comparisons.
Changelog, FAQ, model matrix and about this project.
Source, issues, security policy and MIT license on GitHub.