COMMAND-LINE REFERENCE

One command, local reports

Use ./run from a source checkout, or tokens after a local editable install.

Syntax

tokens [day|week|month|all|dashboard|serve|doctor] [options]

Commands and ranges

CommandDefault windowResult
dayLast 14 daysDaily terminal report; the default command.
weekLast 8 weeksWeekly terminal report.
monthLast 6 monthsMonthly terminal report.
allAll available historyDaily terminal report.
dashboardSelected historySelf-contained offline HTML snapshot with day/week/month views.
serveSelected historyLoopback-only live dashboard; checks local logs every five minutes by default.
doctorNot applicableSafe environment and source diagnostics.

Options

OptionMeaning
--source SOURCESelect claude, gemini, or codex; repeat to combine.
--since YYYY-MM-DDInclusive start date.
--until YYYY-MM-DDInclusive end date.
--days NPositive day-mode window; default 14.
--weeks NPositive week-mode window; default 8.
--months NPositive month-mode window; default 6.
--timezone AREA/CITYIANA timezone override; system local timezone is detected by default.
--output DIRReport directory; default ./out.
--htmlAdd a static HTML report to a terminal range.
--dashboardGenerate the dashboard regardless of the positional range.
--anonymizePseudonymize project, session, and natural-language title identifiers; dashboard or serve only.
--interval SECONDSInitial live check interval; minimum 1, default 300. The page can select 1, 5, 15, or 30 minutes, or pause.
--port PORTLive loopback port; default 8765, or 0 to choose an available port.
--openOpen generated HTML or the live local URL in the default browser.
--no-cacheIgnore the user file cache and parse selected logs again.
--versionPrint the installed version.

Examples

tokens doctor

tokens week --source claude --source gemini

tokens month --months 12 --timezone America/New_York

tokens serve --open

tokens serve --port 0 --interval 2 \
  --source claude --source gemini

tokens dashboard --output ~/Reports/tokens --open

tokens dashboard --anonymize \
  --since 2026-08-01 \
  --until 2026-08-31

Behavior and paths