slkiser/opencode-quota
OpenCode quota & tokens usage with zero context window pollution. Supports OpenCode Go, Cursor, GitHub Copilot, OpenAl, Kimi Code, Alibaba Coding Plan, Chutes Al, Google Antigravity, Z.ai Coding Plan and more.
What it solves
OpenCode Quota helps you track your AI usage, token consumption, and associated costs directly within the OpenCode environment. It prevents unexpected overages by providing clear visibility into your limits and current spending across various AI providers.
How it works
This plugin integrates into OpenCode's TUI (Terminal User Interface) and Desktop versions to monitor your activity. Once installed, you can use simple commands like /quota to view your limits or /quota_usage to see a breakdown of your token usage and costs over specific time ranges. It supports a wide range of AI providers, including Anthropic, OpenAI, GitHub Copilot, and various regional providers, and allows you to configure custom providers for tracking.
Who it’s for
This tool is designed for developers who use OpenCode and want to keep a close eye on their AI service usage, manage costs, and ensure they stay within their allocated quotas across multiple AI platforms.
Highlights
- Provides a dedicated
/quotawindow and sidebar panel for real-time monitoring. - Supports detailed usage reporting for various timeframes (e.g., today, 7 days, 30 days, or custom ranges).
- Offers terminal-based commands (
npx @slkiser/opencode-quota@latest show) to check status even when OpenCode is closed. - Includes configurable settings for status lines, toasts, and layout preferences.
- Compatible with a broad list of AI providers, with options to define custom tracking for others.
Related
- Project
- Project
- Project
- Project
- Project