mikechongcan/openai-codex-claude-code-proxy — explained in plain English
Analysis updated 2026-05-18
Run Claude Code using GPT-5.6 models instead of Anthropic's own models.
Route Claude Code's main conversation and its subagents to different GPT model tiers to control cost.
Connect Claude Code to an Azure OpenAI deployment using API keys instead of a subscription login.
| mikechongcan/openai-codex-claude-code-proxy | 0marildo/imago | 100/geotwitter | |
|---|---|---|---|
| Stars | 3 | 3 | 3 |
| Language | Python | Python | Python |
| Last pushed | — | — | 2015-09-10 |
| Maintenance | — | — | Dormant |
| Setup difficulty | hard | easy | moderate |
| Complexity | 4/5 | 2/5 | 3/5 |
| Audience | developer | general | general |
Figures from each repo's GitHub metadata at analysis time.
Requires a separate CLIProxyAPI install plus either an OpenAI/Codex subscription or an Azure OpenAI deployment with API keys.
This project lets you run Claude Code, Anthropic's coding assistant tool, using GPT models instead of Claude models underneath. It works by starting a small local proxy server that translates the requests Claude Code normally sends to Anthropic into requests that OpenAI or Azure OpenAI can understand, and translates the responses back so Claude Code does not notice the difference. It ships as two launcher scripts. One connects Claude Code to GPT-5.6 through an OpenAI or Codex subscription using a browser login, and the other connects it to a GPT-5.6 deployment hosted on Azure OpenAI using an API key. Both scripts start the local proxy automatically, keep your actual API credentials out of Claude Code itself, and use separate model names for each provider so a request cannot accidentally bill the wrong account. A notable feature is how it handles subagents, the smaller helper AI tasks Claude Code spins up for specific jobs. The main conversation runs on the largest model tier, while subagents can be routed to smaller, cheaper GPT-5.6 tiers depending on whether the task calls for careful review or quick exploration. This routing can be controlled per session or forced onto a single tier. Setting it up requires macOS or Linux, Claude Code itself installed, a separate open source tool called CLIProxyAPI, Python 3, and either an OpenAI or Codex subscription or an Azure OpenAI account with a deployed GPT model. Setup involves cloning the repository, filling in a configuration file with credentials and a generated local access token, and authenticating through a one-time browser login for the OpenAI OAuth path or by pasting Azure keys for the Azure path. The project also includes scripts to test that the connection and Azure's prompt caching feature are working correctly, along with security notes about keeping the local proxy off any public network.
A local proxy that lets Claude Code run on GPT-5.6 models via OpenAI/Codex OAuth or Azure OpenAI, with cost-tiered routing for subagents.
Mainly Python. The stack also includes Python, Claude Code, CLIProxyAPI.
No license information is provided in the README.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
double-check against the repo, no cap.