opencode-mystatus  by vbgate

AI subscription quota checker for multiple platforms

Created 5 months ago
254 stars

Top 99.0% on SourcePulse

GitHubView on GitHub
Project Summary

Summary

This OpenCode plugin consolidates AI subscription quota monitoring for platforms like OpenAI, Zhipu AI, Google Antigravity, and GitHub Copilot into a single command. It targets users of these AI services, offering a convenient way to track usage, understand remaining limits, and anticipate reset times, thereby preventing unexpected service interruptions.

How It Works

The plugin integrates with the OpenCode environment, reading API credentials and account details from local JSON configuration files (~/.local/share/opencode/auth.json and ~/.config/opencode/antigravity-accounts.json). It then programmatically queries the official APIs of each supported AI provider to fetch current quota status. The retrieved data is processed and presented to the user with clear visual indicators, including progress bars and countdowns to the next quota reset.

Quick Start & Requirements

Installation involves modifying the OpenCode configuration file (~/.config/opencode/opencode.json) to include "opencode-mystatus" in the plugin array and defining the mystatus slash command. A restart of OpenCode is then required. Alternatively, manual installation involves copying plugin files to the OpenCode configuration directory. Prerequisites include a functional OpenCode installation and, for Google Cloud support, the separate opencode-antigravity-auth plugin. Authentication credentials must be pre-configured in the specified local files.

Highlighted Details

  • Supports quota tracking for OpenAI, Zhipu AI, Z.ai, GitHub Copilot, and Google Cloud (Antigravity).
  • Features visual progress bars indicating remaining quota percentage and actual usage figures.
  • Displays countdown timers for quota reset periods.
  • Includes automatic masking of sensitive API keys in the output for enhanced security.
  • Handles multiple Google Cloud accounts.

Maintenance & Community

The provided README does not detail specific contributors, sponsorships, or community channels (e.g., Discord, Slack).

Licensing & Compatibility

The project is released under the MIT License, which permits broad usage, including commercial applications and linking within closed-source projects.

Limitations & Caveats

This plugin is dependent on the OpenCode ecosystem. Google Cloud quota monitoring requires the separate opencode-antigravity-auth plugin to be installed and configured. Support for additional AI platforms is planned but not yet implemented.

Health Check
Last Commit

4 months ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
1
Star History
13 stars in the last 30 days

Explore Similar Projects

Feedback? Help us improve.