Lightlines
Catalogue
Sign in
By openrouterarchived

openrouter-typescript-sdk

openrouterarchived

Build type-safe AI integrations through OpenRouter.

AI integration

What it does

Guides TypeScript integrations that use OpenRouter for text generation, tools, streaming, and multi-turn conversations.

When to use it

Use when integrating AI models through the OpenRouter TypeScript SDK and its callModel pattern.

How to use it

It changes how the agent implements OpenRouter integrations in a TypeScript project by applying the callModel reference and examples.

What you provide

  • An existing project

Uses


Access · 2

This skill

OpenRouter API

Write

Sends prompts to OpenRouter (irreversible)

@openrouter/sdk

Execute

Installs the OpenRouter SDK

Good to know

  • cannot be undone: OpenRouter API

What you need · 3

The OpenRouter TypeScript SDK package must be installed in the project.

API-key authentication requires an OpenRouter account from which a key can be created.

Zod is optional and enables strongly typed tool schemas with validation and type inference.


About this skill

Visibility
Public
Repository
openrouterarchived/agent-skills
Created
Oct 8, 2026
Updated
Oct 8, 2026
Files
2