Console

Viewport Console

A local, self-hostable control plane for agents you run yourself. Pair daemons, watch sessions, answer approvals, browse eval runs and receipts.

Status: Preview. The API, the HTTP routes and the home layout may change in 0.1.x, and Console 0.1 has known limits (SECURITY.md). Nothing is published to npm yet; run it from source.

Console is one server process with a SQLite file in its home directory. It pairs with your Viewport Daemons, shows their sessions live, and gathers every pending approval (daemon tool calls and Viewport HITL gates) into one inbox. Each answer is written to a hash-chained receipt log. It also serves Evals results directories and receipt chains read-only. No account, no hosted service, no telemetry.

Run it in 30 seconds

From a checkout of viewportai/console, with Node 22.18 or later:

make setup && make build
node packages/console/dist/cli/bin.js
#  Viewport Console  http://127.0.0.1:7071
#  Sign in: http://127.0.0.1:7071/login#t=...

On first start Console pairs the daemon running as the same OS user, if one is running (--no-pair turns that off). Sources are added only explicitly: viewport-console sources add evals .viewport/evals/runs, for example.

Embed it

createConsole() is what the CLI runs. Mount app.fetch in any Fetch-native host, or call listen():

examples/ts/pair-local-daemon/main.ts
const app = await createConsole({
  home: false, // in memory for the example; the CLI uses ~/.viewport/console
  config: { daemon: { home: daemonHome, local_direct_url: daemon.directUrl } },
});
const listening = await app.listen({ port: 0 });
const paired = await app.daemons.pairLocal();
console.log("Paired", paired.daemon.name, paired.daemon_fingerprint.join(" "), paired.daemon.role);

Where to next

  • Quickstart: pair a daemon, watch a session, answer an approval.
  • Security: read this before exposing Console beyond loopback.
  • HTTP API and CLI reference.

On this page