Skip to main content
Watch: I Built an AI App Without Leaving Databricks

OpenRouter SDKs - 10 languages recorded

OpenRouter SDKs by language

OpenRouter ships official SDKs for Python, TypeScript and Go. Its docs list no SDK for Java, C#, Ruby, PHP, Rust, Swift and Kotlin.

OpenRouter also documents the OpenAI SDK as a drop-in, and has a separate TypeScript-only Agent SDK (@openrouter/agent).

Verified against each provider's own SDK docs and package registry pages. Status labels are the provider's own; no version numbers are recorded.

OpenRouter's SDK docs: openrouter.ai/docs/client-sdks/overview. Compare every provider in the SDK grid.

Official
the provider's own SDK.
Beta
the provider's own SDK, which it labels beta (Fireworks AI says alpha).
OpenAI SDK
the provider's docs point to the OpenAI SDK for this language.
Community
a library the provider's docs link but do not ship. Not official.
None
the provider's SDK docs list no SDK for this language.
-
Not recorded: no entry in the data for this language.

Python

Official SDK
Package
openrouter
Install
Install
pip install openrouter
Repo
github.com/OpenRouterTeam/python-sdk
Docs
openrouter.ai/docs/client-sdks/overview
Notes
Repo URL from PyPI metadata ('Official Python Client SDK for OpenRouter.').

From the docs

The Client SDKs give you a thin, type-safe layer over the OpenRouter REST API. ... | TypeScript | @openrouter/sdk | Python | openrouter | Go | go-sdk | ... All three SDKs are auto-generated from the OpenRouter OpenAPI spec
openrouter.ai/docs/client-sdks/overviewpypi.org/project/openrouter
Python SDKs from every provider

TypeScript and JavaScript

Official SDK
Package
@openrouter/sdk
Install
Install
npm install @openrouter/sdk
Repo
github.com/OpenRouterTeam/typescript-sdk
Docs
openrouter.ai/docs/client-sdks/overview
Notes
Repo URL from npm metadata. The TypeScript reference page shows 'npm add @openrouter/sdk'.

From the docs

The Client SDKs give you a thin, type-safe layer over the OpenRouter REST API. ... | TypeScript | @openrouter/sdk | Python | openrouter | Go | go-sdk | ... All three SDKs are auto-generated from the OpenRouter OpenAPI spec
openrouter.ai/docs/client-sdks/overviewwww.npmjs.com/package/@openrouter/sdk
TypeScript SDKs from every provider

No SDK in the docs

OpenRouter's SDK docs list no SDK for these languages. The quote shows what they do list.

More on OpenRouter

Newsletter

Know when a provider ships a new SDK

One email per week. New models, new SDKs and the API changes that break your client, and what they mean for your stack.