SDK recipes
Runnable templates for each supported SDK. Drop the gateway base URL into an existing project, set one env var, run the snippet. The response carries the gateway's `X-Request-Id` header so you can correlate any result back to the routing decision in your dashboard.
OpenAI · Python
Drop-in `OpenAI(base_url=...)` swap with X-Request-Id correlation.
Read the recipe →OpenAI · Node
TypeScript client config with the gateway base URL plus retry config.
Read the recipe →Anthropic · Python
Anthropic SDK with `base_url` swap; pinned `claude-haiku-4-5`.
Read the recipe →Anthropic · Node
`@anthropic-ai/sdk` config with the gateway origin and Haiku pin.
Read the recipe →curl
Two-flag swap: `Authorization: Bearer` plus the gateway origin.
Read the recipe →LangChain · Python
`ChatOpenAI` and `ChatAnthropic` configured against the gateway.
Read the recipe →Cursor
OpenAI Base URL Override field with screenshot of the panel.
Read the recipe →Codex CLI
Custom `model_provider` in `~/.codex/config.toml` pointed at the gateway.
Read the recipe →Claude Code
`ANTHROPIC_BASE_URL` plus `ANTHROPIC_AUTH_TOKEN`; family-lock keeps Anthropic.
Read the recipe →Try a snippet against your own org
The SDKs below link to the integrate panel with the matching SDK preselected. The panel runs the snippet against your real gateway key and returns the routing decision next to the response.