Learn OpenRouter

Learn to build on OpenRouter with your AI agent as your tutor. Understand what's actually happening under the hood: API calls, model selection, routing, tool calling, and production systems. Your agent guides you step by step.

Paste this into your agent to start learning

Works with Claude Code, Cursor, Devin, Codex, and any agent that can fetch URLs

How it works

1

Paste the prompt

Copy the prompt above and give it to your AI agent (Claude Code, Cursor, Devin, or any agent that can fetch URLs).

2

Tell it what you want to build

Your agent asks about your project, creates a learning plan, and starts building it with you. It teaches OpenRouter concepts along the way.

3

It adapts as you go

Your agent dynamically pulls in docs, features, and guides based on what your project actually needs. It teaches what matters to you.

Why OpenRouter?

New models every week. Pricing changes overnight. Providers go down without warning. Building directly against one provider means rewriting code when something better comes along. OpenRouter gives you a single integration point that adapts as the ecosystem evolves.

Right-Size Every Step of Your Workflow

Not every task needs your most expensive model. Break your agent workflow into discrete steps, try different models on each, and find the cheapest option that still meets your quality bar.

No Vendor Lock-In

New models ship every week. With OpenRouter, switching from one provider to another is a one-line change. No SDK swap, no code rewrite. Your code stays portable and you can always move to whatever works best.

One API, All Models

Access OpenAI, Anthropic, Google, Meta, and hundreds more through a single OpenAI-compatible endpoint. Switch models by changing one string.

Intelligent Routing

Automatic fallbacks, provider selection by price/latency/uptime, and smart routers that optimize your requests without code changes.

Agent-Native

Built for autonomous agents: server-side tools (web search, code execution), structured outputs, streaming, and an Agent SDK with type-safe tool calling.

Production-Ready

Guardrails, observability via Broadcast (Datadog, Langfuse, PostHog), response caching, rate limit management, and zero data retention policies.

What you will learn

Core foundations everyone covers, plus whatever your project needs. Dynamically pulled from the OpenRouter docs.

Core Foundations

Universal concepts adapted to your project.

  • How OpenRouter works and why it exists
  • Working with the API: models, requests, authentication
  • Building with SDKs: raw API to Agent SDK
  • Streaming and structured outputs
  • Tool calling and agent patterns
  • Cost optimization: evals, workflow decomposition, right-sizing models

Adaptive to Your Project

Your agent pulls in what you need from the docs.

  • Multimodal: images, audio, video, PDFs
  • Server tools: web search, advisor, code execution
  • Routing: fallbacks, provider selection, smart routers
  • Observability: Broadcast with Datadog, Langfuse, PostHog, etc.
  • OpenRouter Agent SDK: type-safe tool calling, structured outputs, orchestration
  • Workspaces, governance, billing, BYOK

Frequently asked questions

Common questions about OpenRouter and this course.

Ready to start?

Give this prompt to your agent and start building with OpenRouter in minutes.