Claude Code model router

Claudegpt

Use ChatGPT/Codex OAuth in Claude Code without an API key

Install

Install
cargo install --git https://github.com/pilc80/claudex --force

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/pilc80/claudegpt.git

From 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…
Read the full README on GitHub

Details

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

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.