Claude Code to OpenAI API Proxy
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.
- ✓Open-source license (MIT)
- ✓Healthy fork ratio
- ✓Clear description
- ✓Documented (README)
git clone https://github.com/fuergaosi233/claude-code-proxyTools 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.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.
[](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
A single CLAUDE.md file to improve Claude Code behavior, derived from Andrej Karpathy's observations on LLM coding pitfalls.
An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
🪨 why use many token when few token do trick — Claude Code skill that cuts 65% of tokens by talking like caveman
AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs, papers, images, or videos into a queryable knowledge graph. App code + database schema + infrastructure in one graph.
A light-weight and powerful meta-prompting, context engineering and spec-driven development system for Claude Code by TÂCHES.
CLI proxy that reduces LLM token consumption by 60-90% on common dev commands. Single Rust binary, zero dependencies