Agent skill · Backend & API

portkey

You are an expert in Portkey, the AI gateway that sits between your app and LLM providers. You help developers add caching, fallbacks, load balancing, request retries, guardrails, semantic caching, budget limits, and observability to LLM calls — using a single unified API that works with 200+ models from OpenAI, Anthropic, Google, and open-source providers.

majiayu000github.com/majiayu000GitHub ↗
claude-codeMIT
Install
npx skills add majiayu000/claude-skill-registry --skill portkey --agent claude-code

Same command for any agent — swap --agent for codex, cursor, copilot.

Facts
Files in the skill folder: 2
SKILL.md size: 3 KB
Bundled scripts: none
Version: 1.0.0
Declared author: terminal-skills
Path: skills/ai-llm/portkey/SKILL.md
Open the folder on GitHub →
Where it comes from
Stars: 534
Language: HTML

Weekly change comes from our own snapshots, not the repository page — it measures attention, not adoption.

From the SKILL.md

# Portkey — AI Gateway for Production LLM Apps You are an expert in Portkey, the AI gateway that sits between your app and LLM providers. You help developers add caching, fallbacks, load balancing, request retries, guardrails, semantic caching, budget limits, and observability to LLM calls — using a single unified API that works with 200+ models from OpenAI, Anthropic, Google, and open-source providers. ## Core Capabilities ```typescript import Portkey from "portkey-ai"; const portkey = new Portkey({ apiKey: process.env.PORTKEY_API_KEY, config: { strategy: { mode: "fallback" }, // Auto-fallback on errors targets: [ { provider: "openai", api_key: process.env.OPENAI_KEY, override_params: { model: "gpt-4o" }, weight: 0.7, }, { provider: "anthropic", api_key: process.env.ANTHROPIC_KEY, override_params: { model: "claude-sonnet-4-20250514" }, weight: 0.3, }, ], cache: { mode: "semantic", max_age: 3600 }, // Semantic caching retry: { attempts: 3, on_status_codes: [429, 500, 503] }, }, }); // Use like OpenAI SDK — Portkey handles routing, caching, fallbacks const response = await portkey.chat.completions.create({ messages: [{ role: "user", content: "Explain microservices" }], max_tokens: 1

What's inside
Steps it walks through
  1. Core Capabilities
  2. Installation
  3. Best Practices
Ships with 1 file
  • metadata.json
Commands it runs
npm install portkey-ai
or
pip install portkey-ai
More from claude-skill-registry
All skills →
About this skill
What does the portkey skill do?

You are an expert in Portkey, the AI gateway that sits between your app and LLM providers. You help developers add caching, fallbacks, load balancing, request retries, guardrails, semantic caching, budget limits, and observability to LLM calls — using a single unified API that works with 200+ models from OpenAI, Anthropic, Google, and open-source providers.

How do I install it?

Run `npx skills add majiayu000/claude-skill-registry --skill portkey --agent claude-code` — it drops the skill into your project so the agent can pick it up. Swap the --agent value for codex, cursor or copilot if you use one of those.

Where does this skill come from?

From majiayu000/claude-skill-registry, a repository with 534 stars. We read it straight from the repository tree rather than a submitted listing, so what you see here is what is actually published.

Is a popular skill a good skill?

Not necessarily. Stars measure attention, not adoption — a repository can trend for a week and be abandoned. That is why we show the weekly change from our own snapshots next to the total, instead of a single flattering number.

Keep going