portkey-typescript-sdk

Integrate Portkey AI Gateway into TypeScript/JavaScript applications. Use when building LLM apps with observability, caching, fallbacks, load balancing, or routing across 200+ LLM providers.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "portkey-typescript-sdk" with this command: npx skills add portkey-ai/skills/portkey-ai-skills-portkey-typescript-sdk

Portkey TypeScript SDK

<!-- PLACEHOLDER: Replace this content with your actual SKILL.md content. This file should contain comprehensive instructions for AI agents on how to: - Install and configure the Portkey TypeScript SDK - Use core features (completions, chat, embeddings) - Implement observability and tracing - Set up caching, fallbacks, and load balancing - Handle errors properly - Work with different LLM providers through Portkey Keep the file under 500 lines. Move detailed reference material to the references/ directory. -->

When to use this skill

Use this skill when:

  • The user wants to integrate Portkey into a TypeScript or JavaScript application
  • The user needs LLM observability, caching, or reliability features
  • The user wants to route requests across multiple LLM providers
  • The user mentions "Portkey", "AI gateway", or "LLM observability" in Node.js/TS context

Installation

npm install portkey-ai
# or
yarn add portkey-ai
# or
pnpm add portkey-ai

Quick Start

import Portkey from 'portkey-ai';

const client = new Portkey({
  apiKey: 'YOUR_PORTKEY_API_KEY',
  virtualKey: 'YOUR_VIRTUAL_KEY', // Optional: for provider routing
});

const response = await client.chat.completions.create({
  model: 'gpt-4',
  messages: [
    { role: 'user', content: 'Hello!' }
  ],
});

console.log(response.choices[0].message.content);
<!-- Add your complete SDK documentation below -->

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

portkey-python-sdk

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

Self Updater

⭐ OPEN SOURCE! GitHub: github.com/GhostDragon124/openclaw-self-updater ⭐ ONLY skill with Cron-aware + Idle detection! Auto-updates OpenClaw core & skills, an...

Registry SourceRecently Updated
1171Profile unavailable
Coding

ClawHub CLI Assistant

Use the ClawHub CLI to publish, inspect, version, update, sync, and troubleshoot OpenClaw skills from the terminal.

Registry SourceRecently Updated
1.9K2Profile unavailable
Coding

SkillTree Learning Progress Tracker

Track learning across topics like an RPG skill tree. Prerequisites, milestones, suggested next steps. Gamified learning path.

Registry SourceRecently Updated
900Profile unavailable