LogoClawIndex
CasesSkillsAbout
LogoClawIndex

sp-openrouter - Use the OpenRouter TypeScript SDK

Provides guidance for integrating OpenRouter's TypeScript SDK and Agent packages with models, tools, streaming, and multi-turn conversations.

Tags

Updated: 2026-10-06
OpenRouterTypeScriptAI modelsLLM SDKtool callingstreamingOAuth

Capabilities

Call OpenRouter modelsSend text and messagesProcess multimodal inputsStream text and reasoning

Typical Inputs

OpenRouter API keyOAuth callback URLOAuth authorization code

Typical Outputs

Generated textFull response objectsText streams

What this skill does

  • Call OpenRouter models
  • Send text and messages
  • Process multimodal inputs
  • Stream text and reasoning
  • Execute tools automatically
  • Manage API keys
  • Run OAuth PKCE flows

Inputs

  • OpenRouter API key
  • OAuth callback URL
  • OAuth authorization code
  • Model identifier
  • Prompt or message history
  • System instructions

Outputs

  • Generated text
  • Full response objects
  • Text streams
  • Reasoning streams
  • Tool call streams
  • Authorization URLs
  • Managed API key state

Requirements

  • TypeScript environment
  • @openrouter/agent package
  • @openrouter/sdk package
  • OpenRouter API credentials
  • Access to supported models

Source

  • Spec: SKILL.md

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.