OpenAI & Anthropic SDKs
There’s nothing to install beyond the official SDKs. Override the base URL and you’re done.
OpenAI SDK
Section titled “OpenAI SDK”from openai import OpenAI
client = OpenAI( base_url="https://api.opengateway.one/oss/v1", # includes /v1 api_key="YOUR_KEY",)resp = client.chat.completions.create( model="claude-turbo-hub-qwen3-coder", messages=[{"role": "user", "content": "Hello!"}],)print(resp.choices[0].message.content)import OpenAI from 'openai';
const client = new OpenAI({ baseURL: 'https://api.opengateway.one/oss/v1', // includes /v1 apiKey: process.env.OPENGATEWAY_API_KEY,});const resp = await client.chat.completions.create({ model: 'claude-turbo-hub-qwen3-coder', messages: [{ role: 'user', content: 'Hello!' }],});console.log(resp.choices[0].message.content);Anthropic SDK
Section titled “Anthropic SDK”from anthropic import Anthropic
client = Anthropic( base_url="https://api.opengateway.one/oss", # NO /v1 api_key="YOUR_KEY",)msg = client.messages.create( model="claude-turbo-hub-qwen3-coder", max_tokens=512, messages=[{"role": "user", "content": "Hello!"}],)print(msg.content[0].text)import Anthropic from '@anthropic-ai/sdk';
const client = new Anthropic({ baseURL: 'https://api.opengateway.one/oss', // NO /v1 apiKey: process.env.OPENGATEWAY_API_KEY,});const msg = await client.messages.create({ model: 'claude-turbo-hub-qwen3-coder', max_tokens: 512, messages: [{ role: 'user', content: 'Hello!' }],});console.log(msg.content);Want sugar?
Section titled “Want sugar?”The thin branded TypeScript and
Python wrappers preconfigure the base URL, lane, headers,
model aliases, and a single effort knob — while re-exporting the full stock
clients so you never lose API access.
OpenGateway Guide
Ask about configuring OpenGateway — lanes, base URLs, client setup, model choice, or an error you hit. Answers are grounded in the docs.