opgginc/opencode-bar
Effortless token usage tracker for OpenCode
What it solves
OpenCode Bar is a macOS menu bar application that provides real-time monitoring of AI provider usage and costs. It eliminates the need to manually check multiple dashboards by aggregating usage metrics, quotas, and billing for various AI services (like Claude, Gemini, GitHub Copilot, and OpenRouter) into a single, unified view.
How it works
The app automatically detects AI providers by reading authentication tokens from OpenCode's auth.json and other local configuration files. It also discovers accounts from the macOS Keychain, CLI config stores, and browser cookies. Once detected, it queries provider APIs in parallel to fetch current usage, credits, and quota status, displaying them with color-coded visual indicators in the menu bar.
Who it’s for
Developers and power users on macOS who use multiple AI coding assistants and LLM providers and want to track their spending and quota limits without switching between different web interfaces.
Highlights
- Zero Configuration: Automatically detects providers from OpenCode and other common AI tool configurations.
- Multi-Source Discovery: Aggregates accounts from OpenCode, VS Code, Cursor, and browser cookies.
- Real-time Dashboard: Provides a menu bar view with color-coded progress for quota-based and pay-as-you-go services.
- CLI Tool: Includes a command-line interface for programmatically querying provider status and exporting data as JSON.
- Usage Predictions: Estimates end-of-month costs based on weighted averages.
- Privacy-First: All data remains local; the app communicates directly with provider APIs.
Related
- Project
- Project
- Project
- Project