Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Arize Phoenix CLI

$ px Official Low Risk
Arize AI · AI & Media · Apache-2.0 · macos / linux / windows

Arize 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.

FCRS-1.0 Score
93 /100
Excellent
Medium Confidence
Zero-Friction Install
npm install -g @arizeai/phoenix-cli
CLI vs MCP Decision CLI Preferred vs MCP

px was built specifically for coding agents with --format json, --limit, --last-n-minutes, and --no-progress, eliminating MCP schema overhead.

Agent-Readiness Checklist

✓ JSON Output
✓ Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 24 / 25

Purpose-built for coding agents with --format json, --no-progress, --limit, --last-n-minutes, --span-kind, and -y/--yes flags.

  • Supports --format json and --no-progress across resource commands
  • Built-in time/count/kind filtering (--limit, --last-n-minutes, --span-kind)
Trust & Safety 23 / 25

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)
Setup & Portability 14 / 15

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
Utility & Efficiency 14 / 15

Covers projects, traces, spans, sessions, datasets, experiments, prompts, and raw px api graphql queries.

  • Full coverage of Phoenix observability objects plus px api graphql
Maintenance & Lineage 9 / 10

Official Arize AI package within the Arize-ai/phoenix ecosystem under Apache-2.0.

  • Official Arize AI repository under Apache-2.0
Docs & Verifiability 9 / 10

Dedicated agent-oriented CLI documentation and built-in px docs fetch command.

  • Official Phoenix CLI docs and px docs fetch

Security, Auth & Guardrails

Auth Modes
Env API Key Config File No Auth
Credential Storage

Reads PHOENIX_ENDPOINT, PHOENIX_API_KEY, and PHOENIX_PROJECT env vars, or named profiles saved via px profile create / px auth login.

Side Effects
Read-Only Remote Write Destructive
Cost & Quotas

Apache-2.0 open-source CLI and self-hosted Phoenix server; Arize Phoenix Cloud offers free and paid hosted tiers.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

List Phoenix projects in JSON
px project list --format json --no-progress

Lists configured Phoenix projects as clean JSON without spinners or progress bars.

Fetch recent LLM traces for debugging
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

Annotate a trace with an agent evaluation note
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-progress combined with --limit and --last-n-minutes keeps context usage minimal.

Caveats & Pitfalls

  • ! Requires a running local or hosted Phoenix endpoint (PHOENIX_ENDPOINT) to query telemetry.
  • ! Avoid --yolo or pxi interactive chat subcommand inside automated coding-agent loops.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI