mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-02 00:54:34 +00:00
Update cheatsheets
This commit is contained in:
37
tldr/opencode-stats
Normal file
37
tldr/opencode-stats
Normal file
@@ -0,0 +1,37 @@
|
||||
---
|
||||
syntax: markdown
|
||||
tags: [tldr, common]
|
||||
source: https://github.com/tldr-pages/tldr.git
|
||||
---
|
||||
# opencode stats
|
||||
|
||||
> Show token usage and cost statistics.
|
||||
> More information: <https://opencode.ai/docs/cli#stats>.
|
||||
|
||||
- Show statistics:
|
||||
|
||||
`opencode stats`
|
||||
|
||||
- Show statistics for the last N days:
|
||||
|
||||
`opencode stats --days {{30}}`
|
||||
|
||||
- Show statistics with model breakdown:
|
||||
|
||||
`opencode stats --models`
|
||||
|
||||
- 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]}}`
|
||||
Reference in New Issue
Block a user