What problem does it solve? Building AI features that depend on a single model provider creates vendor lock-in and forces you to maintain separate SDKs for each model. This Skill provides complete guidance for accessing 300+ AI models through OpenRouter's unified TypeScript SDK with one type-safe interface. ## Core Features & Use Cases - Unified Model Access: Call any of 300+ models (OpenAI, Anthropic, and more) through the callModel pattern with text, streaming, and structured responses. - Tool System & Agents: Define strongly-typed tools with Zod schemas, automatic tool execution, multi-turn conversations, and stop conditions like step limits and cost caps. - Authentication Options: Use API keys for server-side apps or the OAuth PKCE flow so end users control their own keys. - Use Case: Build an accountability agent in a Next.js app that generates challenges and evaluates proof submissions, streaming responses to users while capping per-request cost with maxCost stop conditions. ## Quick Start Install @openrouter/agent, set your OPENROUTER_API_KEY environment variable, and ask the agent to generate a callModel request against a model like openai/gpt-5-nano.