portkey-typescript-sdk
CommunityReliable LLM gateway for TypeScript apps
Authormartinrojas
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Integrate Portkey into TypeScript and JavaScript applications to provide production-grade observability, caching, provider routing, and reliability for LLM requests so teams don't have to build gateway features from scratch.
Core Features & Use Cases
- Observability & Tracing: Capture request/response telemetry and traces across multiple LLM providers for debugging and SLA monitoring.
- Caching & Fallbacks: Reduce latency and cost with caching layers and automated fallback strategies when providers fail or hit rate limits.
- Provider Routing & Load Balancing: Route requests across hundreds of LLM providers using virtual keys, weight-based policies, and failover rules.
- Use Case: A backend chat service can use the SDK to route completions to preferred models, cache embeddings for fast retrieval, and automatically fail over to backup providers during outages.
Quick Start
Create a Portkey client with your API key and virtual key, then send a test chat completion to verify routing, caching, and observability.
Dependency Matrix
Required Modules
None requiredComponents
scriptsreferencesassets
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: portkey-typescript-sdk Download link: https://github.com/martinrojas/ai-scratchpad/archive/main.zip#portkey-typescript-sdk Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.