Claude Code model router
Claudegpt
Use ChatGPT/Codex OAuth in Claude Code without an API key
Install
cargo install --git https://github.com/pilc80/claudex --forceFound in the project README. Check it for setup steps after installing.
git clone https://github.com/pilc80/claudegpt.gitFrom the README
claudex β Claude Code proxy for ChatGPT/Codex Use your ChatGPT Plus/Pro or Codex subscription in Claude Code via OAuth, with no OpenAI API key. Claudex is a high-fidelity Claude Code -> OpenAI Responses proxy for ChatGPT/Codex users. It preserves Claude Code workflows across images, files, tool results, /compact, context-limit recovery, prompt-cache usage mapping, and hardened streaming errors. Key features - π ChatGPT/Codex subscriptions β use Claude Code through ChatGPT/Codex OAuth with no OpenAI API key. - π Claude Code workflows β keep tools, agents, long sessions, and parallel work across supported backends. - π Text, image, and file support β translate conversations, vision inputs, file/document blocks, tool calls, and streaming responses. - π 1M context support β make /context aware of verified 1M GPT context windows such as gpt-5.5-pro and newer GPT models. - π Compaction support β preserve /compact, auto-compaction, and context-limit recovery behavior. - π Correct error translation β surface OpenAI/Codex failures as actionable Claude Code errors. - π Setup health checks β use claudex-config config doctor to check config, auth, proxy state, setup, and reauthentication. - π Local-first privacy β run locally with explicit routing; OAuth tokens are read from provider-specific local files or environment variables. - π WebFetch guardrails β WebSearch is disabled for Claude launches because it is not supported through the proxy; known URLs should use WebFetch. Why this fork? Most Claude Code -> Codex proxies are fine for text-only request routing. This fork focuses on preserving full Claude Code workflows when OpenAI Responses/Codex behaves differently from Anthropic Messages: - /compact works with streamed and non-streamed Responses shapes. - Claudeβ¦
Details
- Repository
- pilc80/claudegpt
- Language
- Rust
- License
- MIT
- Last updated
- 1 August 2026
- Topics
- ai-agentsanthropicchatgptclaude-codeclicodexcommand-line-tooldeveloper-toolsllmoauthopenaiopenai-responses
FAQ
What is Claudegpt?
Use ChatGPT/Codex OAuth in Claude Code without an API key It is a model router for Claude Code, from pilc80/claudegpt on GitHub.
How do I install Claudegpt?
Run cargo install --git https://github.com/pilc80/claudex --force, then follow the setup in the README.
Is Claudegpt popular?
pilc80/claudegpt has 33 GitHub stars and 2 forks. It was last updated on 1 August 2026.
More model routers & proxies
CLASP
28jedarden/CLASP
Run Claude Code with any LLM provider β drop-in proxy for OpenAI, Gemini, and more. Go.
Yoshi
31compozy/yoshi
Context-pruning proxy for Claude Code and Codex: Jev judges which history is still needed, measured not claimed. POC here now, heading soon into https://github.com/compozy/compozy
Openproxy
29quangdang46/openproxy
Smart AI proxy router that connects Claude Code, Cursor, Codex, Copilot, and 50+ coding tools to 40+ AI providers with 100+ models. Saves 20-40% tokens via RTK compression, auto-fallback from subscription to cheap to free providers, multi-account round-robin, and a local dashboard.
Claude Gateway
260xMaxMa/claude-gateway
Turn Claude Code into a voice-enabled, multi-channel assistant that runs tasks in parallel
Claude Code Proxy
29AntonioAEMartins/claude-code-proxy
API proxy for Claude CLI β exposes Anthropic Messages API and OpenAI Chat Completions endpoints, powered by your Claude Max subscription
Tokdiet
32agiwhitelist/tokdiet
Local streaming reverse proxy between AI coding agents (Claude Code, Cursor, Codex) and model APIs (Anthropic, OpenAI, Gemini, MiniMax). Meters every token + USD cost, compacts bloated context to cut pay-per-token API spend, and runs shadow-eval to prove quality held. ccusage-style metering + live local dashboard.
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.