openrouter-typescript-sdk
TypeScript SDK for OpenRouter's unified API, supporting text generation, tool usage, and multi-turn AI conversations.
Install
npx skills add https://github.com/openrouterteam/agent-skills --skill openrouter-typescript-sdkStats
| Total installs | 1,235 |
| Weekly installs | 1.2K |
| GitHub stars | 24 |
| First seen | Jan 19, 2026 |
| Source | @openrouterteam/agent-skills |
Summary
- Provides the callModel pattern for text generation, tool usage, streaming, and multi-turn conversations with automatic tool execution
- Supports flexible input formats: strings, message arrays, multimodal content with images, and system instructions
- Includes a strongly-typed tool system using Zod schemas with regular, generator, and manual tool modes; tools can modify parameters for subsequent turns via nextTurnParams
- Offers multiple response consumption methods: getText(), getResponse(), getTextStream(), getReasoningStream(), and getToolCallsStream() with concurrent consumer support
- Provides OAuth PKCE flow for user-facing applications and API key management, plus stop conditions (stepCountIs, maxCost, hasToolCall) to control multi-turn execution and costs
Tags
Related skills
| Skill | Installs | vs openrouter-typescript-sdk |
|---|---|---|
| nano-pdf | 1,254 | +19 |
| remote-browser | 1,280 | +45 |
| figma | 1,181 | -54 |
| day2-create-context-sync-skill | 1,252 | +17 |
| nanobanana | 1,225 | -10 |
FAQ
- How many installs does openrouter-typescript-sdk have?
- openrouter-typescript-sdk has 1,235 total installs and 1.2K installs this week.
- Where is openrouter-typescript-sdk hosted?
- openrouter-typescript-sdk is published by @openrouterteam/agent-skills at https://github.com/openrouterteam/agent-skills.
- How many GitHub stars does openrouter-typescript-sdk have?
- openrouter-typescript-sdk has 24 GitHub stars.
- When was openrouter-typescript-sdk first indexed?
- OrangeBot.AI first indexed openrouter-typescript-sdk on Jan 19, 2026.
- How do I install openrouter-typescript-sdk?
- Run: npx skills add https://github.com/openrouterteam/agent-skills --skill openrouter-typescript-sdk