From da849b5bf69884004648ab110cede314772530ee Mon Sep 17 00:00:00 2001 From: "opencode-agent[bot]" Date: Wed, 31 Dec 2025 00:27:57 +0000 Subject: [PATCH 1/2] Added docs for `stats --models` flag --- packages/web/src/content/docs/cli.mdx | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/packages/web/src/content/docs/cli.mdx b/packages/web/src/content/docs/cli.mdx index 1553dc80ee9..52baa9e0b0c 100644 --- a/packages/web/src/content/docs/cli.mdx +++ b/packages/web/src/content/docs/cli.mdx @@ -407,11 +407,22 @@ opencode stats #### Flags -| Flag | Description | -| ----------- | --------------------------------------------------------------- | -| `--days` | Show stats for the last N days (all time) | -| `--tools` | Number of tools to show (all) | -| `--project` | Filter by project (all projects, empty string: current project) | +| Flag | Description | +| ----------- | --------------------------------------------------------------------------- | +| `--days` | Show stats for the last N days (all time) | +| `--tools` | Number of tools to show (all) | +| `--models` | Show model usage breakdown (hidden by default). Pass a number to show top N | +| `--project` | Filter by project (all projects, empty string: current project) | + +#### Examples + +```bash +# Show model usage (messages, input/output tokens, cost) +opencode stats --models + +# Show only the top 5 models +opencode stats --models 5 +``` --- From c2f7f5beda009571eff566939e9a2d1e2d34e590 Mon Sep 17 00:00:00 2001 From: Aiden Cline <63023139+rekram1-node@users.noreply.github.com> Date: Tue, 30 Dec 2025 18:31:34 -0600 Subject: [PATCH 2/2] Delete examples from cli.mdx Removed examples for the 'opencode stats' command from documentation. --- packages/web/src/content/docs/cli.mdx | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/web/src/content/docs/cli.mdx b/packages/web/src/content/docs/cli.mdx index 52baa9e0b0c..4fe1d610347 100644 --- a/packages/web/src/content/docs/cli.mdx +++ b/packages/web/src/content/docs/cli.mdx @@ -414,16 +414,6 @@ opencode stats | `--models` | Show model usage breakdown (hidden by default). Pass a number to show top N | | `--project` | Filter by project (all projects, empty string: current project) | -#### Examples - -```bash -# Show model usage (messages, input/output tokens, cost) -opencode stats --models - -# Show only the top 5 models -opencode stats --models 5 -``` - --- ### export