{"repo":"codingworkflow/claude-code-api","free":true,"listed":false,"github":"https://github.com/codingworkflow/claude-code-api","clone":"git clone https://github.com/codingworkflow/claude-code-api.git","description":null,"language":"Python","stars":327,"topics":["ai","ai-assistant","anthropic","anthropic-claude","claude","claude-ai","claude-api","claude-code"],"license":"GPL-3.0","category":"api-integrations-sdks","readme_excerpt":"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 model field: if omitted, CLI default model is used Quick Start (Linux/macOS) Server URLs: - API: http://localhost:8000 - OpenAPI docs: http://localhost:8000/docs - Health: http://localhost:8000/health Quick Start (Windows) Use the provided wrappers: Notes: - start.bat starts the API in dev mode. - make.bat provides 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-20260205 - claude-opus-4-5-20251101 - claude-sonnet-4-5-20250929 - claude-haiku-4-5-20251001 Alias/fallback behavior: - model is optional in /v1/chat/completions . - opus , claude-opus-latest , claude-opus-4-6 resolve 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 400 with error.code = model not supported . API Usage Chat completion: List models: Streaming: Configuration Common settings are in claude code api/core/config.py : - claude binary path - project root - database url - require auth Bug Reports & Support For claude-code-api and ai-code-f","default_branch":null,"files":null,"tree":[],"storefront":"/r/codingworkflow","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/codingworkflow/claude-code-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}