All posts

Self-hosting Arize Phoenix for LLM evals

4 min read
On this page

Phoenix is Arize’s open-source LLM observability server. It ingests OpenTelemetry traces with OpenInference semantics, and on top of that serves datasets, experiments, evals and prompt management in a single UI. I run an instance at evals.liamwh.com. The subdomain is deliberate: production traces already land in Tempo inside my Grafana stack, so Phoenix owns the LLM-specific half, evaluation runs and agent artefacts. Two repos are involved. My infra repo owns the deployment and the credentials. Evidia, whose meeting-analysis pipeline is the reason the instance exists, fills it with experiment data.

Phoenix projects and experiments view, placeholder screenshot

Why Phoenix and not Langfuse

I shortlisted Langfuse first. Its self-hosted stack wants roughly six services. Phoenix is one container plus PostgreSQL, retention policies are free instead of an enterprise feature, and 30 days of eval data on a 58 GB root volume is plenty for how I use it. Fewer moving parts won.

The deployment

A Coolify Compose project on coolify-pve-worker-1, one of the Proxmox VMs Coolify schedules onto, live since 2026-10-21. The whole service is two containers and no published ports; the proxy Traefik routes by hostname.

services:
  phoenix:
    image: arizephoenix/phoenix:20.23.0
    environment:
      - PHOENIX_SQL_DATABASE_URL=postgresql://${SERVICE_USER_POSTGRES}:${SERVICE_PASSWORD_POSTGRES}@db:5432/phoenix
      - PHOENIX_ENABLE_AUTH=true
      - PHOENIX_ENABLE_STRONG_PASSWORD_POLICY=true
      - PHOENIX_SECRET=${SERVICE_PASSWORD_64} # signs session tokens
      - PHOENIX_DEFAULT_RETENTION_POLICY_DAYS=30
    healthcheck:
      test:
        [
          'CMD',
          'python',
          '-c',
          "import urllib.request; urllib.request.urlopen('http://127.0.0.1:6006/health')"
        ]
  db:
    image: postgres:17-alpine

Every credential is a Coolify-generated SERVICE_* value, so nothing secret is committed. Auth is on. Phoenix bootstraps an admin from PHOENIX_DEFAULT_ADMIN_INITIAL_EMAIL and _PASSWORD on first start only, while the database is still empty; after logging in I created a personal admin account and demoted the bootstrap one. API keys for SDK ingestion are minted in the UI under Settings → API Keys.

Bring-up produced two gotchas worth recording, because both fail silently:

  • The Phoenix image ships no /bin/sh. The container healthcheck must stay in CMD form; a shell probe fails forever, the container never reports healthy, and Traefik then refuses to route to it.
  • The service needs Coolify’s connect_to_docker_network enabled. Without it the deployment lands on a private per-service network where the proxy has route labels but zero reachable backends, and every request returns 503 no available server.

Tailnet-only ingress

evals.liamwh.com resolves only inside my tailnet. AdGuard on nix-host-01 rewrites the name to the internal proxy, and public resolvers return NXDOMAIN, which is correct behaviour rather than an outage. Caddy terminates TLS with a Let’s Encrypt certificate via Cloudflare DNS-01, proxies to the worker’s Traefik over HTTPS, and Traefik forwards to phoenix:6006. OTLP ingestion shares the same host at /v1/traces, so an SDK needs exactly two things: PHOENIX_COLLECTOR_ENDPOINT=https://evals.liamwh.com and an API key.

Keys, agents and the CLI

The API key my agents use lives SOPS-encrypted in the infra repo at hosts/zeus/secrets/phoenix/zeus-api-key. Three just recipes wrap it:

just phoenix-verify           # decrypt key, hit /v1/projects, list projects
just phoenix-env <command>    # run anything with PHOENIX_HOST/API_KEY set
just phoenix-send report.md   # ship a markdown document in as a span

phoenix-verify exists because a key in a SOPS file proves nothing on its own; one authenticated round trip proves the secret, the endpoint and the network path at once.

On zeus, my workstation, the px CLI is a Nix wrapper around bun x --bun @arizeai/phoenix-cli@1.18.9, pinned because the npm package does not bundle its own runtime. Both repos also vendor Arize’s agent skills, phoenix-cli, phoenix-evals and phoenix-error-analysis, so an agent session can pull traces, annotate failures and run evals against the same instance I browse. The instance is as much an agent workspace as a human one.

What lands in it: Evidia evals

The evidia-meeting-analysis crate runs a bounded evaluation harness over fixture cases with pluggable models. Every run emits a safe export, JSONL files for runs, cases and attempts under versioned schemas, and that portable format stays authoritative. phoenix_import.py in the same crate is a viewer bridge onto Phoenix’s dataset and experiment model:

  • one dataset per dataset_id, one example per case reference, with stable example ids so reruns line up
  • one experiment per run, candidate, model and reasoning effort
  • the import calls no model; each recorded measurement is replayed as the task output
  • evaluators score outcome, quality label, latency, known cost in EUR, a reserved cost upper bound, and ten rubric dimensions from evidence_grounding to consent_accuracy where judgments exist in the export

Cost surfaces at three levels: per attempt inside the run output, per run as evaluator scores, and totals in the experiment description and metadata. After an import, the experiments view over one dataset answers the question that motivated all of this, which candidate and model was better and what it cost.

cd ~/git/evidia/crates/evidia-meeting-analysis/examples/eval_support
just -f ~/git/infra/justfile phoenix-env python phoenix_import.py EXPORT_DIR

What lands in it: agent artefacts

Agents produce reports. tools/phoenix/send-document.py in the infra repo turns any markdown file into one span in the agent-artifacts project, with mime type text/markdown so the Phoenix UI renders it, plus name, size and timestamp as attributes. It exports synchronously and then resolves the project id, so the caller gets a clickable link back. Eval summaries, incident write-ups and agent post-mortems end up browsable next to the experiments they came from.

Watching the watcher

A Grafana blackbox probe hits https://evals.liamwh.com/ with a service: phoenix label, so the stack that watches everything else watches this too. Backups run at two layers, a scheduled PostgreSQL dump through Coolify and the nightly Proxmox Backup Server job that covers the whole worker VM.

Honest scope: no production traffic flows into Phoenix. Tempo keeps the operational traces, and with 30-day retention Phoenix would be the wrong shelf for them anyway. If eval data needs to outlive the retention window, the safe export on disk is the record; Phoenix is the lens. For a service that is one container and a database, the number of things I did not have to build is the whole point.

Interested in working together? Reach out.

Strategy, architecture, and implementation — from workflow to production.

© 2026 Liam Woodleigh. All rights reserved.