portkey-ai/skills · Archived

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.

First seen Jan 20, 2026

Installation

$ npx skills add portkey-ai/skills --skill portkey-typescript-sdk

Stronger alternatives

This repository is archived — consider an actively maintained alternative.

Similar popular skills

Related neighbors and high-traction skills in the same topics — useful to compare before installing.

Also in this package

Other skills from portkey-ai/skills.

npx skills add portkey-ai/skills

Browse all from portkey-ai/skills

More details

Agent compatibility

Declared targets from SKILL.md / docs. Unmarked agents are not listed — the skill may still install via the CLI.

Claude Code Not declared
Cursor Not declared
Codex Not declared
GitHub Copilot Not declared
Windsurf Not declared
Gemini CLI Not declared
Cline Not declared
OpenCode Not declared

Repository health

Stars 2
License LICENSE
Default branch main
Open issues 0
Status Archived

Skill metadata

Parsed from SKILL.md frontmatter.

Version1.0.0
LicenseApache-2.0
CompatibilityRequires Node.js 18+. Works with npm, yarn, pnpm, or bun.
More metadata
author
portkey-ai
version
1.0.0
sdk-version
1.x
sdk-repo
https://github.com/portkey-ai/portkey-node-sdk
docs
https://portkey.ai/docs/sdk/typescript

Package contents

Files included with this skill beyond the listing page.

  • skill md SKILL.md 1,985 B
  • docs SUMMARY.md 220 B

History

  1. First seen on skills.sh
  2. First recorded snapshot · 65 installs

SKILL.md

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 -->