whereismyai
Claude Code Proxy
Claude Code Proxy is a proxy server that enables Anthropic clients to interact with Gemini, OpenAI, or Anthropic backends by translating API requests via LiteLLM.
The Claude Code Proxy functions as a bridge that allows users to connect Anthropic-compatible clients to non-Anthropic backends. It receives requests in the standard Anthropic API format and uses LiteLLM to translate these calls into compatible formats for OpenAI or Gemini models. Users configure the server via environment variables to map Anthropic's Sonnet and Haiku models to specific OpenAI or Gemini alternatives. It handles both streaming and non-streaming responses to ensure compatibility with Claude clients. The software is available for deployment from source or as a Docker container, offering flexibility in how the proxy infrastructure is integrated into developer workflows.
Claude Code Proxy at a glance
Key features
- Translate Anthropic API requests to OpenAI or Gemini formats
- Map Claude Haiku and Sonnet models to specific backend providers
- Support streaming and non-streaming responses
- Automate model prefix handling for OpenAI and Gemini providers
- Enable direct Anthropic mode for request processing and logging
- Configure backend preferences via environment variables
Use it for
- Connecting Claude Code to Gemini or OpenAI models
- Using proxy infrastructure for logging or request processing with Anthropic models
- Replacing default model mappings in Anthropic client workflows
Companions
Tools that articles about Claude Code Proxy recommend using with it, each with its job.
Alternatives to Claude Code Proxy
- Claude Code Router — It centralizes control of AI agent requests with intelligent routing and observability.
- OpenCodex — Runs Codex and Claude Code on over 40 language providers with zero client patches.
- claudecode.nvim — Adds native AI coding assistant functionality to Neovim.
- Claude Plugins Community — Access a curated list of community plugins for Claude Cowork and Claude Code.
- CLI Dispatch — Runs alternative AI models as workers from inside Claude Code.
- Claude Tap — Inspect prompts, tool calls, and token usage locally without a hosted dashboard.
- opcode — Turns terminal Claude Code workflows into an intuitive visual interface.
- mcp-router — Reduces Claude Code tokens by 13% to 44% using tool search and JSON shaping
- Claude Code Local — Runs Claude Code completely on-device without cloud limits or API keys.
- Claude Code Session Tracker — Monitor Claude Code usage limits and token history in a single local interface.
- Claude Code Workflows — Provides pre-built, automated workflows for Claude Code development processes.
- Claude Code Usage Monitor — Tracks token usage, message counts, and session costs with local history and alerts.
All Claude Code Proxy alternatives