Get your AI subscription usage directly inside OpenCode with a single quota tool.
- GitHub Copilot quota (used, remaining, reset time)
- ChatGPT/Codex quota windows (primary, secondary, code review)
- Z.ai token + MCP quota usage
- Human-readable reset countdowns (
2d 4h,1h 20m)
Add this to your config.json, learn more here.
{
"plugin": ["opencode-quota-plugin"]
}Download the quota.md file and place in your opencode commands directory.
Learn more about the commands directory and it's path here.
Open OpenCode, run /quota command and done!
- Credentials are read from
~/.local/share/opencode/auth.json - Only configured providers are queried
- Output is returned as formatted JSON