BURNLENSDocsDashboard

CLI reference

The top-level surface as of 2026-08-16, taken from burnlens --help. Every command takes --help of its own, which is authoritative for your installed version.

Where things live

WhatPath
Database~/.burnlens/burnlens.db
Config (YAML, not TOML)$BURNLENS_CONFIG_PATH, then ./burnlens.yaml, ./burnlens.yml, then ~/.burnlens/config.yaml
Write-ahead log~/.burnlens/wal.jsonl
Dead letter queue~/.burnlens/wal_dlq.jsonl
Proxy127.0.0.1:8420

There is no burnlens --version. Use pip show burnlens to find out what you have installed.

Collect

CommandWhat it does
burnlens scanImport coding-agent session costs from disk into the requests DB.
burnlens startStart the BurnLens proxy server.
burnlens runRun a child command with auto-tagged git context.

Look at spend

CommandWhat it does
burnlens topLive API traffic viewer with auto-refresh.
burnlens uiOpen the dashboard in the default browser.
burnlens reportGenerate and print (or email) a cost summary report.
burnlens reposShow top 20 repos by cost over the lookback window.
burnlens prsShow top 20 PRs by cost over the lookback window.
burnlens devsShow top 20 developers by cost over the lookback window.
burnlens runsGroup spend into runs and their steps.
burnlens exportExport request data to CSV.

Find waste

CommandWhat it does
burnlens analyzeRun waste detectors and print findings.
burnlens findingsPersisted waste findings and their lifecycle.
burnlens economicsTop-line runtime economics: spend, waste rate, error spend, cost/outcome.
burnlens outcomeRecord business outcomes to get cost per accepted outcome.
burnlens recommendAnalyse usage patterns and suggest cheaper model alternatives.

Control spend

CommandWhat it does
burnlens budgetsShow per-team budget status for the current month.
burnlens customersShow per-customer spend and budget status for the current month.
burnlens keyRegister API keys for per-key daily caps.
burnlens keysShow today's spend per API-key label against its daily cap.
burnlens vkeyIssue virtual keys (gateway): per-team budget + model allowlist.
burnlens routingShow downgrade routing activity.

Operate

CommandWhat it does
burnlens loginAuthenticate with burnlens.app and enable cloud sync.
burnlens syncManually trigger cloud sync or check sync status.
burnlens doctorRun system health checks on proxy, database, and providers.
burnlens pricingShow the bundled model pricing table ($/1M tokens), or export it as CSV.
burnlens check-otelVerify connectivity to the OpenTelemetry collector.
burnlens walManage the Write-Ahead Log (WAL) and Dead Letter Queue (DLQ).

Common sequences

First cost number, from history that already exists:

pip install burnlens
burnlens scan
burnlens repos

Cost per merged PR on a repository, using the gh CLI to resolve outcomes:

burnlens outcome derive     # merged PRs -> outcomes
burnlens outcome show       # cost per accepted outcome

Both are idempotent and safe on a schedule: outcome ids are derived deterministically from the repo and PR number, so re-running only adds newly-closed PRs.

Meter and cap production traffic:

burnlens start
export OPENAI_BASE_URL=http://127.0.0.1:8420/proxy/openai
burnlens key register --label prod-openai --provider openai
burnlens keys

Find out why nothing is showing up:

burnlens doctor

Next

Flags and behaviour per area: scanning, proxy and tagging, budgets and hard caps. Errors and their fixes live in troubleshooting.

All documentation

  • Overview & install — What BurnLens is, how to install it, and which of the two entry points you want.
  • Scanning coding agents — Import Claude Code, Cursor, Codex and Gemini CLI cost history from local logs.
  • Proxy & tagging — Route production API traffic through the local proxy and attribute it with tags.
  • Budgets & hard caps — Daily key caps, team and customer budgets, virtual keys, downgrade routing.
  • CLI reference — Every burnlens command, and where the config file and database live.

Something here wrong or missing? Open an issue or email support@burnlens.app.