finds.dev← search

// the find

codingworkflow/claude-code-api

★ 311 · Python · GPL-3.0 · updated Jun 2026

An OpenAI-compatible HTTP gateway that wraps the Claude Code CLI, letting you point tools like Cursor, Cline, or Open WebUI at localhost instead of the Anthropic API directly. Useful if you're on a Claude Max subscription and want to drive it from code-editor integrations that only speak the OpenAI chat completions format. Not a replacement for the Anthropic API — it shells out to the CLI binary.

The model alias and fallback system is a practical touch — if Opus 4.6 gets rejected (rate limit, subscription tier), it retries automatically with 4.5 rather than blowing up. Test suite is unusually thorough for a side project: fixture-based streaming tests, unit tests for the session manager, and a live e2e suite kept separate so you're not forced to hit the real API in CI. Docker and OAuth proxy are included, so self-hosting behind an auth layer is a first-class scenario, not an afterthought. Renovate and Dependabot both configured means dependencies actually stay current.

The entire thing is a thin subprocess wrapper around a CLI — every request forks a process or reuses a session via stdin/stdout parsing, which means you're at the mercy of whatever the CLI outputs and any breaking change in Claude Code's output format silently breaks parsing. Windows support is officially 'may require WSL,' which means it probably doesn't work natively for most people on Windows. There's a committed `.env` file in the tree, which is a bad habit regardless of whether it contains real secrets. Bug reports are redirected to a discussion thread in a different repo (ai-code-fusion), which suggests this project is more of a companion piece than a standalone thing — unclear long-term maintenance trajectory.

View on GitHub → Homepage ↗

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →