opgginc/opencode-bar
Effortless token usage tracker for OpenCode
What it solves
OpenCode Bar solves the problem of fragmented AI usage tracking. If you use multiple AI coding tools and services, it is difficult to keep track of your remaining quotas, pay-as-you-go costs, and subscription limits across different platforms. This tool centralizes all that data into a single, real-time dashboard in your macOS menu bar.
How it works
The app automatically detects AI providers registered in your OpenCode configuration by reading your local credential stores and configuration files. It uses parallel processing to fetch usage data directly from these providers, deduplicates accounts (such as multiple GitHub Copilot logins), and displays the information in a unified menu. It operates entirely locally, communicating directly with provider APIs without using third-party servers.
Who it’s for
It is designed for developers and power users who rely on multiple AI coding assistants and services—such as GitHub Copilot, Claude, Gemini, and various pay-as-you-go APIs—and want a lightweight, "set-and-forget" way to monitor their usage and costs without manually checking individual websites.
Highlights
- Zero-Configuration Setup: Automatically discovers providers and credentials from your existing OpenCode installation.
- Unified Dashboard: Displays both quota-based limits and pay-as-you-go costs in one menu bar interface.
- Privacy-Focused: All data stays on your machine; the app uses read-only access to your existing tokens.
- Detailed Insights: Provides end-of-month cost predictions, usage history, and multi-account support.
- CLI Included: Offers a command-line interface for users who want to query their usage programmatically or integrate it into scripts.
Related
- Project
- Project
- Project
- Project
- Project