The Perspt Book 0.6.7
On this page

Dashboard Setup

Configure and launch the Perspt web dashboard for monitoring agent sessions.

Locate the Config File

The Perspt configuration file lives in your platform’s config directory:

  • Linux: ~/.config/perspt/config.toml
  • macOS: ~/Library/Application Support/perspt/config.toml

If migrating from the legacy ~/.perspt/ layout, Perspt will warn and fall back to the old location automatically.

Understand the Access Model

The dashboard binds to 127.0.0.1 only and runs unauthenticated. It is a read-only view of the local session database, suitable for localhost-only use; do not forward the port to other machines.

Change the Default Port

The default port is 3000. Override via CLI flag:

perspt dashboard --port 8080

Build from Source

cargo build --locked -p perspt-cli --release --features bundled

The dashboard is a library embedded in the perspt CLI, not a separate binary. Use perspt agent --dashboard for live monitoring and perspt dashboard after the writer exits.

Launch Locally

perspt dashboard

The server binds to 127.0.0.1:3000 by default. Open http://localhost:3000 in your browser.

Point to a Specific Database

By default, the dashboard reads from the platform data directory (~/.local/share/perspt/perspt.db on Linux). To use a different database file:

perspt dashboard --db-path /path/to/perspt.db

Embed in Agent Mode

Instead of running the dashboard as a separate process, you can start it alongside the agent using the --dashboard flag:

perspt agent --dashboard "Create a REST API"

This spawns the dashboard as a background task within the agent process. The embedded server shares the agent’s store connection. A separate dashboard process can conflict with an active writer’s DuckDB lock.

To use a custom port:

perspt agent --dashboard --dashboard-port 8080 "Add tests"

The embedded dashboard provides the same interface as the standalone perspt dashboard command: overview, session detail, topology, backlog, energy, decisions, and governance pages. It stops automatically when the agent process exits.