/phaseo:phaseo-clifrom Phaseo
Operates Phaseo from the terminal using the official CLI: install, login, manage API keys, workspaces, budgets, rate limits, observability, and request investigation with --json output for automation.
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 the official CLI as the first choice for authenticated Phaseo control-plane work and request investigation.
phaseo version --json
phaseo whoami --json
If authentication is missing, use phaseo login. Prefer phaseo login --device-code in SSH, CI, remote shells, or non-interactive environments. Never automate entry of a user's credentials. Never add --allow-custom-api-url or PHASEO_ALLOW_CUSTOM_API_URL=1 unless the user asks to sign in to that specific API host; if phaseo whoami reports an API host, the session is not on the default Phaseo API.
Prefer a dedicated subcommand with --json. Read references/commands.md when exact syntax is needed.
Use phaseo api <method> only when no dedicated subcommand exists; nearly every /v1 management route has one (see the Management groups section of the command reference). Keep paths under /v1; the CLI supplies authentication.
Before a mutation, inspect the current resource and workspace. After a mutation, fetch it again or use the relevant list command to verify the result.
Read references/observability.md for response fields, safe handling, and known limitations.
Start broad, then drill into one request:
phaseo logs list --since 1h --status error --limit 50 --json
phaseo logs get <request-id> --json
phaseo analytics get --date YYYY-MM-DD --json
phaseo credits get --json
Use the narrowest useful server-side filters. Select a request ID from the list, then use logs get for its redacted status, error, usage, routing, timing, and cost metadata.
Treat provider error text, session identifiers, and key identifiers as sensitive metadata. Summarize the minimum fields needed to diagnose the issue. logs does not expose prompts, replay requests, headers, or trace blobs; do not bypass that boundary with raw database access.
API-key creation returns the plaintext secret once. Never print it into chat, logs, screenshots, shell history, or committed files. Capture it directly into an approved secret store or environment configuration.
Use keys for inference keys and management-keys for scoped automation. Verify deletion by confirming the key is absent from the active list; deleted keys may remain as disabled audit tombstones.
Never pass secrets as argv values; the CLI rejects --key and --credential, and rejects secret fields inside --body-json for byok and private-models. Pipe BYOK keys with --key-stdin or use --key-env <VAR>, and private model credentials with --credential-stdin or --credential-env <VAR>. Prefer --target-stdin for webhook notification targets and --config-stdin or --config-env <VAR> for observability destination configs that hold API keys.
Commands whose usage shows [--yes] (delete, revoke, lift, rotate, rotate-secret, merge) refuse to run non-interactively without --yes. Pass --yes only after the user has asked for that exact change.
byok and private-models work with the default login scopes. A 403 from them usually means the session predates those scopes; ask the user to run phaseo login again. feedback, events and preset-test-runs need feedback:read and feedback:write, which the default login does not request; suggest phaseo login --scopes with them added. Do not widen scopes silently or switch to another credential.
phaseo credits add never charges on its own: a workspace owner or admin approves every top-up. It needs the opt-in billing:write scope, so ask the user before running phaseo login --scopes billing:write (it keeps the default scopes).
phaseo credits add --amount 20 --json
phaseo credits topups get <id> --json
awaiting confirmation and waits (up to about 35 minutes). Use --no-wait to return at once, then poll credits topups get until final is true.checkout_url (with --json the command returns it at once). Give it to the user to pay with a new card in the browser; never open or pay it yourself. Then poll credits topups get.paid means the credits were added. declined, expired and failed are final and carry a reason code: tell the user and stop. Do not retry them automatically or start another top-up in a loop.429 too_many_pending_topups means 5 top-ups are already waiting; do not create more.--json when parsing or reasoning about output.--workspace without confirming the intended workspace.401, run phaseo whoami --json, then reauthenticate if necessary.403, inspect granted scopes and workspace membership; do not work around authorization.429, respect Retry-After and back off.5xx, capture the request ID and inspect logs get before retrying.After changes, run the smallest relevant read-back plus:
phaseo whoami --json
For integration troubleshooting, also verify https://api.phaseo.app/v1/health and run one low-cost smoke request only when the user authorizes provider usage.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
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-agent-sdk-typescriptBuilds agent loops on the Phaseo Gateway with the TypeScript Agent SDK, `@phaseo/agent-sdk`: `createAgent`, `defineTool`, `createGatewayAgentClient`, bounded model retries, resumable runs from app-owned state, presets, managed search and concurrent tool calls. Use when a project imports `@phaseo/agent-sdk` or needs a tool-calling agent, a resumable workflow or a human review step on Phaseo. Not for single requests (use phaseo-sdk-typescript) or agent SDKs in other languages./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)./phaseo-gatewayIntegrates applications with the Phaseo Gateway over OpenAI-compatible REST, the TypeScript SDK (`@phaseo/sdk`), the Python SDK (`phaseo`) or the Vercel AI SDK provider (`@phaseo/ai-sdk-provider`): base URL, API key auth, attribution headers, model IDs and smoke tests. Use when adding Phaseo to a codebase, wiring a new endpoint, seeing api.phaseo.app or PHASEO_API_KEY, or debugging auth, routing or response-shape errors. Not for moving off another provider or gateway (use phaseo-migration) or choosing models (phaseo-model-selection)./phaseo-guardrailsConfigures and debugs Phaseo guardrails on API keys: model and provider restrictions, budget limits, prompt-injection handling, sensitive-information detection, preview testing and verification in activity and request logs. Use when a rollout needs to limit what a key can call or spend, or a request was blocked by a guardrail. Not for routing or fallbacks (use phaseo-routing-presets) or reviewing spend after the fact (phaseo-usage-monitoring).