Complete table of every CLI subcommand, flag and environment variable that TokenTelemetry recognizes.
This is the authoritative reference for the TokenTelemetry launcher CLI and every environment variable the launcher and backend recognize. If you installed via the one-line installer, a tokentelemetry shim is written to ~/.local/bin (macOS/Linux) or %USERPROFILE%\.local\bin (Windows), so the command resolves from any directory. If you cloned the repo instead, run ./start.sh (or node bin/cli.js) from inside the tokentelemetry/ folder.
tokentelemetry [command] [options] # from anywhere (after the installer)./start.sh [options] # macOS / Linux, from the repo foldernode bin/cli.js [options] # cross-platform, from the repo folder
The first argument is a command only when it matches a known verb; anything else falls through to dashboard flag parsing, so tokentelemetry --port 4000 keeps working exactly as before.
Command
Description
dashboard
Start the dashboard. The default when no command is given.
menubar vs desktop: both start the same app. menubar runs it tray-only, so you get the panel with no dashboard window and, on macOS, no dock icon. Its "Open dashboard" item creates the window on first use. desktop opens the window up front and adds the tray alongside it.
# Default: frontend on 3000, backend on 8000, localhost only./start.sh# Custom ports./start.sh --port 4000 --api-port 9000# Frontend on 4000, backend stays 8000./start.sh -p 4000# Expose on a tailnet/LAN with auto-generated token./start.sh --host 0.0.0.0 \ --allowed-origins box.tailnet.ts.net,100.64.0.1# Expose with a fixed token./start.sh --host 0.0.0.0 --auth-token my-secret# Store config and state on a secondary drive./start.sh --data-dir /mnt/d/tt-data
Data directory, used verbatim. Highest precedence.
TOKENTELEMETRY_HOME
Override of the home directory; .tokentelemetry is appended as a subfolder. Lower precedence than TOKENTELEMETRY_DATA_DIR.
TT_AUTH_TOKEN
Access token for the remote-auth gate. Empty string = no token required (set by the launcher when --insecure-no-auth is used).
TT_ALLOWED_ORIGINS
Comma-separated CORS allowlist. Set by the launcher from --allowed-origins.
TT_REMOTE_CONNECT_URL
Full URL (with token) printed for the QR code. Set by the launcher.
TT_NO_UPDATE_CHECK
Set to 1 to disable the hourly update check entirely. Wins over the in-app toggle.
TT_NO_TELEMETRY
Set to 1 to disable anonymous product telemetry. Wins over the in-app toggle.
DO_NOT_TRACK
Set to 1 to disable product telemetry (same effect as TT_NO_TELEMETRY).
TT_PROJECT_ROOTS
Comma-separated list of additional directories to scan for agent sessions (beyond the default ~/.claude/, ~/.codex/, etc.).
TT_API_PORT
Backend port, as an alternative to --api-port.
TT_HOST
Backend bind address, as an alternative to --host.
HERMES_HOME
Path to the Hermes Agent data directory. Default: ~/.hermes/.
TT_MUSE_SESSIONS_DIR
Path to Muse Code's session directory. Default: ${XDG_DATA_HOME:-~/.local/share}/muse/sessions/. Useful for a mounted or relocated agent data directory.
TT_PRIME_SESSIONS_DIR
Path to Prime Agent's session directory. Default: ~/.prime/agent/sessions/. Useful for a mounted or relocated agent data directory.
PRIME_AGENT_SESSION_DIR
Prime Agent's own session-directory override. TokenTelemetry honors it when TT_PRIME_SESSIONS_DIR is not set.
DSH_HOME
DeepSeek Harness' own home-directory override. Default: ~/.dsh/; TokenTelemetry reads sessions from <DSH_HOME>/sessions/.
QODER_HOME
Path to Qoder's data directory. Default: ~/.qoder/; sessions are read from <QODER_HOME>/projects/. Qoder itself has no relocation variable, so this is a TokenTelemetry-side override for a mounted or relocated directory.
QODER_IDE_HOME
Path to the Qoder desktop app's data directory. Default: ~/Library/Application Support/com.qoder.app.stable on macOS. Read only for session titles and the disk footprint; sessions always come from the transcripts.
ZCODE_DATA_DIR
Path to ZCode's data directory (the .zcode root). Default: ~/.zcode/; sessions are read from <ZCODE_DATA_DIR>/cli/db/db.sqlite.
KIMI_HOME
Path to Kimi Code's data directory. Default: ~/.kimi/; sessions are read from <KIMI_HOME>/sessions/. This is a TokenTelemetry-side override for a mounted or relocated directory.