Skip to content
Last updated

tdx usage

Show estimated AI Suite usage across Claude, Codex, and OpenCode, with breakdowns by profile and source.

tdx usage
tdx usage --json
tdx usage --jsonl

The report reads the shared local usage ledger and recalculates totals when opened. It shows today's, this month's, and total credits, followed by usage by source and profile. JSON output includes summary, profiles, and sources. The table labels treasure_work_<site>_<account>_<user> profiles as Treasure Work <site>:<account>:<user>; JSON retains their profile IDs. Profiles starting with @tdx-studio: are grouped into Legacy profiles, summing credits and requests and showing their most recent usage time. The source breakdown groups tdx-studio, tdx-proxy, and tdx-claude-code under Treasure Work, summing their credits and request counts.

Model prices come from each profile's LLM Proxy /v1/work/models catalog, including long-context and cache rates. Catalogs refresh periodically and retain their last successful response for offline use. Models without catalog prices use bundled estimates. Amounts use current prices and are estimates, not historical invoices.

tdx usage replaces tdx claude usage and tdx opencode usage. Those launcher-specific report commands have been removed. The Claude status-line integration continues to use tdx claude statusline.

Codex usage is recorded from new persisted rollout token events while tdx codex runs. Existing Codex session history is not imported. Claude and OpenCode usage is recorded by their integrated proxy.

For internal employees, identified by the active profile’s cached treasure.ai or treasure-data.com email, the table shows estimated USD costs instead of credits, using the same conversion as tdx claude statusline. Other users and profiles without cached identity see credits. Employee JSON output preserves all credit fields and adds todayCostUsd, monthCostUsd, and totalCostUsd to summary; costUsd to each profile; and costUsd, todayCostUsd, and monthCostUsd to each source. These numeric fields are unrounded USD estimates.