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 unifying usage metrics from various pay-as-you-go and quota-based AI services into a single, accessible interface.

How it works

The app automatically detects authentication tokens from OpenCode's auth.json and other local configuration files, keychain entries, and browser cookies. It then queries the respective provider APIs in parallel to fetch current usage, remaining quotas, and billing costs. All data is processed locally on the user's machine without third-party servers.

Who it’s for

Developers and power users on macOS who use multiple AI coding assistants and LLM providers (such as Claude, GitHub Copilot, Gemini, and OpenRouter) and want to track their spending and quota limits in real-time.

Highlights

  • Zero Configuration: Automatically detects providers from OpenCode and other common AI tool configurations.
  • Unified Dashboard: Displays pay-as-you-go costs and quota percentages (with color-coded indicators) in the macOS menu bar.
  • Multi-Source Discovery: Finds GitHub Copilot and Codex accounts across CLI, VS Code, Cursor, and browser cookies.
  • Predictive Tracking: Estimates end-of-month totals using weighted averages.
  • CLI Tool: Includes a command-line interface for programmatically querying provider status in table or JSON format.

Related

  • Project
  • Project
  • Project
  • Project
  • Project