Claude Bridge
OpenAI-compatible API for Claude
MongoDB
Checking...
Authentication
Checking...
Paste Auth JSON (from OpenCode's auth.json file)
Find this at ~/.local/share/opencode/auth.json after authenticating with OpenCode
Usage Example
from openai import OpenAI
client = OpenAI(
api_key="any",
base_url="http://localhost:8080/v1"
)
response = client.chat.completions.create(
model="claude-sonnet-4-5",
messages=[{"role": "user", "content": "Hello!"}]
)