Skip to main content
skill CX Codex

openrouter-typescript-sdk — Claude Code skill

Use this skill to integrate the OpenRouter TypeScript SDK into a project. It covers model calls, agent tools, streaming, OAuth, and API key management.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add OpenRouterTeam/skills --skill openrouter-typescript-sdk -a claude-code
Open on GitHub

What openrouter-typescript-sdk does

The reference covers two packages. @openrouter/agent provides the callModel pattern, tools, streaming, and stop conditions; @openrouter/sdk handles platform features such as model listings, chat completions, OAuth, and API keys. It also describes retrieving generated text from a model response.

API requests require an OpenRouter key supplied through OPENROUTER_API_KEY. For user-facing apps, the guide outlines OAuth with PKCE: create an authorization code, then exchange it for the user’s key. Keep keys in environment variables rather than source code. Installing this skill is separate from adding either SDK package to your project.

What it helps with

  • connect a TypeScript client to OpenRouter
  • call a model with callModel
  • add tools and streaming to an agent
  • let users authorize through OAuth PKCE
  • manage API keys from application code

Example prompts for the agent

  • Show me how to call an OpenRouter model with callModel in my TypeScript project.
  • Explain how to add tools with @openrouter/agent.
  • Walk me through OAuth PKCE and exchanging an authorization code for a user API key.

How to install openrouter-typescript-sdk

1Skills CLI (Vercel)

npx skills add OpenRouterTeam/skills --skill openrouter-typescript-sdk -a claude-code

2Manually: put the files in place

~/.claude/skills/openrouter-typescript-sdk/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/openrouter-typescript-sdk/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about openrouter-typescript-sdk

How do I install openrouter-typescript-sdk in Claude Code?

Run npx skills add OpenRouterTeam/skills --skill openrouter-typescript-sdk -a claude-code. The skill file is placed at ~/.claude/skills/openrouter-typescript-sdk/SKILL.md.

What does openrouter-typescript-sdk do?

It guides TypeScript integration with OpenRouter, including model calls, agent tools, streaming, OAuth, and API key management.

Which SDK packages does the skill cover?

@openrouter/agent covers agent features, while @openrouter/sdk provides platform features such as model access, OAuth, and key management.

Similar skills

All skills for AI and ML →

From the same set8

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor