sp-openrouter - Use the OpenRouter TypeScript SDK
Provides guidance for integrating OpenRouter's TypeScript SDK and Agent packages with models, tools, streaming, and multi-turn conversations.
Tags
Updated: 2026-10-06Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Call OpenRouter models
- Send text and messages
- Process multimodal inputs
- Stream text and reasoning
- Execute tools automatically
- Manage API keys
- Run OAuth PKCE flows
Inputs
- OpenRouter API key
- OAuth callback URL
- OAuth authorization code
- Model identifier
- Prompt or message history
- System instructions
Outputs
- Generated text
- Full response objects
- Text streams
- Reasoning streams
- Tool call streams
- Authorization URLs
- Managed API key state
Requirements
- TypeScript environment
- @openrouter/agent package
- @openrouter/sdk package
- OpenRouter API credentials
- Access to supported models
