{
 "kind": "tool",
 "slug": "openrouter-sdk",
 "path": "tools/openrouter-sdk/",
 "name": "OpenRouter SDK",
 "maker": null,
 "density": "basic",
 "crumbs": [
  [
   "Tools",
   "tools/"
  ],
  [
   "Model SDKs",
   "tools/ai-sdks/"
  ]
 ],
 "lead": "Type-safe TypeScript SDK for 400+ models through OpenRouter.",
 "chips": [
  {
   "label": "Model SDKs",
   "path": "tools/ai-sdks/"
  },
  {
   "label": "NPM"
  }
 ],
 "primary": {
  "label": "Copy install command",
  "copy": "npm install @openrouter/sdk"
 },
 "links": [
  {
   "label": "GitHub",
   "href": "https://github.com/OpenRouterTeam/typescript-sdk"
  },
  {
   "label": "Website",
   "href": "https://github.com/OpenRouterTeam/typescript-sdk#readme"
  },
  {
   "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 npm.",
   "src": "https://github.com/OpenRouterTeam/typescript-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/typescript-sdk"
  },
  {
   "key": "pop",
   "label": "Used by agents' projects",
   "value": "2 projects",
   "status": "info",
   "sub": "#50 of 92 in its category",
   "note": "Dependency in 2 public GitHub projects set up for AI coding agents that we scanned (0.0%).",
   "src": null
  },
  {
   "key": "agent",
   "label": "Agent access",
   "value": "Install only",
   "status": "info",
   "sub": null,
   "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 SDK does",
   "parts": [
    {
     "t": "prose",
     "text": "Type-safe TypeScript SDK for 400+ models through OpenRouter."
    }
   ]
  },
  {
   "id": "popularity",
   "nav": "Popularity",
   "h2": "OpenRouter SDK popularity",
   "parts": [
    {
     "t": "stats",
     "items": [
      {
       "n": "44",
       "of": "/ 100",
       "l": "Gid Score, #2652 overall"
      },
      {
       "n": "1.6M",
       "l": "downloads a week, npm"
      },
      {
       "n": "272",
       "l": "GitHub stars"
      },
      {
       "n": "2",
       "l": "agent projects use it"
      }
     ]
    },
    {
     "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 SDK is used",
   "parts": [
    {
     "t": "list",
     "items": [
      "OpenRouter SDK is a dependency in 2 of the 6,258 public GitHub projects set up for AI coding agents that we scanned, too few to describe it from them alone. Our scan also samples projects by dependency (Solana 3,067, Ethereum and EVM 1,774, 3D and games 3,130, agent frameworks and SDKs 13,750); counting those, it appears in 25 projects, and what it is used with below comes from all of them.",
      "The most used alternative in our scan is @openrouter/ai-sdk-provider (28 projects).",
      "Projects that use it most often also use Zod (64.0%), dotenv (48.0%), TypeScript (84.0%)."
     ]
    },
    {
     "t": "h3",
     "text": "Often used with"
    },
    {
     "t": "rows",
     "rows": [
      {
       "l": "In 64.0% of its projects",
       "v": "Zod",
       "path": "tools/zod/"
      },
      {
       "l": "In 48.0% of its projects",
       "v": "dotenv",
       "path": "tools/dotenv/"
      },
      {
       "l": "In 84.0% of its projects",
       "v": "TypeScript",
       "path": "tools/typescript/"
      },
      {
       "l": "In 28.0% of its projects",
       "v": "Framer Motion",
       "path": "tools/framer-motion/"
      },
      {
       "l": "In 24.0% of its projects",
       "v": "Commander",
       "path": "tools/commander/"
      },
      {
       "l": "In 44.0% of its projects",
       "v": "Vitest",
       "path": "tools/vitest/"
      },
      {
       "l": "In 24.0% of its projects",
       "v": "Express",
       "path": "tools/express/"
      },
      {
       "l": "In 40.0% of its projects",
       "v": "Lucide React",
       "path": "tools/lucide-react/"
      }
     ]
    }
   ]
  },
  {
   "id": "more",
   "nav": null,
   "spy_as": "usage",
   "h2": "More about OpenRouter SDK",
   "parts": [
    {
     "t": "more",
     "items": [
      {
       "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 SDK",
       "me": true,
       "facts": [
        "Apache-2.0",
        "Gid 44",
        "1.6M/wk"
       ]
      },
      {
       "name": "@openrouter/ai-sdk-provider",
       "why": "OpenRouter provider for Vercel AI SDK enabling access to multiple LLMs.",
       "path": "tools/openrouter-ai-sdk-provider/",
       "facts": [
        "Apache-2.0",
        "Gid 56",
        "5.6M/wk"
       ]
      },
      {
       "name": "Mistral AI",
       "why": "Official TypeScript SDK for calling Mistral's language models and APIs.",
       "path": "tools/mistralai-mistralai/",
       "facts": [
        "Apache-2.0",
        "Gid 45",
        "6.7M/wk"
       ]
      }
     ],
     "more": "Compare OpenRouter SDK with another tool",
     "more_path": "tools/compare/"
    }
   ]
  },
  {
   "id": "start",
   "nav": "Get started",
   "h2": "Get started",
   "parts": [
    {
     "t": "install",
     "intro": "Install it.",
     "code": "npm install @openrouter/sdk"
    },
    {
     "t": "gap",
     "text": "No step-by-step start for OpenRouter SDK yet: we have not written its hand-checked card."
    }
   ]
  }
 ],
 "glance": [
  [
   "Package",
   "npm @openrouter/sdk"
  ],
  [
   "Category",
   "Model SDKs"
  ],
  [
   "License",
   "Apache-2.0"
  ],
  [
   "Gid Score",
   "44.1"
  ],
  [
   "Rank in category",
   "#50 of 92"
  ],
  [
   "GitHub",
   "OpenRouterTeam/typescript-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"
}