Console

Self-host on a server

Run Console on a server or in a container behind an identity-proving proxy. The container image is planned, not published.

Status: the container image (ghcr.io/viewportai/console) is planned and not published yet. For now, run Console from source on the host or in a container you build yourself. The rules below hold either way.

The shape that is safe

  1. Console runs in a proxy auth mode (tailscale, cloudflare-access or header), never local, when anyone reaches it over the network. See proxy auth.
  2. Its port is published on loopback only, and the proxy in front is what users reach: 127.0.0.1:7071:7071, never 7071:7071.
  3. Its home is a dedicated volume (/data), not the working directory and not the temp directory.
  4. VIEWPORT_CONSOLE_ENCRYPTION_KEY is set, so relay tokens, HITL secrets and the identity are sealed at rest.
  5. Users and sources are provisioned in /data/console.yaml (see config).

From source

make setup && make build
export VIEWPORT_CONSOLE_HOME=/data
export VIEWPORT_CONSOLE_AUTH=tailscale
export VIEWPORT_CONSOLE_ENCRYPTION_KEY="$(cat /run/secrets/console-key)"
node packages/console/dist/cli/bin.js serve --host 127.0.0.1 --port 7071 --no-open --no-pair

This is the Tailscale Serve layout (tailscale serve --bg 7071 on the same host): requests reach Console on loopback, so it also needs auth.tailscale.trust_serve_headers: true in /data/console.yaml, and then any process on the host can claim a user. Run it this way only on a host with no agents; otherwise bind the tailnet address instead. See proxy auth.

Inside a container the proxy usually runs alongside it. When Console must bind a non-loopback address inside the container, use a proxy mode: Console refuses a non-loopback bind in local mode.

Daemons

Daemons on other machines pair through a link (see relay). Console's "pair this machine" shortcut is for a daemon running as the same OS user on the same host, which a container usually is not.

Backups

Back up the home directory: console.db (with its -wal file), identity.json when the keychain is not used, and console.yaml. Keep the encryption key elsewhere. Anchor the receipt chain outside the host (receipts.anchor_to in config, or viewport-console receipts anchor), so a restored backup can be checked against it.

On this page