# fuergaosi233/claude-code-proxy

Claude Code to OpenAI API Proxy

Repository: https://github.com/fuergaosi233/claude-code-proxy
Canonical: https://ross.abutalabs.com/products/fuergaosi233-claude-code-proxy
Language: Python
License: MIT
License Family: permissive
Last push: 2026-03-12T06:19:07+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 71, release rhythm 35, longevity 31
- inputs: {"age_days": 437, "days_push": 174, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2778, forks 410 (observed 2026-08-28T04:07:21.531498+00:00)

## What it is
A Python proxy server that translates Claude API requests (/v1/messages) into OpenAI-compatible API calls, letting the Claude Code CLI work with OpenAI, Azure OpenAI, Ollama, and other providers. It supports streaming, tool/function calling, image input, and configurable model mapping via environment variables.

## Use cases
- use claude code with openai models
- proxy claude api to openai-compatible provider
- run claude code with local ollama models
- convert anthropic api requests to openai format
- route claude code cli to azure openai
- self-host a claude api compatible endpoint

## When to choose
- you want to use Claude Code CLI but only have OpenAI-compatible API access
- you need to route Claude Code to local models via Ollama
- you want configurable big/small model mapping for Claude Code requests

## When to avoid
- you have direct Anthropic API access and don't need translation
- you need a general-purpose multi-protocol LLM gateway rather than Claude-to-OpenAI conversion
- you need non-OpenAI target formats like Gemini native APIs

## Facets
- artifact type: service
- maturity: active
- function: proxy, llm-inference, http-server, api-framework
- domain: large-language-models, apis, developer-tools, self-hosted
- platform: python, self-hosted, cli
- tags: claude-code, openai-compatible, api-conversion, anthropic-api, model-mapping, streaming, docker

## Member repositories
- fuergaosi233/claude-code-proxy (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:21.531498+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:16:29.806285+00:00, confidence not recorded.
  - readme: https://github.com/fuergaosi233/claude-code-proxy (fetched 2026-08-28T04:07:21.531498+00:00, sha ae8b24d4359d)
- Data as of 2026-08-30T08:39:29.467469+00:00.
