/phaseo:phaseo-agent-sdk-typescriptfrom Phaseo
Builds agent loops on the Phaseo Gateway using the TypeScript Agent SDK: createAgent, defineTool, createGatewayAgentClient, bounded model retries, resumable runs from app-owned state, presets, managed search, and concurrent tool calls.
Ships in Phaseo. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when the repository should implement agent-style workflows through @phaseo/agent-sdk.
Deliver a working agent integration that:
createAgent() entrypointPHASEO_API_KEYcreateGatewayAgentClient() for live gateway executioncreateGatewayAgentClient().modelRetry policy on the agent or the specific run instead of requeueing blindly outside the SDK.preset on the agent or run over manually hard-coding model: "@slug" strings everywhere.createGatewayAgentClient() with gatewayTools, toolChoice, responseFormat, and plugins.toolExecution.toolConcurrency instead of manually splitting the workflow across multiple agent steps.import {
createAgent,
createGatewayAgentClient,
defineTool,
} from "@phaseo/agent-sdk";
const lookupDocs = defineTool({
id: "lookup-docs",
description: "Look up internal docs by slug.",
async execute(input: { slug: string }) {
return { slug: input.slug };
},
});
const agent = createAgent({
id: "docs-agent",
model: "phaseo/free",
instructions: "Use tools when helpful and finish with a concise answer.",
tools: [lookupDocs],
});
const result = await agent.run({
input: "Find the docs page for presets.",
client: createGatewayAgentClient({
clientOptions: {
apiKey: process.env.PHASEO_API_KEY!,
},
}),
});
gatewayTools plus toolChoice over rebuilding upstream-native tool definitions at every run call.humanReview seam over one generic upstream-managed tool surface.requestId, nativeResponseId, and modelAttempts on step records when the surrounding application needs a stable correlation bridge back to gateway logs and upstream responses.AgentGatewayError when application code needs to distinguish policy blocks, provider diagnostics, or routing failures from generic transport errors.AgentGatewayError to persist errorDetails.step.failed, step.completed, run.resumed, model.failed, or tool.failed when the application needs exact lifecycle hooks instead of inferring state from generic logs.includeMeta: true on createGatewayAgentClient() when successful steps should retain gateway response metadata such as routing or plugin execution details on responseMeta.failed.modelAttempts.parameters on local runtime tools when the model should target a constrained JSON input contract instead of a generic free-form object payload.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub phaseoteam/phaseo --plugin phaseo15 skills in this plugin
/openrouter-to-phaseo-migrationMigrates an existing OpenRouter integration to the Phaseo Gateway end to end: usage inventory, endpoint, key and SDK swap, model ID and suffix mapping, provider objects, plugins, presets and OpenRouter-only fields, validation and a migration report. Use when code contains openrouter.ai URLs, sk-or-v1 keys, OPENROUTER_API_KEY, @openrouter packages or OpenRouter provider objects and the user wants a full migration. Not for other source platforms (use phaseo-migration) or new Phaseo integrations (phaseo-gateway)./phaseoUses the connected Phaseo MCP for live data: the interactive model explorer, model and provider details, token cost estimates, credits, activity, analytics and privacy-minimised request health, and reviewed text inference. Use when comparing AI models or provider availability through Phaseo, estimating costs, or investigating a Phaseo account's usage or a request. Also manages API keys, budgets, spend rules, provider keys, guardrails, presets, settings, webhooks and observability destinations when the user connected with account management. Not for writing integration code (use phaseo-gateway or an SDK skill) or billing and payments./phaseo-async-webhooksBuilds Phaseo async video, batch and webhook integrations: creating jobs and persisting their IDs, polling or websocket status helpers, idempotent webhook consumers for the standard payload, and recovery when local state and the gateway disagree. Use when a project generates video, submits batches, receives Phaseo webhooks or has stuck long-running jobs. Not for synchronous text, image or audio requests (use phaseo-gateway or an SDK skill).