Quickstart
Access Claude through any SDK in minutes. Get a key, set one base URL, and ship. One key works across every format — OpenAI Chat Completions, OpenAI Responses, and the Anthropic Messages API. Using a coding editor instead? See the IDE integration guide.
Step 1: Get an API key
Create an account on the customer console, then generate a key from your dashboard. Keep it secret — it authenticates every request.
Step 2: Choose your SDK and set the base URL
Use whichever SDK your project already uses. Set the base URL and your key — no other changes needed.
from openai import OpenAI
client = OpenAI(
base_url="https://api.drawbridge-tech.com/v1",
api_key="your-api-key",
)Note: The Anthropic SDK uses base_url="https://api.drawbridge-tech.com" (no /v1 suffix). The OpenAI SDK uses base_url="https://api.drawbridge-tech.com/v1".
Step 3: Send your first request
Use smart to let Drawbridge pick the best model, or name a specific model like claude-sonnet-4-6.
response = client.chat.completions.create(
model="smart",
messages=[{"role": "user", "content": "Hello!"}],
stream=True,
)
for chunk in response:
print(chunk.choices[0].delta.content or "", end="")Streaming
Server-Sent Events streaming works across all supported formats. Set "stream": true and use the SSE pattern from whichever SDK you chose above — they all stream identically. See the API reference for the full request and response shapes.
Next Steps
- IDE Integration — Use your key in Cursor, VS Code, and more
- Models — Available Claude models and pricing
- API Reference — Full endpoint documentation (all formats)
- Building Agents — Pick a mode, write the tool-calling loop, and migrate
- Private Deployment — Run the same API in your own environment