ReferenceFleetlens 1.0.0Keep nearby

Commands, routes, sources, and local state.

Use this page when you already know what you want to do. For a first setup, start with the beginner walkthrough instead.

CLI commands

CommandPurpose
fleetlens start [--port N] [--open] [--no-daemon]Start the local dashboard and, unless skipped, the usage daemon.
fleetlens stopStop the local dashboard and daemon.
fleetlens statusShow server, daemon, port, version, and latest snapshot state.
fleetlens updateInstall the latest published CLI and restart stale services.
fleetlens web [page] [--open]Open a dashboard page without managing the daemon.
fleetlens runs [--watch] [--json] [--since 24h]Live local LLM call activity and token spend in the terminal.
fleetlens usage [--save]Print a live Claude Code plan-utilization snapshot in the terminal as colored progress bars — 5-hour and 7-day windows, plus Opus, Sonnet, OAuth-app, and Cowork breakdowns and any pay-as-you-go extra usage. --save also records this snapshot to local history and, in the background, saves one for every other configured provider (Codex, Copilot, Grok, Z.ai) even though their windows aren't part of this terminal view.
fleetlens usage --history [-s D] [--days N]Print historical usage and cost rows.
fleetlens entries --day D|--session ID|--allInspect day-scoped local perception entries.
fleetlens digest day [--date D|--today] [--force] [--json]
fleetlens digest week [--week D|--this-week] [--force] [--json]
fleetlens digest month [--month YYYY-MM|--this-month] [--force] [--json]
Generate or read a day, week, or month digest from the terminal — the same narrative shown at /day and /insights. Without a date flag, each targets the last completed period (cached to disk); --today/--this-week/--this-month target the still-running current period instead. --force regenerates past a cached result. --json prints the same structure the dashboard reads.
fleetlens daemon start|stop|status|logsManage the usage and team-sync worker separately.
fleetlens team join <url> <token>Pair a local machine and open the browser onboarding flow.
fleetlens team status|sync|backfill|logs|leavestatus reports pairing details and actively checks the connection, so a revoked token shows up immediately instead of waiting for the next scheduled sync. sync pushes activity right now rather than waiting for the next cycle. backfill force-reuploads your full local plan-utilization history — useful when the team dashboard's history views need to be repopulated. logs shows the outcome of recent sync attempts. leave unpairs this machine; local data is unaffected.
fleetlens autostart install|uninstall|statusManage daemon start at login on supported macOS setups.
fleetlens menubar install|uninstall|open|stop|status [--no-open] [--no-login]Manage the optional native macOS usage widget. install places it in Applications, opens it, and registers it to launch at login; --no-open installs quietly and --no-login skips the login registration. The Settings page has matching Install/Open/Uninstall buttons, but an install triggered from there always skips login registration — use the terminal command if you want the widget to start automatically at login. A dismissible dashboard banner also offers to install it the first time it notices the widget isn't set up.

Dashboard routes

RouteUse it for
/Overview metrics, heatmap, daily activity, projects, and recent sessions.
/sessionsSearch and inspect all normalized sessions.
/sessions/[id]Open rich detail for one session: timeline, tools, tokens, gaps, workflows, and shipping signals.
/projectsCanonical project rollups and worktree context.
/projects/[slug]Inspect one project's sessions, activity, and local folder context.
/dayOpen daily activity, the timeline, idle gaps, and concurrency.
/usageHistorical provider utilization.
/insightsReview a structured weekly retrospective when entries and AI features are available.
/digest, /parallelismOlder links, kept for bookmarks — both redirect straight into /day (/parallelism lands on its timeline section).
/agentAsk questions over local history and create handoffs.
/runsWatch live local LLM runs and their streamed events.
/settingsLocal service, menu bar, credentials, and AI settings.
/teamPairing, sync activity, project selection, and data boundary.
/team/onboardingThree-step member setup after a browser-based join.
/changelogReview user-facing changes in the installed product.

Team Edition surfaces

RouteUse it for
/team/[slug]Admin roster, combined activity, selectable ranges, and live refresh.
/team/[slug]/members/[id]Member activity, plan fit, daemon freshness, and daily rollups.
/team/[slug]/groupsCreate and manage groups, memberships, and manager scope.
/team/[slug]/groups/[group]Open a group-scoped activity view and its settings.
/team/[slug]/groups/[group]/insightsReview group-level insights and delivery context.
/team/[slug]/planCompare plan utilization, cycle pace, peaks, and capacity.
/team/[slug]/settingsManage team settings and optional GitHub, Jira, and Linear integrations.
/report/[slug]Open a shared report or its printable output.

Supported local sources

SourceTypical rootNotes
Claude Code~/.claude/projectsSessions, transcripts, usage, projects, and signals.
Codex~/.codex/sessionsSessions, transcripts, projects, and available usage.
GitHub Copilot CLI~/.copilot/session-state + authenticated local SDK RPCSessions, transcripts, tools, token totals, code changes, projects, and monthly AI-credit utilization.
Gemini CLI~/.gemini/tmpSession analytics and detail.
Antigravity~/.gemini/antigravity-cliSession analytics and detail.
CoworkLocal Cowork mirrorSession analytics and detail.
Grok Build~/.grok/sessions or GROK_HOMESessions and available usage.
Z.aiConfigured API keyUsage-only source; it is not a transcript adapter.

Plan-utilization coverage

Fleetlens polls each source's plan-utilization data independently — a missing or expired credential for one source never slows or hides the others on /usage or the menu bar widget. (The sidebar's current-usage gauge only ever shows Claude Code.)

SourceUsage trackedWindows shown
Claude CodeYes5-hour and 7-day, plus separate 7-day figures for Opus, Sonnet, OAuth apps, and Cowork, and optional pay-as-you-go extra usage.
CodexYes5-hour and 7-day.
GitHub Copilot CLIYesMonthly AI-credit or premium-request allowance only — no 5-hour or 7-day window.
Grok BuildYes7-day shared pool only — no 5-hour window.
Z.aiYes5-hour and 7-day token windows, plus a separate monthly web-search meter.
Gemini CLINoSession activity only.
AntigravityNoSession activity only.
CoworkNoSession activity only — usage already counts against the paired Claude Code account above.

Gemini CLI and Antigravity don't expose plan-utilization data to poll — this is a deliberate omission, not a temporary gap.

Environment variables

VariableDefaultPurpose
CCLENS_PORT3321Default local dashboard port.
CCLENS_HOME~/.cclensLocal Fleetlens state directory.
GROK_HOME~/.grokAlternate Grok Build home.
NEXT_OUTPUTunsetSet to standalone when building the bundled web app.

Team Edition server environment

These configure the self-hosted team-server (Docker image). The deploy guides pre-wire them; defaults and generation commands live in each path's README in deploy/.

VariableRequiredPurpose
DATABASE_URLYesPostgres connection string; migrations run against it automatically on boot.
BASE_URLYesPublic base URL of the deployed server; used for pairing links and redirects.
FLEETLENS_ENCRYPTION_KEYYesEncrypts integration credentials (GitHub, Jira, Linear, email) at rest. Keep it stable — rotating it makes stored credentials unreadable.
FLEETLENS_EXTERNAL_SCHEDULERNoSet to 1 to disable the in-process scheduler when running an external cron.
FLEETLENS_SCHEDULER_SECRETNoShared secret for the external scheduler endpoint.

Local state

~/.cclens/
  pid
  daemon.pid
  usage.jsonl
  daemon.log
  autostart.json
  entries/
  digests/
  agent-index/
  team-config.json

Provider transcript roots remain under the provider's own home directory. See the privacy model before inspecting or sharing any local file.

Need help choosing a command?

Run fleetlens help in the installed build for the exact flags supported by your version.