openrouter-typescript-sdk

Installation
SKILL.md

OpenRouter TypeScript SDK

A comprehensive TypeScript SDK for interacting with OpenRouter's unified API, providing access to 300+ AI models through a single, type-safe interface. This skill enables AI agents to leverage the callModel pattern for text generation, tool usage, streaming, and multi-turn conversations.

The SDK is split into two packages:

  • @openrouter/agent — Agent features: callModel, tool(), stop conditions, streaming, format converters
  • @openrouter/sdk — Platform features: model listing, chat completions, credits, OAuth, API key management

Installation

# For agent features (callModel, tools, stop conditions)
npm install @openrouter/agent

# For platform features (models, credits, OAuth, API keys)
npm install @openrouter/sdk
Related skills

More from openrouterteam/skills

Installs
87
GitHub Stars
136
First Seen
Mar 9, 2026