Quickstart
OpenGateway is a drop-in base URL. You bring your existing client or SDK, point it at a lane, and authenticate with a single OpenGateway key.
-
Set your key.
Terminal window export OPENGATEWAY_API_KEY="YOUR_KEY"Send it as
Authorization: Bearer $OPENGATEWAY_API_KEY(OpenAI style) orx-api-key: $OPENGATEWAY_API_KEY(Anthropic style). Both work on every route. Never send upstream provider keys. -
Pick a lane. Start on /oss — the curated open-weight coding catalog. See Lanes for the rest (
/hf,/frontier,/pro). -
Make your first request.
Terminal window curl "https://api.opengateway.one/oss/v1/chat/completions" \-H "Authorization: Bearer $OPENGATEWAY_API_KEY" \-H "Content-Type: application/json" \-d '{"model": "claude-turbo-hub-qwen3-coder","messages": [{ "role": "user", "content": "Say PONG only." }]}'from openai import OpenAIclient = OpenAI(base_url="https://api.opengateway.one/oss/v1", # includes /v1api_key="YOUR_KEY",)resp = client.chat.completions.create(model="claude-turbo-hub-qwen3-coder",messages=[{"role": "user", "content": "Say PONG only."}],)print(resp.choices[0].message.content)import OpenAI from 'openai';const client = new OpenAI({baseURL: 'https://api.opengateway.one/oss/v1', // includes /v1apiKey: process.env.OPENGATEWAY_API_KEY,});const resp = await client.chat.completions.create({model: 'claude-turbo-hub-qwen3-coder',messages: [{ role: 'user', content: 'Say PONG only.' }],});console.log(resp.choices[0].message.content);import Anthropic from '@anthropic-ai/sdk';const client = new Anthropic({baseURL: 'https://api.opengateway.one/oss', // NO /v1 — SDK appends itapiKey: process.env.OPENGATEWAY_API_KEY,});const msg = await client.messages.create({model: 'claude-turbo-hub-qwen3-coder',max_tokens: 256,messages: [{ role: 'user', content: 'Write a TS debounce helper.' }],});console.log(msg.content); -
Point your coding agent. Jump to Client setup for copy-paste config for Claude Code, Codex, OpenCode, Cursor, and Cline/Roo.
Discover models
Section titled “Discover models”curl "https://api.opengateway.one/oss/v1/models" \ -H "Authorization: Bearer $OPENGATEWAY_API_KEY"See Model discovery for the dual-shape response and how each client uses it.
Ask about configuring OpenGateway — lanes, base URLs, client setup, model choice, or an error you hit. Answers are grounded in the docs.