Claude OpenAI Bridge — Development skill for Claude Code
Yet another claude2openai.
How to install Claude OpenAI Bridge
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open ArcheMind/claude-openai-bridge and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Claude OpenAI Bridge does
Yet another claude2openai. Lazy, zero-copy, fast Python adapter that allows you to interact with Anthropic's Claude API using OpenAI API clients.
Alternatives in Development
- Deep Research From Scratch — Deep research has broken out as one of the most popular agent applications 768 ★
- Dario — A local OpenAI- and Anthropic-compatible proxy that brings your Claude Pro/Max subscription to Cursor, Cline 485 ★
- KiroGate — OpenAI & Anthropic 兼容的 Kiro IDE API 代理网关,支持 Claude Code CLI 393 ★
README
Claude-OpenAI-Bridge
[中文版本](README_zh.md)
Claude-OpenAI-Bridge is an efficient Python adapter that allows you to interact with Anthropic's Claude API using OpenAI API clients. It provides a proxy server that converts OpenAI API requests to Claude API requests and transforms Claude's responses back to OpenAI format.
Features
- Support for OpenAI chat completion API format
- Streaming response support
- Text and image input support
- Automatic conversion between Claude and OpenAI message formats
- Efficient request forwarding using asyncio and lazy modification techniques
- Minimalist implementation, easy to extend and customize
Installation
One-click execution with uvx
[uvx](https://github.com/astral-sh/uv) is a fast Python package manager and installer. You can use uvx to run Claude-OpenAI-Bridge with a single command, without prior installation:
uvx claude-openai-bridge
Or specify host and port:
HOST=0.0.0.0 PORT=8080 uvx claude-openai-bridge
Usage
Using OpenAI Client
Once the server is running, you can connect to it using any OpenAI client by setting the base URL to your server address and the API key to your Anthropic API key.
Python example:
from openai import OpenAI
client = OpenAI(
api_key="your-anthropic-api-key", # Use your Anthropic API key
base_url="http://localhost:8080/v1" # Point to your Claude-OpenAI-Bridge server
)
response = client.chat.completions.create(
model="claude-3-opus-20240229", # Use Claude model name
messages=[
{"role": "system", "content": "You are a helpful assistant."},
{"role": "user", "content": "Hello, how are you?"}
]
)
print(response.choices[0].message.content)
Supported Models
You can use any Claude model by specifying the corresponding model name in your request:
- claude-3-opus-20240229
- claude-3-sonnet-20240229
- claude-3-haiku-20240307
- ...
Notes
- You need a valid Anthropic API key
- Some OpenAI-speci
Related Skills
Agrout Bridge
Local HTTP proxy that routes OpenAI-/Anthropic-compatible clients (OpenCode, Claude Desktop, Cursor) through A
Claude Code CLI Acp
ACP adapter for the real Claude Code CLI: Rust PTY bridge for Zed and other Agent Client Protocol clients.
Chat2claude
Lightweight local ChatGPT/Codex account-session adapter for Claude Code and OpenAI-compatible clients.
Codebuddy2api
Proxy CodeBuddy with OpenAI-compatible and Anthropic-compatible APIs for Codex, Claude Code, and standard SDK
CLIProxyAPI Rust
Your Claude, ChatGPT and Gemini subscriptions as one fast API. A single Rust binary with OpenAI, Anthropic and
Antomix
Universal Claude Code Proxy Bidirectional Anthropic ↔ OpenAI API Bridge
Related Agents
Grok Agent 01
ONLY job: find free or freemium AI token/API plans (OpenAI-compatible, Anthropic, Google, open routers, studen
Structure Auditor
Fast, independent, read-only structure auditor for Form-Guard outputs. Use after any form has been filled (by
AI LLM Engineer
Use this agent when the user types /ai or asks for ai/llm engineer work — e.g., build a RAG pipeline over our