claude-code-proxy
Claude Code to OpenAI API Proxy
- 2.8k stars
- 416 forks
- 26 open issues
- Language: Python
- License: MIT
- updated
Install
git clone https://github.com/fuergaosi233/claude-code-proxy- Clone the repository.
- Follow the README for installation and usage instructions.
Editor's note
Claude Code Proxy is a Python-based translation layer that intercepts requests from the Claude Code CLI and forwards them to any OpenAI-compatible backend, exposing a `/v1/messages` endpoint that mimics the Anthropic API. Developers point Claude Code at the local server by setting `ANTHROPIC_BASE_URL` to `http://localhost:8082`, and the proxy converts those calls to OpenAI-format requests before routing them to a configured provider such as standard OpenAI, Azure OpenAI, or a local Ollama instance. Model routing is handled through three environment variables (`BIG_MODEL`, `MIDDLE_MODEL`, `SMALL_MODEL`) that map Claude tier names like opus, sonnet, and haiku to whichever models the target provider offers. The proxy preserves tool use, SSE streaming, and base64 image inputs during translation. A notable detail is the `CUSTOM_HEADER_` prefix convention, which lets operators inject arbitrary HTTP headers into outbound requests without code changes. The project suits developers who want to use the Claude Code workflow against non-Anthropic models, whether for cost reasons, provider preference, or local inference.
Tools overview
What people ask about claude-code-proxy
What is fuergaosi233/claude-code-proxy?
fuergaosi233/claude-code-proxy is tools for the Claude AI ecosystem. Claude Code to OpenAI API Proxy It has 2.8k GitHub stars and its last recorded update is dated 2026-03-12.
How do I install claude-code-proxy?
You can install claude-code-proxy by cloning the repository (https://github.com/fuergaosi233/claude-code-proxy) or following the README instructions on GitHub. ClaudeWave also provides quick install blocks on this page.
Is fuergaosi233/claude-code-proxy safe to use?
Our security agent has analyzed fuergaosi233/claude-code-proxy and assigned a Trust Score of 74/100 (tier: OK). See the full breakdown of passed checks and flags on this page.
Who maintains fuergaosi233/claude-code-proxy?
fuergaosi233/claude-code-proxy is maintained by fuergaosi233. The last recorded GitHub activity is dated 2026-03-12, with 26 open issues.
Are there alternatives to claude-code-proxy?
Yes. On ClaudeWave you can browse similar tools at /categories/tools, sorted by popularity or recent activity.