其他

openrouter-typescript-sdk

openrouterarchived/agent-skills

Complete reference for integrating with 300+ AI models through the OpenRouter TypeScript SDK using the callModel pattern

  • 2025 次安装
  • 29 星标
  • 收录于

安装命令

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

SKILL.md

OpenRouter TypeScript SDK

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.


Installation

npm install @openrouter/sdk

Setup

Get your API key from openrouter.ai/settings/keys, then initialize:

import OpenRouter from '@openrouter/sdk';