Skip to main content
ClaudeWave

Claude Code to OpenAI API Proxy

Tools2.7k stars389 forksPythonMITUpdated 3mo ago
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.

ClaudeWave Trust Score
87/100
Trusted
Passed
  • Open-source license (MIT)
  • Healthy fork ratio
  • Clear description
  • Documented (README)
Last scanned: 6/11/2026
Get started
Method: Clone
Terminal
git clone https://github.com/fuergaosi233/claude-code-proxy
1. Clone the repository.
2. Follow the README for installation and usage instructions.
Use cases

Tools overview

README preview not available. Visit the repo on GitHub for full documentation.

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.7k GitHub stars and was last updated 3mo ago.

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 87/100 (tier: Trusted). 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 from 3mo ago, with 39 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.

Deploy claude-code-proxy to your cloud

Ship this repo to production in minutes. Each platform spins up its own environment with editable env vars.

Maintain this repo? Add a badge to your README

Drop the badge into your GitHub README to show it's tracked on ClaudeWave. Each badge links back to this page and reflects the live Trust Score.

Featured on ClaudeWave: fuergaosi233/claude-code-proxy
[![Featured on ClaudeWave](https://claudewave.com/api/badge/fuergaosi233-claude-code-proxy)](https://claudewave.com/repo/fuergaosi233-claude-code-proxy)
<a href="https://claudewave.com/repo/fuergaosi233-claude-code-proxy"><img src="https://claudewave.com/api/badge/fuergaosi233-claude-code-proxy" alt="Featured on ClaudeWave: fuergaosi233/claude-code-proxy" width="320" height="64" /></a>

More Tools