sp-openrouter - Use the OpenRouter TypeScript SDK
Provides guidance for integrating OpenRouter through its TypeScript agent and platform SDKs, including model calls, authentication, streaming, and API key management.
Tags
Updated: 2026-10-06Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Call supported AI models
- Send multimodal inputs
- Execute model tools
- Stream model responses
- Manage API keys
- Start OAuth PKCE flows
- Exchange OAuth authorization codes
Inputs
- OpenRouter API key
- OAuth callback URL
- OAuth authorization code
- Model identifier
- Text or message inputs
- System instructions
- Image URLs
Outputs
- Generated text
- Full response with token usage
- Streaming text deltas
- Streaming reasoning tokens
- Streaming tool calls
- OAuth authorization URL
- API key metadata
- Managed API key state
Requirements
- @openrouter/agent package
- @openrouter/sdk package
- OpenRouter API credentials
- Access to supported AI models
