# Add to your Claude Code skills
git clone https://github.com/codingworkflow/claude-code-apiGuides for using ai agents skills like claude-code-api.
claude-code-api is an open-source ai agents skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by codingworkflow. It has 336 GitHub stars.
claude-code-api's catalog security scan is still queued. You can run an instant dependency and prompt-injection check now with the "Scan for vulnerabilities" button above.
Clone the repository with "git clone https://github.com/codingworkflow/claude-code-api" and add it to your Claude Code skills directory (see the Installation section above).
claude-code-api is primarily written in Python. It is open-source under codingworkflow on GitHub, so you can review or fork the full source.
Yes. AgentsLLM lists many other AI Agents skills you can browse and compare side by side. Open the AI Agents category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-code-api against similar tools.
No comments yet. Be the first to share your thoughts!
Unlocks once the catalog security scan passes (runs nightly).
The deep catalog scan for this skill is still queued. Run an instant dependency check now instead.
OpenAI-compatible API gateway for Claude Code CLI.
/v1/chat/completions, /v1/models, sessions/projects APIs)model field: if omitted, CLI default model is usedgit clone https://github.com/codingworkflow/claude-code-api
cd claude-code-api
make install
make start
Server URLs:
http://localhost:8000http://localhost:8000/docshttp://localhost:8000/healthUse the provided wrappers:
make.bat install
start.bat
Notes:
start.bat starts the API in dev mode.make.bat provides common project commands.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-20251001Alias/fallback behavior:
model is optional in /v1/chat/completions.opus, claude-opus-latest, claude-opus-4-6 resolve to Opus 4.6.400 with error.code = model_not_supported.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"}],
"stream": true
}'
Common settings are in claude_code_api/core/config.py:
claude_binary_pathproject_rootdatabase_urlrequire_authFor claude-code-api and ai-code-fusion, use this discussion thread for bug reports and troubleshooting:
For engineering workflows and internal commands:
docs/dev.mdThis project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.