# OpenRouter Python SDK — card for AI agents

Official Python client for OpenRouter's 400+ models.

Category: Model SDKs · PyPI package `openrouter` · latest version 1.3.106 (checked 2026-11-01)
Install: `pip install openrouter`
License: Apache-2.0 (permissive)

In your own product (generator, app, hosted service): **yes**. Permissive license: ship it inside your own product, closed or open source, and keep its license and copyright notice.

## Agent Skills for it
- openrouter from davidondrej/skills: `npx skills add davidondrej/skills --skill openrouter`
- openrouter from Anil-matcha/awesome-muse-connectors: `npx skills add Anil-matcha/awesome-muse-connectors --skill openrouter`

## Numbers (AgentGid data)
- Gid Score: 32.2 (#3906 of all tools, 76 of 92 in its category)
- Downloads last week: 537,149 (as of 2026-11-24), +5.8% over 4 weeks
- GitHub stars: 176 (as of 2026-11-24)
- Last push: 2026-11-24

## Often used with
Requests 77.8%, AnyIO 66.7%, charset-normalizer 66.7%, jsonpath-python 66.7%, Pydantic 66.7%

## Checked alternatives (same job)
- LiteLLM: https://agentgid.com/tools/litellm/agent.md

## Links
- AgentGid page: https://agentgid.com/tools/openrouter/
- Repository: https://github.com/OpenRouterTeam/python-sdk

---
AgentGid's catalog is curated: every entry was checked against the maker's official pages (registry, repository, license and pricing pages) on the date shown; a license value shows the quote it stands on wherever AgentGid has one. Usage numbers come from AgentGid's own scan of public repositories set up for AI coding agents. Claims by makers are reported, not tested by AgentGid.
