An OpenCode plugin to query account quota usage for multiple AI platforms.
| Platform | Account Type | Data Source |
|---|---|---|
| OpenAI | Plus / Team / Pro | ~/.local/share/opencode/auth.json |
| Zhipu AI | Coding Plan | ~/.local/share/opencode/auth.json |
| Z.ai | Coding Plan | ~/.local/share/opencode/auth.json |
| GitHub Copilot | Individual / Business | ~/.local/share/opencode/auth.json |
| Google Cloud | Antigravity | ~/.config/opencode/antigravity-accounts.json |
| Anthropic Claude | API Key | ~/.local/share/opencode/auth.json |
| Groq | API Key | ~/.local/share/opencode/auth.json |
| Google Gemini | AI Studio API Key | ~/.local/share/opencode/auth.json |
| Kimi (Moonshot) | API Key | ~/.config/opencode/mystatus.json |
| Kimi Code | API Key | ~/.config/opencode/mystatus.json |
| MiniMax | API Key | ~/.config/opencode/mystatus.json |
| Abacus | API Key | ~/.config/opencode/mystatus.json |
| Nano-GPT | API Key | ~/.config/opencode/mystatus.json |
| Chutes | JWT Token | ~/.config/opencode/mystatus.json |
Paste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.):
Install the opencode-zaxbystatus plugin by following: https://github.com/zaxbysauce/opencode-zaxbystatus/main/README.md
Instructions for LLM agents
To install this plugin, perform these steps:
-
Add
"opencode-zaxbystatus"to thepluginarray in~/.config/opencode/opencode.json -
Add the slash command to the
commandobject in the same file:
{
"plugin": ["opencode-zaxbystatus"],
"command": {
"mystatus": {
"description": "Query quota usage for all AI accounts",
"template": "Use the mystatus tool to query quota usage. Return the result as-is without modification."
}
}
}- Tell the user to restart OpenCode.
- Add the plugin and slash command to your
~/.config/opencode/opencode.json:
{
"plugin": ["opencode-zaxbystatus"],
"command": {
"mystatus": {
"description": "Query quota usage for all AI accounts",
"template": "Use the mystatus tool to query quota usage. Return the result as-is without modification."
}
}
}- Restart OpenCode
Copy the plugin files to your OpenCode config directory:
- Copy
plugin/mystatus.tsandplugin/lib/to~/.config/opencode/plugin/ - Copy
command/mystatus.mdto~/.config/opencode/command/ - Restart OpenCode
Use the /mystatus command to get complete quota information:
/mystatus
Simply ask in natural language, for example:
- "Check my OpenAI quota"
- "How much Codex quota do I have left?"
- "Show my AI account status"
OpenCode will automatically use the mystatus tool to answer your question.
## OpenAI Account Quota
Account: user@example.com (team)
3-hour limit
██████████████████████████████ 85% remaining
Resets in: 2h 30m
## Zhipu AI Account Quota
Account: 9c89****AQVM (Coding Plan)
5-hour token limit
██████████████████████████████ 95% remaining
Used: 0.5M / 10.0M
Resets in: 4h
## Z.ai Account Quota
Account: 9c89****AQVM (Z.ai)
5-hour token limit
██████████████████████████████ 95% remaining
Used: 0.5M / 10.0M
Resets in: 4h
## GitHub Copilot Account Quota
Account: GitHub Copilot (individual)
Premium ████░░░░░░░░░░░░░░░░ 24% (229/300)
Quota resets: 19d 0h (2026-02-01)
## Google Cloud Account Quota
### user@gmail.com
G3 Pro 4h 59m ████████████████████ 100%
G3 Image 4h 59m ████████████████████ 100%
G3 Flash 4h 59m ████████████████████ 100%
Claude 2d 9h ░░░░░░░░░░░░░░░░░░░░ 0%
- Query quota usage across multiple AI platforms in one command
- Visual progress bars showing remaining quota
- Reset time countdown
- Multi-language support (Chinese / English)
- Multiple Google Cloud accounts support
- Support for 14 AI platforms (OpenAI, Anthropic, Groq, Gemini, Zhipu, Z.ai, Google Cloud, Kimi, MiniMax, Abacus, Nano-GPT, Chutes, GitHub Copilot)
No additional configuration required for most platforms. The plugin automatically reads credentials from:
- OpenAI, Zhipu AI, Z.ai, GitHub Copilot, Anthropic, Groq, Gemini:
~/.local/share/opencode/auth.json - Google Cloud:
~/.config/opencode/antigravity-accounts.json - Other providers (Kimi, MiniMax, etc.):
~/.config/opencode/mystatus.json
To query Google Cloud (Antigravity) account quota, you need to install the opencode-antigravity-auth plugin first to authenticate your Google account.
For providers not stored in OpenCode's native auth (Kimi, MiniMax, Abacus, Nano-GPT, Chutes), create ~/.config/opencode/mystatus.json:
{
"chutes": { "token": "eyJ..." },
"kimi": { "key": "sk-..." },
"kimi-code": { "key": "sk-..." },
"minimax": { "key": "...", "groupId": "..." },
"abacus": { "key": "..." },
"nano-gpt": { "key": "..." }
}This plugin is safe to use:
Local Files Accessed (read-only):
~/.local/share/opencode/auth.json- OpenCode's official auth storage~/.config/opencode/antigravity-accounts.json- Antigravity plugin's account storage~/.config/opencode/mystatus.json- MyStatus plugin configuration
API Endpoints (all official):
https://chatgpt.com/backend-api/wham/usage- OpenAI official quota APIhttps://bigmodel.cn/api/monitor/usage/quota/limit- Zhipu AI official quota APIhttps://api.z.ai/api/monitor/usage/quota/limit- Z.ai official quota APIhttps://api.github.com/copilot_internal/user- GitHub Copilot official APIhttps://oauth2.googleapis.com/token- Google official OAuth APIhttps://cloudcode-pa.googleapis.com/v1internal:fetchAvailableModels- Google Cloud official APIhttps://api.anthropic.com/v1/models- Anthropic official APIhttps://api.groq.com/openai/v1/models- Groq official APIhttps://generativelanguage.googleapis.com/v1beta/models- Google Gemini official APIhttps://api.moonshot.cn/v1/users/me/balance- Kimi official APIhttps://api.kimi.com/coding/v1/users/me/balance- Kimi Code official APIhttps://api.minimax.io/v1/models- MiniMax official APIhttps://abacus.ai/api/v0/getUsage- Abacus official APIhttps://nano-gpt.com/api/account- Nano-GPT official APIhttps://api.chutes.ai/users/me/quota_usage/me- Chutes official API
Privacy:
- No data is stored, uploaded, or cached by this plugin
- Sensitive information (API keys) is automatically masked in output
- Source code is fully open for review
The plugin displays quota for these models:
| Display Name | Model Key |
|---|---|
| G3 Pro | gemini-3-pro-high / gemini-3-pro-low |
| G3 Image | gemini-3-pro-image |
| G3 Flash | gemini-3-flash |
| Claude | claude-opus-4-5-thinking / claude-opus-4-5 |
# Using npm
npm install
npm run typecheck
npm run build
# Or using Bun
bun install
bun run typecheck
bun run buildMIT
