Arize Phoenix CLI
$ px Official Low RiskArize Phoenix CLI (px, distributed as @arizeai/phoenix-cli) lets developers and coding agents inspect OpenTelemetry LLM traces, spans, datasets, experiments, and prompts from Phoenix. Designed explicitly for terminal automation, it offers --format json, --no-progress, --limit, -y/--yes, and a PHOENIX_CLI_DANGEROUSLY_ENABLE_DELETES=true guard.
npm install -g @arizeai/phoenix-cli px was built specifically for coding agents with --format json, --limit, --last-n-minutes, and --no-progress, eliminating MCP schema overhead.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Purpose-built for coding agents with --format json, --no-progress, --limit, --last-n-minutes, --span-kind, and -y/--yes flags.
- Supports
--format jsonand--no-progressacross resource commands - Built-in time/count/kind filtering (
--limit,--last-n-minutes,--span-kind)
All delete commands are hard-disabled by default and require PHOENIX_CLI_DANGEROUSLY_ENABLE_DELETES=true plus confirmation, alongside clean PHOENIX_API_KEY env auth.
- Destructive deletes gated behind
PHOENIX_CLI_DANGEROUSLY_ENABLE_DELETES=true - Supports scoped env-var auth (
PHOENIX_ENDPOINT,PHOENIX_API_KEY)
Lightweight Node.js CLI distributed via npm (@arizeai/phoenix-cli) and runnable zero-install via npx across macOS, Linux, and Windows.
- Zero-install execution via
npx @arizeai/phoenix-cli
Covers projects, traces, spans, sessions, datasets, experiments, prompts, and raw px api graphql queries.
- Full coverage of Phoenix observability objects plus
px api graphql
Official Arize AI package within the Arize-ai/phoenix ecosystem under Apache-2.0.
- Official Arize AI repository under Apache-2.0
Dedicated agent-oriented CLI documentation and built-in px docs fetch command.
- Official Phoenix CLI docs and
px docs fetch
Security, Auth & Guardrails
Reads PHOENIX_ENDPOINT, PHOENIX_API_KEY, and PHOENIX_PROJECT env vars, or named profiles saved via px profile create / px auth login.
Apache-2.0 open-source CLI and self-hosted Phoenix server; Arize Phoenix Cloud offers free and paid hosted tiers.
# Arize Phoenix CLI (px) Agent Rules - Always include `--format json --no-progress` and `--limit <n>` when querying traces or spans. - Configure `PHOENIX_ENDPOINT` and `PHOENIX_API_KEY` via env vars for headless runs. - Never set `PHOENIX_CLI_DANGEROUSLY_ENABLE_DELETES=true` unless the user explicitly requests deletion.
Agent-Ready Command Recipes
Safe Read-Only Queries
px project list --format json --no-progress
Lists configured Phoenix projects as clean JSON without spinners or progress bars.
px trace list --project default --limit 10 --last-n-minutes 30 --format json --no-progress
Retrieves bounded recent traces as structured JSON ready for jq or agent inspection.
Controlled Writes & Previews
px trace add-note <trace-id> --note "Verified tool-call latency regression"
Attaches a non-destructive audit note to an existing trace ID.
Strengths for Agents
- + Hard safety gate (
PHOENIX_CLI_DANGEROUSLY_ENABLE_DELETES=true) prevents accidental trace or dataset deletion by agents. - +
--format json --no-progresscombined with--limitand--last-n-minuteskeeps context usage minimal.
Caveats & Pitfalls
- ! Requires a running local or hosted Phoenix endpoint (
PHOENIX_ENDPOINT) to query telemetry. - ! Avoid
--yoloorpxiinteractive chat subcommand inside automated coding-agent loops.