tokrouterdocs
SDKs and frameworks

SDKs and frameworks

How mainstream SDKs and frameworks point at TokRouter — change a base_url or origin, no adapter package needed.

.mdOpen in Claude

TokRouter ships no SDK of its own — it implements the vendors' native protocols, so any client that supports a custom base URL works.

Rules of thumb

Client typeWhat to change
OpenAI SDK / OpenAI-compatible frameworksbase_url = https://api.tokrouter.dev/v1
Anthropic SDKbase_url = https://api.tokrouter.dev (the SDK appends /v1/messages)
google-genaibase_url = https://api.tokrouter.dev
Any HTTP clientCall the protocol endpoint directly

Keys are always the sk- token; the header differs per protocol (see Authentication).

Pages

Community clients

Configuration for Cline, Cherry Studio, LibreChat, Cursor and Claude Code lives in Tool integrations.

Runnable examples

Every example on these pages uses a real model id and can be copied as-is. Model ids come from Models.