Model Usage (CodexBar)
Summarize per-model usage and costs for Codex or Claude using CodexBar CLI local cost logs.
Tags: usage, cost, analytics, monitoring
Category: Analytics
Use Cases
- Real-time usage monitoring: see remaining limits in the menu bar
- Cost tracking: summarize per-model spending for budget management
- Rate limit awareness: know when your window resets before hitting limits
- Daily cost reports via OpenClaw cron automation
- Team budget monitoring: track shared API spending
- CI/CD integration: check usage programmatically in scripts
Tips
- Install the menu bar app for real-time visibility: `brew install --cask steipete/tap/codexbar`
- Use `codexbar cost` for OpenClaw-compatible cost summaries: `codexbar cost --json`
- Enable only the providers you actually use in Settings → Providers
- For Claude Code: use OAuth API auth for most reliable data (vs. browser cookies)
- Combine with OpenClaw cron for daily cost reports sent to Telegram
- Use Merge Icons mode if you track many providers — keeps menu bar clean
- Check GitHub releases for weekly updates — steipete ships improvements frequently
- Linux users: install the CLI-only binary and integrate with Waybar or TUI
Known Issues & Gotchas
- macOS 14+ (Sonoma) required for the menu bar app — CLI works on Linux too
- Cost data depends on local log files — if logs are cleared, historical data is lost
- Some providers (Claude, Cursor) use browser cookies for data — cookies can expire
- Usage display accuracy depends on each provider's data source reliability
- The Codex OpenAI web dashboard extras require manual or automatic cookie setup
- Multiple provider auth methods mean different failure modes — check Settings if a provider shows stale data
- The skill specifically uses the cost CLI subcommand — menu bar features are separate
Alternatives
- Usage4Claude
- ccusage
- Provider dashboards (web)
- OpenRouter dashboard
Community Feedback
Built a live terminal session usage + memory status bar for Claude Code. I've been using CodexBar and it's great — this one looks similar, very helpful!
— Reddit r/ClaudeCode
How did you guys track Codex usage? I use codexbar.app — it lets me track several providers too. Nice menu bar limit tracking for Codex and Claude Code.
— Reddit r/codex
I tried CodexBar but it was showing my limits as fully consumed when they clearly weren't, so I couldn't trust it. So I spent a weekend building an alternative.
— Reddit r/ClaudeCode
If you're looking for alternatives, people have suggested: Usage4Claude (another open-source project), CodexBar (for multiple AI providers).
— Reddit r/ClaudeAI
Configuration Examples
Install menu bar app + CLI
# Menu bar app (macOS)
brew install --cask steipete/tap/codexbar
# CLI only (macOS or Linux)
brew install steipete/tap/codexbar
# Or download from GitHub releases
# https://github.com/steipete/CodexBar/releasesCLI cost summary
# Summarize all costs
codexbar cost
# JSON output for scripting
codexbar cost --json | jq '.models[] | {name, total_cost}'
# Filter by date range
codexbar cost --since 2026-03-01Provider setup
# Open Settings to enable providers
# Menu bar icon → Settings → Providers
# For Codex: install and sign in to Codex CLI
# For Claude: codexbar uses OAuth or browser cookies
# For Gemini: uses Gemini CLI OAuth credentialsInstallation
brew install steipete/tap/codexbarSource: bundled