@livepeer/agent: CLI, library, and MCP server for building creative AI applications on Livepeer. AgentRunner, provider abstraction, ToolRegistry, and 40+ inference capabilities.
Use this file to discover all available pages before exploring further.
@livepeer/agent is the agent runtime package from the Storyboard project (livepeer/storyboard). It provides a provider-agnostic agent loop, 40+ Livepeer inference capabilities as callable tools, working and session memory, and an MCP server mode for integration with Claude Code, Cursor, and other MCP-compatible tools.API key from daydream.live.
The CLI exposes verbs for inference, file handling, finishing, and memory:Inference:
# Single model calllivepeer run flux-schnell --prompt "a cat astronaut on Mars"# → https://v3b.fal.media/files/.../image.jpg# Animate a still imagelivepeer cinemagraph ./portrait.jpg --motion "leaves drifting"# JSON output (for scripts)livepeer run flux-schnell --prompt "..." | jq '.url'
import { AgentRunner, ToolRegistry, WorkingMemoryStore, SessionMemoryStore,} from '@livepeer/agent';import { GeminiProvider } from '@livepeer/agent/providers/gemini';const provider = new GeminiProvider({ apiKey: process.env.GEMINI_API_KEY! });const tools = new ToolRegistry();const runner = new AgentRunner( provider, tools, new WorkingMemoryStore(), // 800-token budget per turn new SessionMemoryStore(), // queryable log across turns);const result = await runner.run({ user: 'generate an image of a mountain' });console.log(result.finalText);
Importing individual verbs (without the full agent loop):
import { runRun } from '@livepeer/agent/cli/verbs/run';import { runConcat } from '@livepeer/agent/cli/verbs/finishing';const result = await runRun({ name: 'flux-schnell', prompt: 'a mountain at dawn', apiKey: process.env.DAYDREAM_API_KEY,});
Provider swap: change the LLM backend without changing application code:
import { ClaudeProvider } from '@livepeer/agent/providers/claude';import { LivepeerProvider } from '@livepeer/agent/providers/livepeer';// Claude directlyconst provider = new ClaudeProvider({ apiKey: process.env.ANTHROPIC_API_KEY! });// All LLM calls through Livepeer infrastructure (one API key)const provider = new LivepeerProvider({ apiKey: process.env.DAYDREAM_API_KEY! });
The one-line installer configures this automatically. Once connected, Claude Code can call livepeer tools directly: run flux-schnell, cinemagraph, concat, detect, and all other CLI verbs are available as MCP tool calls.
Installed skills live in ~/.livepeer/skills/*.md and are loaded automatically by the agent runner when relevant.
@livepeer/agent is under active development through multiple phases (C8 is the current stable milestone). The CLI verb argument shapes and output shapes are frozen at C8; later phases (D–L) add new verbs without breaking existing ones.