commands.sh

opencode stats

all

Show token usage and cost statistics.

More info →

Options (1)

-h, --helpboolean

Display help

Example: opencode stats {{[-h|--help]}}

Examples (7)

Show statistics

Show statistics for the last N days

opencode stats --days 30

Show statistics with model breakdown

Show top N models by usage

opencode stats --models 5

Show statistics for a specific project (omit the project name to use the current project)

opencode stats --project project_name

Show the top N tools used

opencode stats --tools 10

Display help

opencode stats [-h|--help]
made by @shridhargupta | data from tldr-pages