RichardAtCT

Claude Code OpenAI Wrapper — Git skill for Claude Code

Git community intermediate

GitHub Repo stars OpenAI API-compatible wrapper for Claude Code OpenAI compatible wrapper.

How to install Claude Code OpenAI Wrapper

This entry records only its repository, not the path inside it, so there is no exact command to give. Open RichardAtCT/claude-code-openai-wrapper and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Code OpenAI Wrapper does

An OpenAI API-compatible wrapper for Claude Code, allowing you to use Claude Code with any OpenAI client library. **Now powered by the official Claude Agent SDK v0.1.18** with enhanced authentication and features.

Alternatives in Git

  • Analysis Claude Code — GitHub Repo stars Complete reverse engineering research and analysis of Claude Code v1.0.33 Reverse engineerin 35k ★
  • Openclaude — Open Claude Is Open-source coding-agent CLI for OpenAI, Gemini, DeepSeek, Ollama, Codex, GitHub Models, and 20 22.5k ★
  • n8n MCP — GitHub Repo stars MCP for Claude Desktop/Code to build n8n workflows n8n workflow integration 15.5k ★

README

Claude Code OpenAI API Wrapper

An OpenAI API-compatible wrapper for Claude Code, allowing you to use Claude Code with any OpenAI client library. **Now powered by the official Claude Agent SDK v0.1.18** with enhanced authentication and features.

Version

**Current Version:** 2.2.0

  • Interactive Landing Page: API explorer at root URL with live endpoint testing
  • Anthropic Messages API: Native /v1/messages endpoint alongside OpenAI format
  • Explicit Auth Selection: New CLAUDE_AUTH_METHOD env var for auth control
  • Tool Execution Fix: enable_tools: true now properly enables Claude Code tools

**Upgrading from v1.x?**

  1. Pull latest code: git pull origin main
  2. Update dependencies: poetry install
  3. Restart server - that's it!

**Migration Resources:**

Status

🎉 **Production Ready** - All core features working and tested:

  • ✅ Chat completions endpoint with official Claude Agent SDK v0.1.18
  • ✅ Anthropic Messages API (/v1/messages) for native compatibility
  • ✅ Streaming and non-streaming responses
  • ✅ Full OpenAI SDK compatibility
  • ✅ Interactive landing page with API explorer
  • ✅ Multi-provider authentication (API key, Bedrock, Vertex AI, CLI auth)
  • ✅ System prompt support via SDK options
  • ✅ Model selection support with validation
  • ✅ Fast by default - Tools disabled for OpenAI compatibility (5-10x faster)
  • ✅ Optional tool usage (Read, Write, Bash, etc.) when explicitly enabled
  • ✅ Real-time cost and token tracking from SDK
  • ✅ Session continuity with conversation history across requests
  • ✅ Session management endpoints for full session control
  • ✅ Health, auth status, and models endpoints
  • ✅ Development mode with auto-reload

Features

🔥 **Core API Compatibility**

...