Openrouter Typescript Sdk

🌐Community
by openrouterteam · vlatest · Repository

Provides TypeScript guidance and assistance for developing backend services and APIs.

Install on your platform

We auto-selected Claude Code based on this skill’s supported platforms.

1

Run in terminal (recommended)

terminal
claude mcp add openrouter-typescript-sdk npx -- -y @trustedskills/openrouter-typescript-sdk
2

Or manually add to ~/.claude/settings.json

~/.claude/settings.json
{
  "mcpServers": {
    "openrouter-typescript-sdk": {
      "command": "npx",
      "args": [
        "-y",
        "@trustedskills/openrouter-typescript-sdk"
      ]
    }
  }
}

Requires Claude Code (claude CLI). Run claude --version to verify your install.

About This Skill

What it does

The OpenRouter TypeScript SDK enables developers to integrate and interact with the OpenRouter API in their TypeScript projects. It provides a structured way to send requests, manage responses, and handle authentication for AI model inference through the OpenRouter platform.

When to use it

  • You need to deploy AI models via OpenRouter in a backend service written in TypeScript.
  • You want to streamline API calls to multiple LLMs using a single SDK.
  • Your application requires real-time or batch processing of text with different AI models hosted on OpenRouter.

Key capabilities

  • Authentication and API key management
  • Support for multiple large language models (LLMs) via OpenRouter
  • TypeScript type safety for API requests and responses
  • Easy integration into Node.js backend applications

Example prompts

  • "Generate a response using the GPT-4 model hosted on OpenRouter."
  • "Send a text completion request to the Llama3 model through the OpenRouter SDK."
  • "Authenticate with my OpenRouter API key and list available models."

Tips & gotchas

  • Ensure your OpenRouter API key is securely stored and not exposed in client-side code.
  • Model availability may vary based on your OpenRouter subscription plan.

Tags

🛡️

TrustedSkills Verification

Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.

Security Audits

Gen Agent Trust HubPass
SocketPass
SnykPass

Details

Version
vlatest
License
Author
openrouterteam
Installs
840

🌐 Community

Passed automated security scans.