Open-Source Proxy Routes Claude Code Requests to GPT When Rate Limits Hit
A developer has released an open-source tool called claude-gpt that acts as a local proxy to redirect Claude Code requests to OpenAI's GPT models when Anthropic's usage limits are reached. The lightweight solution uses the ANTHROPIC_BASE_URL setting to intercept and translate Anthropic API calls into OpenAI-compatible formats, supporting tools, system prompts, and streaming. Users can switch between models on the fly using a /model command without restarting their workspace. The tool requires Node.js v18 or higher and is available on GitHub. Notably, its default mode taps into OpenAI's internal Codex backend, which the developer warns may risk account violations, though an official API-compliant option is also available.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in