CClawMetryDocs

CLI reference

clawmetry#

With no subcommand, clawmetry runs the dashboard.

bash
clawmetry                       # foreground, port 8900
clawmetry --port 9000           # a different port
clawmetry start                 # background service

Service subcommands#

CommandEffect
clawmetry startStart as a background service
clawmetry stopStop the background service
clawmetry restartRestart it
clawmetry statusService status, port and uptime
clawmetry uninstallRemove the background service
clawmetry helpShow help

Two `status` commands

clawmetry status reaches the management CLI's status — daemon state, cloud sync, store size. The dashboard's own service status is what you get from the service subcommand context. In practice, run clawmetry status; it is the one you want. → status

Flags#

These apply to clawmetry itself and to every service subcommand.

Server#

FlagDefaultEffect
--port, -p8900Port to listen on
--host, -H127.0.0.1Bind address. 0.0.0.0 exposes it to your network — read Ports and networking first
--version, -vPrint the version and exit
--no-debugDisable debug mode and auto-reload

Directories#

FlagEffect
--workspace, -wAgent workspace directory
--data-dir, -dOpenClaw data directory, e.g. ~/.openclaw
--openclaw-dirOpenClaw config directory. Env: CLAWMETRY_OPENCLAW_DIR
--log-dir, -lLog directory
--sessions-dir, -sSessions directory holding transcript .jsonl files
--metrics-file, -mPath to the metrics persistence JSON file

Auto-detection covers all of these in a normal install. Set them when a runtime lives somewhere non-standard and you would rather not use the environment variables.

Display#

FlagEffect
--name, -nYour name, shown in the Flow tab

Streaming and limits#

FlagDefaultEffect
--sse-max-secondsMaximum lifetime of a Server-Sent Events connection
--max-log-stream-clients10Concurrent clients on the log stream
--max-health-stream-clients10Concurrent clients on the health stream

The stream caps exist because SSE connections are cheap to open and not free to hold. Raise them on a machine that several people watch at once.

Monitoring and fleet#

FlagEffect
--monitor-service NAME:PORTAdd a service to monitor. Repeatable.
--mc-urlManagement/control URL
--fleet-api-keyFleet authentication key. Env: CLAWMETRY_FLEET_KEY
--fleet-dbFleet database path. Env: CLAWMETRY_FLEET_DB

Examples#

bash
# A second dashboard against a different workspace, for testing
clawmetry --port 8901 --workspace ~/agents/staging --no-debug

# Watch two services alongside the agents
clawmetry --monitor-service gateway:18789 --monitor-service proxy:4100

# Run on a LAN address, behind something that terminates TLS
clawmetry --host 127.0.0.1 --port 8900   # then reverse-proxy to it

Binding to 0.0.0.0

The dashboard reads your agents' transcripts. Exposing it on a routable interface exposes those. If you need remote access, put it behind an authenticating reverse proxy and set CLAWMETRY_API_TOKENS. See Ports and networking.

Cookie preferences