sp-openrouter - Integrate AI models with the OpenRouter TypeScript SDK
Integrate with OpenRouter's unified API through TypeScript SDK and Agent packages for model calls, tools, streaming, and conversations.
Tags
Updated: 2026-10-06Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Call supported AI models
- Generate text responses
- Execute tools automatically
- Stream text and reasoning
- Handle multi-turn conversations
- Manage API keys
- Run OAuth PKCE flows
- List available models
Inputs
- OpenRouter API key
- OAuth callback URL
- OAuth authorization code
- Model identifier
- Text or message input
- System instructions
- Tool definitions
- Image URLs
Outputs
- Generated text
- Complete response object
- Text stream
- Reasoning token stream
- Tool call stream
- Authorization URL
- API key metadata
- API key management changes
Requirements
- Node.js TypeScript environment
- @openrouter/agent package
- @openrouter/sdk package
- OpenRouter API key or OAuth flow
- Network access to OpenRouter
