Skip to content

Commit 1a448b4

Browse files
committed
feat(grok): add Grok Build usage adapter
Parse completed Grok Build turns, map token usage and LiteLLM pricing, and expose focused and unified reports. Discover data from non-empty GROK_HOME or ~/.grok, add schema and CLI integration, and document the source.
1 parent d500f5f commit 1a448b4

39 files changed

Lines changed: 2434 additions & 27 deletions

‎.agents/skills/agent-sources/SKILL.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ flags:
4444
- OpenCode: `rust/adapters/opencode/src/README.md`
4545
- Amp: `rust/adapters/amp/src/README.md`
4646
- pi-agent: `rust/adapters/pi/src/README.md`
47+
- Grok Build CLI: `rust/adapters/grok/README.md`
4748

4849
## Implementation Notes
4950

‎apps/ccusage/README.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ ccusage reads local usage data from coding agent CLIs and turns it into daily, w
7878
| Qwen | `ccusage qwen daily` |
7979
| GitHub Copilot CLI | `ccusage copilot daily` |
8080
| Gemini CLI | `ccusage gemini daily` |
81+
| Grok Build CLI | `ccusage grok daily` |
8182

8283
Use `ccusage daily`, `ccusage weekly`, `ccusage monthly`, or `ccusage session` to include every detected source in one report.
8384

@@ -132,6 +133,7 @@ bunx ccusage kimi daily
132133
bunx ccusage qwen daily
133134
bunx ccusage copilot daily
134135
bunx ccusage gemini daily
136+
bunx ccusage grok daily
135137
bunx ccusage pi daily --pi-path /path/to/sessions
136138
bunx ccusage pi daily --pi-path /path/to/sessions,/archive/pi/sessions
137139

@@ -164,7 +166,7 @@ bunx ccusage monthly --compact # Compact monthly report
164166
- 📊 **Daily Report**: View token usage and costs aggregated by date
165167
- 📅 **Monthly Report**: View token usage and costs aggregated by month
166168
- 💬 **Session Report**: View usage grouped by conversation sessions
167-
- 🤖 **Unified CLI Reports**: View Claude Code, Codex, OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, and Gemini CLI usage from one CLI
169+
- 🤖 **Unified CLI Reports**: View Claude Code, Codex, OpenCode, Amp, Droid, Codebuff, Hermes Agent, pi-agent, Goose, OpenClaw, Kilo, Kimi, Qwen, GitHub Copilot CLI, Gemini CLI, and Grok Build CLI usage from one CLI
168170
- ⏰ **5-Hour Blocks Report**: Track usage within Claude's billing windows with active block monitoring
169171
- 🚀 **Statusline Integration**: Compact usage display for Claude Code status bar hooks (Beta)
170172
- 🤖 **Model Tracking**: See which models are used across supported sources

0 commit comments

Comments
 (0)