Claude Code model router
claude-code-gpt-5-codex
Local proxy to run Claude Code against OpenAI GPT-5 Codex models.
Install
npm install -g @anthropic-ai/claude-codegit clone https://github.com/teremterem/claude-code-gpt-5-codex.gitFrom the README
This repository lets you use Anthropic's Claude Code CLI with OpenAI models such as GPT-5-Codex, GPT-5.1, and others via a local LiteLLM proxy.
⚠️ ATTENTION ⚠️
If you're here to set up your own LiteLLM Server with LibreChat as the web UI (or any other OpenAI / Anthropic API compatible client, for that matter), head over to the litellm-server-boilerplate repository. It contains a "boilerplate" version of this repo with Claude Code CLI stuff stripped away, an optional LibreChat set up, and a README which specifically explains how to build your own AI agents and assistants on top of it.
Quick Start ⚡
Prerequisites
- OpenAI API key 🔑
- Anthropic API key 🔑 - optional (if you decide not to remap some Claude models to OpenAI)
- Either uv or Docker Desktop, depending on your preferred setup method
First time using GPT-5 via API?
If you are going to use GPT-5 via API for the first time, OpenAI may require you to verify your identity via Persona. You may encounter an OpenAI error asking you to “verify your organization.” To resolve this, you can go through the verification process here:
- OpenAI developer platform - Organization settings
Setup 🛠️
1. Clone this repository:
2. Configure Environment Variables:
Copy the template file to create your .env:
Edit .env and add your OpenAI API key:
3. Run the proxy:
1) EITHER via uv (make sure to install uv first):
OPTION 1: Use a script for uv:
OPTION 2: Run via a direct uv command:
2) OR via Docker (make sure to install Docker Desktop first):
OPTION 3: Run Docker in the foreground:
OPTION 4: Run Docker in the background:
OPTION 5: Run Docker via a direct command:
NOTE: To run with this command in the foreground instead of the background, remove the -d flag.
To see the…Details
- Repository
- teremterem/claude-code-gpt-5-codex
- Language
- Python
- License
- MIT
- Last updated
- 22 July 2026
- Topics
- anthropicclaude-codeclaude-code-adapterclaude-code-cliclaude-code-proxygpt-5gpt-5-codexgpt-5-progpt-51gpt-51-codexgpt5gpt51
FAQ
What is claude-code-gpt-5-codex?
Local proxy to run Claude Code against OpenAI GPT-5 Codex models. It is a model router for Claude Code, from teremterem/claude-code-gpt-5-codex on GitHub.
How do I install claude-code-gpt-5-codex?
Run npm install -g @anthropic-ai/claude-code, then follow the setup in the README.
Is claude-code-gpt-5-codex popular?
teremterem/claude-code-gpt-5-codex has 240 GitHub stars and 26 forks. It was last updated on 22 July 2026.
More model routers & proxies
Repowire
271prassanna-ravishankar/repowire
May the agents talk. Connect Claude Code, Opencode, Codex, Pi across projects, across machines and with your telegram
HiRoute
381higress-group/HiRoute
Make Codex and Claude Code subscriptions go further: a local model router that gives routine agent work to economical models and keeps your strongest model for the hard parts.
UltraCode Shim
438OnlyTerp/UltraCode-Shim
Give Claude Code's ultracode mode to ANY model you already pay for. A tiny local proxy + one config.json. Point your AI at AGENTS.md and it sets itself up.
CCSwitcher
206XueshiQiao/CCSwitcher
Switches Claude Code accounts with a click.
Claude Code Cache Fix
449cnighswonger/claude-code-cache-fix
Fixes prompt cache regression in Claude Code that causes up to 20x cost increase on resumed sessions
Mythos Router
306thewaltero/mythos-router
The leaked Anthropic reasoning protocol. Running locally. Zero-drift coding with Strict Write Discipline and adaptive Claude Opus 5 thinking. Mythos
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.