Agentic Usage
Give your AI coding assistant the knowledge to work with the OpenRouter SDK by installing our official skill. This enables AI agents to understand the SDK’s APIs, patterns, and best practices when helping you write code.
Quick Start
Run this command in your project directory:
This installs the OpenRouter SDK skill, which teaches your AI assistant how to use the SDK effectively.
Supported AI Coding Assistants
The skill works with any AI coding assistant that supports the skills format:
What the Skill Provides
Once installed, your AI coding assistant will have knowledge of:
- SDK Installation & Setup - How to install and configure the OpenRouter SDK in TypeScript projects
- callModel API - The recommended approach for making AI model calls with full type safety and streaming support
- Chat Completions - Working with the chat API for conversations
- Embeddings - Generating embeddings for semantic search and RAG
- Error Handling - Proper error handling patterns and Result types
- Streaming - Real-time streaming responses
- Tool Use - Implementing function calling and tools
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:
“Add streaming to my OpenRouter call”
The assistant understands the streaming API:
Updating the Skill
To get the latest SDK documentation, re-run the install command:
The skill is automatically updated when new SDK versions are released.
Manual Installation
If you prefer to install manually, add the skill file to your project’s
.skills/ directory:
Repository
The skill source is available at: github.com/OpenRouterTeam/agent-skills
Contributions and feedback are welcome.