Skip to content

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.

  1. Set your key.

    Terminal window
    export OPENGATEWAY_API_KEY="YOUR_KEY"

    Send it as Authorization: Bearer $OPENGATEWAY_API_KEY (OpenAI style) or x-api-key: $OPENGATEWAY_API_KEY (Anthropic style). Both work on every route. Never send upstream provider keys.

  2. Pick a lane. Start on /oss — the curated open-weight coding catalog. See Lanes for the rest (/hf, /frontier, /pro).

  3. 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." }]
    }'
  4. Point your coding agent. Jump to Client setup for copy-paste config for Claude Code, Codex, OpenCode, Cursor, and Cline/Roo.

Terminal window
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.