Discover and explore top open-source AI tools and projects—updated daily.
steipeteReal-time AI code assistant usage stats on macOS
Top 22.7% on SourcePulse
Summary
CodexBar is a lightweight macOS menu bar application designed for developers to monitor their OpenAI Codex and Claude Code API usage statistics without needing to log into web interfaces. It provides real-time visibility into session and weekly token limits, helping users proactively manage their API consumption and avoid unexpected interruptions. The app targets developers who frequently use these AI coding assistants and value immediate, on-device status updates.
How It Works
The application employs a privacy-conscious, on-device approach. For Codex, it prioritizes local RPC calls to fetch rate limits and credits, falling back to parsing the output of a local codex /status command via a pseudo-terminal (PTY). For Claude Code, it similarly uses a PTY to run claude /usage and claude /status commands, extracting session, weekly, and Sonnet-only weekly usage, along with account details directly from the CLI output. This method eliminates the need for browser interaction or external network calls beyond the CLI itself, ensuring data remains local.
Quick Start & Requirements
brew install --cask steipete/tap/codexbarclaude login).https://github.com/steipete/CodexBar/releasesHighlighted Details
Maintenance & Community
The project is maintained by Peter Steinberger (steipete). No specific community channels like Discord or Slack are mentioned in the README.
Licensing & Compatibility
Limitations & Caveats
Initial usage data may appear as "No usage yet." until the respective CLIs have processed at least one prompt. Parsing might be affected by future changes in the CLIs' output schemas, though cached data is preserved. The scripted build process targets arm64; universal binary builds require manual configuration.
21 hours ago
Inactive
Maciek-roboblog
winfunc