Skip to main content

Command Overview

beacon endpoint tokens reads Beacon endpoint events from the runtime JSONL log and summarizes token usage, cost, models, sessions, runs, harnesses, and repositories.
Command syntax
beacon endpoint tokens [flags]
Use this command when you need a local report before opening the dashboard, sending diagnostics, or validating token attribution for a specific agent session.

Examples

Show token usage from the default per-user endpoint log:
Show local token usage
beacon endpoint tokens
Print a machine-readable report:
Print JSON
beacon endpoint tokens --json
Filter to one session and include per-step detail:
Filter by session
beacon endpoint tokens --session claude-session-123
Group usage into hourly time buckets:
Bucket usage over time
beacon endpoint tokens --bucket 1h
Inspect a CI runtime log and filter to a run:
Inspect a CI run
beacon endpoint tokens --log-path ./beacon-runtime.jsonl --run-id github/123456 --json

Filters

Filters can be combined to narrow the report to a time range, model, agent harness, repository, session, or CI run.
FlagDescription
--since <timestamp>Only include events at or after this RFC3339 timestamp
--until <timestamp>Only include events at or before this RFC3339 timestamp
--session <id>Filter to one session and include per-step detail
--model <name>Filter by model name
--harness <name>Filter by harness name
--repository <path-or-url>Filter by repository
--run-id <id>Filter by CI run ID. Bare run IDs and composite provider/run keys are accepted
--bucket <duration>Time-series bucket size, such as 1h or 15m
--top <count>Limit each grouping to the top N entries. 0 keeps all entries

Runtime Log Selection

By default, the command reads the per-user endpoint runtime log. Use --system for a system-mode endpoint, or --log-path when reading a copied runtime log or a CI session artifact.
FlagDescription
--userUse per-user endpoint paths. Enabled by default
--systemUse system endpoint paths
--log-path <path>Runtime JSONL log path. In CI, point this at the session log
--jsonPrint the token usage report as JSON

Endpoint dashboard

Explore endpoint runtime logs locally in a browser.

Endpoint inventory

See configured, detected, hook, and observed endpoint inventory.