raine/claude-code-proxy

Use Claude Code with your ChatGPT, Kimi, Cursor or Grok subscription via a local Anthropic-compatible proxy

What it solves

Claude Code is a powerful coding harness with strong tools and editor integrations, but it is locked to Anthropic's API. This project provides a proxy that allows Claude Code to use other subscription-backed provider services like OpenAI Codex, Kimi, Grok, and Cursor Agent instead of Anthropic's native API.

How it works

The tool operates as a local process that intercepts Anthropic API traffic from the Claude Code client and translates it into a protocol that other AI providers can understand. It handles authentication for these providers, model-based routing, and streaming responses. It also includes a built-in monitor to track sessions, token usage, and throughput.

Who it’s for

Developers who want to use the Claude Code interface and toolset while leveraging different LLM providers or their existing subscriptions (e.g., ChatGPT Plus or Pro).

Highlights

  • Multi-provider support: Compatible with Codex, Kimi, Grok, OpenCode Go, and Cursor Agent.
  • Protocol translation: Seamlessly converts Anthropic API requests to other provider formats.
  • Real-time monitoring: Includes a TUI monitor for diagnostics, errors, and token usage.
  • Image generation: Optional support for Codex image generation and editing via a separate HTTP API.

Related

  • Project
  • Project
  • Project
  • Project
  • Project