openrouter-typescript-sdk skill from the
OpenRouterTeam/skills repository.
The skill covers both the Client SDKs (@openrouter/sdk) and the Agent SDK (@openrouter/agent).
When working with the Client SDKs, your AI assistant will focus on the platform features:
model listing, chat completions, credits, OAuth, and API key management.
Quick Start
Claude Code
Cursor
Add via Settings > Rules > Add Rule > Remote Rule (Github) withOpenRouterTeam/skills.
GitHub CLI
Requires GitHub CLI v2.90.0+. Works with Claude Code, Cursor, OpenCode, Codex, Gemini CLI, Windsurf, and many more agents:Supported AI Coding Assistants
The skill works with any AI coding assistant that supports the Agent Skills standard:| Assistant | Status |
|---|---|
| Claude Code | Supported |
| Cursor | Supported |
| OpenCode | Supported |
| GitHub Copilot | Supported |
| Codex | Supported |
| Amp | Supported |
| Roo Code | Supported |
| Antigravity | Supported |
What the Skill Provides
Once installed, your AI coding assistant will have knowledge of:- SDK Installation & Setup - How to install and configure
@openrouter/sdkin TypeScript projects - Chat Completions - Working with the chat API for conversations
- Embeddings - Generating embeddings for semantic search and RAG
- Error Handling - Proper error handling patterns
- Streaming - Real-time streaming responses
- Tool Use - Implementing function calling and tools
- API Key Management - Programmatic API key creation and management
- OAuth - PKCE authentication flow for user-facing applications
Example Usage
After installing the skill, your AI assistant can help you with tasks like: “Help me set up OpenRouter in my project” The assistant will know to use:If you need higher-level primitives for building agents — multi-turn loops, tool definitions, stop conditions — see the Agent SDK instead.