Claude Proxy is an open-source service that converts Claude API calls to OpenAI API format. It enables integration of Claude with any application supporting OpenAI API, including streaming responses, tool calling, and dynamic routing. Operations teams benefit from easier adoption of Claude in existing workflows.
git clone https://github.com/yinxulai/claude-proxy.gitClaude Proxy is an open-source proxy service that translates Claude API requests into OpenAI API format, allowing you to use Claude with any application that supports OpenAI's API. It handles streaming responses, tool calling, and function invocations while automatically converting request and response formats. The service supports dynamic routing to multiple AI providers—OpenAI, Google Gemini, Groq, and Ollama—through URL-based configuration, eliminating the need to redeploy or modify client code. Operations teams benefit from unified API access points and the ability to switch between AI models without code changes. A free public proxy is available for testing and development, with self-deployment options recommended for production environments.
Set environment variables to point Claude at the proxy: export ANTHROPIC_BASE_URL=https://claude-proxy.yinxulai.com/https/api.openai.com/v1/gpt-4o-mini and export ANTHROPIC_API_KEY="any-value". Then use Claude Code normally. For production, self-deploy via Docker with your target API credentials configured as environment variables.
Use Claude Code tools to access OpenAI, Gemini, Groq, and Ollama models
Switch between AI providers without modifying existing Claude client code
Provide teams with a unified API gateway for multiple AI services
Test and compare different AI model responses in development
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/yinxulai/claude-proxyCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Act as a Claude Proxy service. Convert the following OpenAI API request to Claude API format and provide the response in OpenAI API format. Request: {API_REQUEST}. Ensure the response includes streaming support, tool calling capabilities, and dynamic routing if applicable.# API Conversion Results
## Request Conversion
```json
{
"model": "claude-2",
"messages": [
{
"role": "user",
"content": "What are the top 3 benefits of using Claude Proxy?"
}
],
"stream": true,
"tools": [
{
"type": "function",
"function": {
"name": "get_benefits",
"description": "Retrieve benefits of using Claude Proxy"
}
}
]
}
```
## Response Conversion
```json
{
"id": "chatcmpl-123",
"object": "chat.completion",
"created": 1712345678,
"model": "claude-2",
"choices": [
{
"index": 0,
"delta": {
"content": "The top 3 benefits of using Claude Proxy are:",
"tool_calls": [
{
"id": "toolcall-123",
"type": "function",
"function": {
"name": "get_benefits"
}
}
]
},
"finish_reason": null
}
]
}
```Pioneering accessible, high-performance AI models
AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan