Loki Mode 10.8 removes the classic dashboard UI (dashboard-ui/, dashboard/static/, and the UI served on port 57374). The Control Plane (packages/control-plane, UI in packages/control-plane/ui) is the only UI. Deploy files (Helm, compose, ECS) and the clients (SDKs, VS Code, run.sh) already point at it.
| Before | Now |
|---|---|
UI and API on port 57374 (FastAPI, dashboard/server.py) |
Control Plane on port 47821 by default (loki control serve) |
loki dashboard start serves the classic UI |
loki dashboard, loki dashboard start and loki dashboard open open the Control Plane |
dashboard-ui build (npm run build:all) |
cd packages/control-plane && bun run build:all (UI plus bundled server) |
REST under /api/* |
REST under /v1/*, plus /health and /ready |
| Token management through the dashboard | One bearer token, LOKI_CONTROL_TOKEN, on /v1/* |
loki control serve # 127.0.0.1:47821, database ~/.loki/control/control.db
loki control serve --port 0 # any free port; the printed URL is the real one
loki control status # reachable? how many runs held?
loki dashboard # reuse a running Control Plane, or start one, and open it
Notes:
loki dashboard says so and does not start a server.--port or LOKI_CONTROL_PORT never falls back.loki control serve runs, runs on this machine ship to it automatically through ~/.loki/control/instance.json.loki start brings the dashboard up when none is running and checks it once a minute while the run lasts. It reuses a dashboard another install started and never stops it. It does nothing under LOKI_CONTROL=0 or LOKI_CONTROL_AUTOSTART=0, from a throwaway (temp) install, in a temp or fixture repository, or under CI or a test runner.loki control serve keeps its server up: a server that exits on its own is started again on the same port after 1, 2, 4, 8 and 16 seconds. After 5 crashes in 10 minutes (or 20 in a day) it stays down, and loki control status prints the reason, for example down: stopped after 5 restarts in 10 minutes (last exit 1). Each restart is a line in ~/.loki/control/serve.log.loki control stop, loki dashboard stop, Stop in Settings, or a SIGTERM or Ctrl-C to loki control serve writes the stop to ~/.loki/control/service.json first. Nothing brings the dashboard back until the next loki start, loki dashboard or loki control open. loki control status then says stopped by you (cli) at <time>.#settings) shows the version, PID and restarts, with Restart and Stop. Restart starts a new server on the same address and runs keep going. A server not started by loki control serve (for example, the container image) cannot restart itself, so Restart is disabled there.loki control serve itself is killed with SIGKILL and no run is alive, the dashboard stays down until the next loki start or loki dashboard.loki control backfill [DIR].loki control prune --repo OWNER/NAME or --before ISO_DATE, with --dry-run to preview.LOKI_HEADLESS=1, LOKI_NO_BROWSER=1 or --no-open print the URL instead of opening a browser.LOKI_CONTROL=0 turns the Control Plane off. LOKI_CONTROL_DEFAULT=0 makes the bare loki dashboard skip it.Environment variables:
| Variable | Meaning |
|---|---|
LOKI_CONTROL_PORT |
listen port for loki control serve, and the port clients assume (default 47821) |
LOKI_CONTROL_URL |
where clients and the shipper send runs (overrides discovery) |
LOKI_CONTROL_DB |
SQLite path (default ~/.loki/control/control.db) |
LOKI_CONTROL_HOST |
bind address (default 127.0.0.1) |
LOKI_CONTROL_TOKEN |
bearer token for /v1/*; required for any non-loopback bind, otherwise the server exits 2 |
LOKI_CONTROL_ALLOW_INSECURE_BIND |
1 accepts a tokenless non-loopback bind (not recommended) |
LOKI_CONTROL_ANSWER_DIR |
where BLOCKED-run answers are written |
LOKI_CONTROL_AUTOSTART |
0: loki start neither starts nor revives the dashboard (loki dashboard still does) |
LOKI_CONTROL_RESTART_MAX |
crashes allowed in 10 minutes before loki control serve gives up (default 5; 0 never restarts) |
LOKI_CONTROL_RESTART_BACKOFF_MS |
first restart delay, doubled each time up to 30 s (default 1000) |
With a token set, send Authorization: Bearer <token> on every /v1/* call. Actions that touch the machine (start, stop, import, delete, config) exist only on a loopback-bound server and need a JSON content type.
Legacy routes come from dashboard/server.py. Rows marked “no direct legacy route” are Control Plane routes that did not exist in the classic server.
| Legacy | Control Plane |
|---|---|
GET /api/status |
GET /v1/runs (list, filters verdict, repo, since, until, group_id, limit, cursor), GET /v1/runs/<source>/<run> (detail), GET /v1/stats |
GET /api/cost |
GET /v1/stats/cost |
POST /api/control/start |
POST /v1/start (alias POST /v1/runs) |
POST /api/control/stop |
POST /v1/runs/<source>/<run>/stop |
POST /api/control/resume |
POST /v1/runs/<source>/<run>/resume |
| (none) | POST /v1/runs/<source>/<run>/retry, POST /v1/runs/<source>/<run>/verify, POST /v1/runs/<source>/<run>/answer |
| log streaming | GET /v1/runs/<source>/<run>/events, GET /v1/runs/<source>/<run>/stream, GET /v1/stream, GET /v1/runs/<source>/<run>/artifact/<path> |
GET /api/audit |
GET /v1/audit |
GET /api/health family |
GET /health (liveness), GET /ready (database check) |
| (no direct legacy route) | GET /v1/config, PUT /v1/config |
| (no direct legacy route) | GET /v1/providers, GET /v1/integrations |
| (no direct legacy route) | GET /v1/notifications |
| (no direct legacy route) | GET /v1/merge/queue, POST /v1/merge/queue, POST /v1/merge/run, GET /v1/review/risk |
| (no direct legacy route) | GET /v1/keys (public key only, loopback only) |
| (no direct legacy route) | GET /v1/repos (names only, loopback only) |
| (no direct legacy route) | POST /v1/ingest, POST /v1/import, DELETE /v1/runs/<source>/<run> |
These legacy features have no Control Plane route today:
POST /api/control/pause, /api/control/app-restart and /api/control/app-stop.GET /api/audit/summary and GET /api/audit/verify (the Control Plane has GET /v1/audit only).GET /api/cost/timeline and GET /api/health/processes./api/keys POST routes, loki dashboard token), RBAC and OIDC login. The Control Plane uses the single LOKI_CONTROL_TOKEN./lab/ web app and the memory browser.loki dashboard --host, --tls-cert, --tls-key, LOKI_DASHBOARD_CORS, LOKI_DASHBOARD_PORT for the UI.deploy/docker-compose/README.md. The UI is on host port 57374 by default (LOKI_DASHBOARD_PORT), mapped to the Control Plane on container port 47821. LOKI_CONTROL_TOKEN is required in .env; open the UI with #token=<token> appended.deploy/helm/README.md (chart at deploy/helm/autonomi, Control Plane deployment in templates/deployment-controlplane.yaml).deploy/ecs/README.md and deploy/ecs/control-plane-task.json (run exactly one task, the database is single-writer).SDKs, the VS Code extension and run.sh talk to the Control Plane. Set LOKI_CONTROL_URL (and LOKI_CONTROL_TOKEN when the server has one) to point them at a remote instance.
cd packages/control-plane && bun run build:all # UI plus dist/server.js