Claude Code API — Development skill for Claude Code
OpenAI-compatible API gateway for Claude Code CLI.
How to install Claude Code API
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open codingworkflow/claude-code-api and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude Code API does
OpenAI-compatible API gateway for Claude Code CLI.
Alternatives in Development
README
Claude Code API Gateway
OpenAI-compatible API gateway for Claude Code CLI.
What You Get
- OpenAI-style endpoints (
/v1/chat/completions,/v1/models, sessions/projects APIs) - Streaming and non-streaming chat completions
- Claude model aliases and fallback behavior
- Optional
modelfield: if omitted, CLI default model is used
Quick Start (Linux/macOS)
git clone https://github.com/codingworkflow/claude-code-api
cd claude-code-api
make install
make start
Server URLs:
- API:
http://localhost:8000 - OpenAPI docs:
http://localhost:8000/docs - Health:
http://localhost:8000/health
Quick Start (Windows)
Use the provided wrappers:
make.bat install
start.bat
Notes:
start.batstarts the API in dev mode.make.batprovides common project commands.- Claude Code CLI support on Windows may require WSL depending on your local setup.
Supported Models
Model config is in `claude_code_api/config/models.json`. Override with `CLAUDE_CODE_API_MODELS_PATH`.
claude-opus-4-6-20260205claude-opus-4-5-20251101claude-sonnet-4-5-20250929claude-haiku-4-5-20251001
Alias/fallback behavior:
modelis optional in/v1/chat/completions.opus,claude-opus-latest,claude-opus-4-6resolve to Opus 4.6.- If Opus 4.6 is rejected at runtime, gateway retries once with latest configured Opus 4.5.
- If all attempted models are rejected, API returns
400witherror.code = model_not_supported.
API Usage
Chat completion:
curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"messages": [
{"role": "user", "content": "Hello"}
]
}'
List models:
curl http://localhost:8000/v1/models
Streaming:
curl -X POST http://localhost:8000/v1/chat/completions \
-H "Content-Type: application/json" \
-d '{
"model": "claude-sonnet-4-5-20250929",
"messages": [{"role": "user", "content": "Tell me a joke"}],
"str
Related Skills
Claude Code API Rs
A high-performance Rust implementation of an OpenAI-compatible API gateway for Claude Code CLI.
Openapis
Free Claude API + free OpenAI API in one unified proxy. Drop-in compatible with Anthropic SDK, OpenAI SDK, Cla
Cursor2api
Use your Cursor subscription as an OpenAI-compatible API. Direct agent.v1 protocol — real tool_calls, streamin
Antigravity Reverseproxy API
A proxy server that exposes both Anthropic-compatible and OpenAI-compatible APIs backed by Antigravity's Cloud
BOB Gemini Free
High-performance local 3-in-1 gateway unlocking Google Gemini as standard OpenAI, Anthropic (Claude Code), and
Cline Proxy
High-fidelity Rust gateway for aggregating multiple Cline API keys with Claude Code and OpenAI compatibility
Related Agents
Fable5 Apfel Engineer
Heavy-lifting Fable-5 engineer for the apfel project (Apple on-device FoundationModels CLI + OpenAI-compatible
Codex CLI
Codex CLI → any OpenAI-compatible endpoint
AI Recon
Delegates to this agent when the user wants to map the AI attack surface of an authorized web application befo