Any provider
DeepSeek, Kimi, GLM, Grok, Claude, GitHub Copilot, Xiaomi MiMo, opencode Go, Command Code, Meta and 20+ compatible providers — plus local models via Ollama and LM Studio.
Codex Router is a local proxy that adds DeepSeek, Kimi, GLM, Grok, Claude and account-visible GitHub Copilot models to the Codex App and CLI — native in the model picker, with isolated credentials 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 --with-tray $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 -WithTray 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, Claude and account-visible GitHub Copilot models 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, GitHub Copilot, Xiaomi MiMo, opencode Go, Command Code, Meta and 20+ compatible providers — plus local models via Ollama and LM Studio.
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.
Publish the same selected catalog to DeepSeek Harness, Gemini CLI, Cursor, Claude Code, OpenClaw, opencode, pi, omp, Command Code and Hermes Agent without duplicating provider credentials.
The built-in OpenAI provider, ChatGPT login, profiles and MCP settings are preserved exactly as they were.
Routed models keep Codex threads, automations, browser and computer tools, with a managed skill pack and native sub-agent relay.
Everything listens on 127.0.0.1. No cloud, no database, no third-party proxy between you and your provider.
Paste a screenshot into a text-only model and a vision-capable model reads it first — on by default, billed once per image.
Install the router, restart Codex, and authenticated external models 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.