Skip to main content
Back to registry

openrouter-typescript-sdk

openrouterteam/agent-skills

A comprehensive TypeScript SDK for interacting with OpenRouter's unified API, providing access to 300+ AI models through a single, type-safe interface. This skill enables AI agents to leverage the callModel pattern for text generation, tool usage, streaming, and multi-turn conversations.

Installs978
Install command
npx skills add https://github.com/openrouterteam/agent-skills --skill openrouter-typescript-sdk
Security audits
Gen Agent Trust HubPASS
SocketPASS
SnykWARN
About this skill
A comprehensive TypeScript SDK for interacting with OpenRouter's unified API, providing access to 300+ AI models through a single, type-safe interface. This skill enables AI agents to leverage the callModel pattern for text generation, tool usage, streaming, and multi-turn conversations. Get your API key from openrouter.ai/settings/keys , then initialize: The SDK supports two authentication methods: API keys for server-side applications and OAuth PKCE flow for user-facing applications. The primary authentication method uses API keys from your OpenRouter account. The client automatically uses this key for all subsequent requests: Retrieve information about the currently configured API key: Programmatically manage API keys: For user-facing applications where users should control their own API keys, OpenRouter supports OAuth with PKCE (Proof Key for Code Exchange). This flow allows users to generate API keys through a browser authorization flow without your application handling their credentials. Generate an authorization code and URL to start the OAuth flow: Parameters: Browser Redirect: After the user authorizes your application, they are redirected back to your callback URL with an authorization code. Exchange this code for an API key: Parameters: The callModel function is the primary interface for text generation.

Source description provided by the upstream skill listing. Community reviews and install context appear in the sections below.

Community Reviews

Latest reviews

Sign in to review

No community reviews yet. Be the first to review.

Browse this skill in context
FAQ
What does openrouter-typescript-sdk do?

A comprehensive TypeScript SDK for interacting with OpenRouter's unified API, providing access to 300+ AI models through a single, type-safe interface. This skill enables AI agents to leverage the callModel pattern for text generation, tool usage, streaming, and multi-turn conversations.

Is openrouter-typescript-sdk good?

openrouter-typescript-sdk does not have approved reviews yet, so SkillJury cannot publish a community verdict.

What agent does openrouter-typescript-sdk work with?

openrouter-typescript-sdk currently lists compatibility with codex, gemini-cli, opencode, cursor, amp, github-copilot, claude-code.

What are alternatives to openrouter-typescript-sdk?

Skills in the same category include telegram-bot-builder, flutter-app-size, sharp-edges, iterative-retrieval.

How do I install openrouter-typescript-sdk?

npx skills add https://github.com/openrouterteam/agent-skills --skill openrouter-typescript-sdk

Related skills

More from openrouterteam/agent-skills

Related skills

Alternatives in Software Engineering