Something went wrong. Try again.
npx ccusage
Something went wrong. Try again.
README.md
Amp Source #
Data source:
${AMP_DATA_DIR:-~/.local/share/amp}/threads/
Each thread is a JSON file named T-{uuid}.json.
Usage comes from:
usageLedger.events[]for token usage and credits, withmessages[].usagesupplying the cache creation/read breakdown pertoMessageId. Each event'stokensobject uses the legacy keysinput,output, andtotal.messages[].usagedirectly whenusageLedger.eventsis not present (current Amp schema). Each assistant message'susageobject carriesmodel,timestamp, and theinputTokens,outputTokens,cacheCreationInputTokens,cacheReadInputTokens, andtotalTokensfields.totalTokensis only used as a fallback when the split fields are missing.
Amp also reports credits; display credits alongside USD estimates when the command/report supports it.
Commands:
ccusage amp daily
ccusage amp monthly
ccusage amp session
ccusage amp daily --json
ccusage amp daily --compact