{
 "kind": "tool",
 "slug": "openrouter",
 "path": "tools/openrouter/",
 "name": "OpenRouter Python SDK",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Model SDKs",
   "tools/ai-sdks/"
  ]
 ],
 "lead": "Official Python client for OpenRouter's 400+ models.",
 "chips": [
  {
   "label": "Model SDKs",
   "path": "tools/ai-sdks/"
  },
  {
   "label": "PYPI"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "pip install openrouter"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/OpenRouterTeam/python-sdk"
  },
  {
   "label": "API page",
   "path": "apis/openrouter/"
  }
 ],
 "track": "New versions, deprecation and license changes on your dashboard",
 "verdicts": [
  {
   "key": "license",
   "label": "License",
   "value": "Apache-2.0",
   "status": "yes",
   "sub": "Use it in paid apps",
   "quote": null,
   "note": "License from PyPI license field.",
   "src": "https://github.com/OpenRouterTeam/python-sdk"
  },
  {
   "key": "maint",
   "label": "Maintained",
   "value": "Maintained",
   "status": "yes",
   "sub": "Last change Nov 24, 2026",
   "note": "Latest GitHub release Nov 24, 2026. ",
   "src": "https://github.com/OpenRouterTeam/python-sdk"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "Not in our scan",
   "status": "info",
   "sub": "#82 of 92 in its category",
   "note": "Dependency in 0 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Community skills",
   "status": "info",
   "sub": "2 skills by others",
   "note": "Agent skills for this library in the skills catalog; community skills are written by others, read them before you install.",
   "src": null
  }
 ],
 "vfoot": "From the package registry and GitHub, checked daily.",
 "blocks": [
  {
   "id": "overview",
   "nav": "Overview",
   "h2": "What OpenRouter Python SDK does",
   "parts": [
    {
     "t": "prose",
     "text": "Official Python client for OpenRouter's 400+ models."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "OpenRouter Python SDK popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "32",
       "of": "/ 100",
       "l": "Gid Score, #3906 overall"
      },
      {
       "n": "537K",
       "l": "downloads a week, pypi"
      },
      {
       "n": "176",
       "l": "GitHub stars"
      }
     ]
    },
    {
     "t": "small",
     "text": "Gid Score measures public popularity and activity, not quality.",
     "link": "How the Gid Score is calculated",
     "path": "tools/top/"
    }
   ]
  },
  {
   "id": "usage",
   "nav": "How it is used",
   "h2": "How OpenRouter Python SDK is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "OpenRouter Python SDK joined the catalog on its public numbers (537,149 downloads a week on PyPI and 176 GitHub stars), not on our project count: it is a dependency in 9 public GitHub projects of our scan, 0 of them set up for AI coding agents.",
      "The most used alternative in our scan is LiteLLM (36 projects).",
      "Projects that use it most often also use Requests (77.8%), AnyIO (66.7%), charset-normalizer (66.7%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 77.8% of its projects",
       "v": "Requests",
       "path": "tools/requests-py/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "AnyIO",
       "path": "tools/anyio/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "charset-normalizer",
       "path": "tools/charset-normalizer/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "jsonpath-python",
       "path": "tools/jsonpath-python/"
      },
      {
       "l": "In 66.7% of its projects",
       "v": "Pydantic",
       "path": "tools/pydantic/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about OpenRouter Python SDK",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "title": "Agent Skills for it",
       "path": "skills/",
       "items": [
        "openrouter: Design, build, debug, and optimize OpenRouter API integrations. Use for any OpenRouter API work, including models, reasoning, routing, media",
        "openrouter: Browse OpenRouter's model catalog and check your key usage. Trigger phrases: openrouter, model prices, openrouter key."
       ]
      },
      {
       "title": "More in Model SDKs",
       "path": "tools/ai-sdks/",
       "items": [
        {
         "text": "OpenAI",
         "path": "tools/openai-npm/"
        },
        {
         "text": "AI SDK",
         "path": "tools/ai/"
        },
        {
         "text": "OpenAI Python Library",
         "path": "tools/openai-pypi/"
        },
        {
         "text": "Anthropic SDK",
         "path": "tools/anthropic-ai/"
        },
        {
         "text": "Google Generative AI",
         "path": "tools/google-genai-npm/"
        },
        {
         "text": "Anthropic Python SDK",
         "path": "tools/anthropic/"
        },
        {
         "text": "Google GenAI Python SDK",
         "path": "tools/google-genai-pypi/"
        },
        {
         "text": "Hugging Face Hub",
         "path": "tools/huggingface-hub/"
        }
       ]
      }
     ]
    }
   ]
  },
  {
   "id": "alternatives",
   "nav": "Alternatives",
   "h2": "Alternatives",
   "parts": [
    {
     "t": "alts",
     "items": [
      {
       "name": "OpenRouter Python SDK",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 32",
        "537K/wk"
       ]
      },
      {
       "name": "LiteLLM",
       "why": "Unified library to interface with multiple LLM API providers.",
       "path": "tools/litellm/",
       "facts": [
        "MIT",
        "Gid 81",
        "27.1M/wk"
       ]
      }
     ],
     "more": "Compare OpenRouter Python SDK with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "pip install openrouter"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for OpenRouter Python SDK yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "pypi openrouter"
  ],
  [
   "Category",
   "Model SDKs"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "32.2"
  ],
  [
   "Rank in category",
   "#82 of 92"
  ],
  [
   "GitHub",
   "OpenRouterTeam/python-sdk"
  ],
  [
   "Last change",
   "Nov 24, 2026"
  ]
 ],
 "good": [],
 "checked_line": "From the package registry, GitHub and our scan of public agent projects; numbers update daily.",
 "logo": "https://agentgid.com/media/avatars/openrouterteam.png"
}