Litellm Agent SDK — Development skill for Claude Code
TypeScript SDK for LiteLLM Agents — Agent → Session → Run.
How to install Litellm Agent SDK
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open BerriAI/litellm-agent-sdk and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Litellm Agent SDK does
TypeScript SDK for LiteLLM Agents — Agent → Session → Run.
Alternatives in Development
- JS To TS — JavaScript to TypeScript Migration Command 74.5k ★
- TypeScript Lsp — TypeScript / JS /plugin install typescript-lsp@claude-plugins-official 14k ★
- Mcporter — Call MCPs via TypeScript, masquerading as simple TypeScript API 4.1k ★
README
@litellm/agent-sdk
TypeScript client for [LiteLLM managed agents](https://github.com/BerriAI/litellm/pull/27427). Two primitives: `Agent`, `Session`. The runtime is a Fargate sandbox in **your** AWS — the SDK doesn't host anything.
import { Agent } from "@litellm/agent-sdk";
const agent = await Agent.create({
// LAP — control plane
apiKey: process.env.LITELLM_AGENT_PLATFORM_KEY!,
baseUrl: process.env.LITELLM_AGENT_PLATFORM_URL!,
model: "anthropic/claude-haiku-4-5",
templateId: "tpl_opencode_my_repo",
prompt: "You are a senior reviewer.",
});
const session = await agent.createSession({
initialPrompt: "In one sentence, what is this repo about?",
});
const reply = await session.send("Now show me the routes file.");
for await (const ev of session.events()) console.log(ev.type, ev);
Install
npm i @litellm/agent-sdk
Node 20+. ESM only.
Two endpoints, two pairs of creds
The SDK touches two URLs. Keep them straight:
| Role | SDK option | Who calls it |
|---|---|---|
| LiteLLM Agent Platform (LAP) — control plane | apiKey + baseUrl on Agent.create |
the SDK (your process) |
| LiteLLM Gateway — LLM completions backend | litellmApiKey + litellmApiBase on Agent.create (optional) |
the harness inside the spawned sandbox |
The gateway pair is **forwarded** to the harness via the agent template. The SDK never calls the gateway directly. Leave the gateway pair unset to use LAP's server-side default.
const agent = await Agent.create({
// LAP — what this SDK talks to
apiKey: process.env.LITELLM_AGENT_PLATFORM_KEY!,
baseUrl: process.env.LITELLM_AGENT_PLATFORM_URL!,
// Gateway — optional override for the LLM backend the harness uses.
// Forwarded onto the agent template; leave unset to inherit LAP's
// server-side default.
litellmApiKey: process.env.LITELLM_GATEWAY_KEY,
litellmApiBase: process.env.LITELLM_GATEWAY_URL,
model: "anthropic/claude-haiku-4-5",
templateId: "tpl_openco
Related Skills
Litellm Rust
Minimal Rust SDK port of LiteLLM – unified async client for OpenAI, Anthropic, Gemini, and xAI
Open Agent SDK TypeScript
Agent-SDK without CLI dependencies, as an alternative to claude-agent-sdk, completely open source
TS Anaf
TypeScript SDK, CLI, and MCP server for Romania's ANAF e-Factura system.
Agent Mux
unified TypeScript SDK and CLI (amux) for driving heterogeneous coding-agent harnesses — Claude Code, Codex, G
Claude Wire
TypeScript SDK for Claude Code - spawn, stream, and control the CLI programmatically
One Agent SDK
One SDK for every agent. Embed in-process agents — like Claude Code, ChatGPT Codex, and Kimi-CLI — directly in
Related Agents
Claude Code Slack Bot
This is a TypeScript-based Slack bot that integrates with the Claude Code SDK to provide AI-powered coding ass
Agent SDK Verifier TS
Use this agent to verify that a TypeScript Agent SDK application is properly configured, follows SDK best prac
Expo Developer
Develop React Native apps with Expo SDK 50+, TypeScript, and modern architecture patterns. Masters Expo ecosys