{"id":37227990,"url":"https://github.com/vbgate/opencode-mystatus","last_synced_at":"2026-01-20T18:34:44.920Z","repository":{"id":331828702,"uuid":"1132044943","full_name":"vbgate/opencode-mystatus","owner":"vbgate","description":" Check all your AI subscription quotas in one command. Supports OpenAI, Zhipu AI, and Google Antigravity. More platforms coming soon.","archived":false,"fork":false,"pushed_at":"2026-01-13T18:32:49.000Z","size":6248,"stargazers_count":115,"open_issues_count":1,"forks_count":6,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-15T07:59:02.695Z","etag":null,"topics":["opencode","opencode-plugin","opencode-plugins"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vbgate.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-01-11T07:51:44.000Z","updated_at":"2026-01-15T06:12:39.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/vbgate/opencode-mystatus","commit_stats":null,"previous_names":["vbgate/opencode-mystatus"],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/vbgate/opencode-mystatus","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbgate%2Fopencode-mystatus","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbgate%2Fopencode-mystatus/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbgate%2Fopencode-mystatus/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbgate%2Fopencode-mystatus/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vbgate","download_url":"https://codeload.github.com/vbgate/opencode-mystatus/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vbgate%2Fopencode-mystatus/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28609121,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T16:10:39.856Z","status":"ssl_error","status_checked_at":"2026-01-20T16:10:39.493Z","response_time":117,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["opencode","opencode-plugin","opencode-plugins"],"created_at":"2026-01-15T03:25:20.344Z","updated_at":"2026-01-20T18:34:44.908Z","avatar_url":"https://github.com/vbgate.png","language":"TypeScript","readme":"# opencode-mystatus\n\n[![npm version](https://img.shields.io/npm/v/opencode-mystatus.svg)](https://www.npmjs.com/package/opencode-mystatus)\n[![npm downloads](https://img.shields.io/npm/dt/opencode-mystatus)](https://www.npmjs.com/package/opencode-mystatus)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nAn [OpenCode](https://opencode.ai) plugin to query account quota usage for multiple AI platforms.\n\n[中文文档](./README.zh-CN.md)\n\n![Check AI Quota in One Click](./assets/mystatus-banner-en.jpeg)\n\n## Supported Platforms\n\n| Platform     | Account Type      | Data Source                                    |\n| ------------ | ----------------- | ---------------------------------------------- |\n| OpenAI       | Plus / Team / Pro | `~/.local/share/opencode/auth.json`            |\n| Zhipu AI     | Coding Plan       | `~/.local/share/opencode/auth.json`            |\n| Z.ai         | Coding Plan       | `~/.local/share/opencode/auth.json`            |\n| GitHub Copilot | Individual / Business | `~/.local/share/opencode/auth.json`            |\n| Google Cloud | Antigravity       | `~/.config/opencode/antigravity-accounts.json` |\n\n## Installation\n\n### Let an LLM do it\n\nPaste this into any LLM agent (Claude Code, OpenCode, Cursor, etc.):\n\n```\nInstall the opencode-mystatus plugin by following: https://raw.githubusercontent.com/vbgate/opencode-mystatus/main/README.md\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eInstructions for LLM agents\u003c/b\u003e\u003c/summary\u003e\n\nTo install this plugin, perform these steps:\n\n1. Add `\"opencode-mystatus\"` to the `plugin` array in `~/.config/opencode/opencode.json`\n\n2. Add the slash command to the `command` object in the same file:\n\n```json\n{\n  \"plugin\": [\"opencode-mystatus\"],\n  \"command\": {\n    \"mystatus\": {\n      \"description\": \"Query quota usage for all AI accounts\",\n      \"template\": \"Use the mystatus tool to query quota usage. Return the result as-is without modification.\"\n    }\n  }\n}\n```\n\n3. Tell the user to restart OpenCode.\n\n\u003c/details\u003e\n\n### Manual Installation\n\n1. Add the plugin and slash command to your `~/.config/opencode/opencode.json`:\n\n```json\n{\n  \"plugin\": [\"opencode-mystatus\"],\n  \"command\": {\n    \"mystatus\": {\n      \"description\": \"Query quota usage for all AI accounts\",\n      \"template\": \"Use the mystatus tool to query quota usage. Return the result as-is without modification.\"\n    }\n  }\n}\n```\n\n2. Restart OpenCode\n\n### From Local Files\n\nCopy the plugin files to your OpenCode config directory:\n\n1. Copy `plugin/mystatus.ts` and `plugin/lib/` to `~/.config/opencode/plugin/`\n2. Copy `command/mystatus.md` to `~/.config/opencode/command/`\n3. Restart OpenCode\n\n## Usage\n\n### Option 1: Slash Command\n\nUse the `/mystatus` command to get complete quota information:\n\n```\n/mystatus\n```\n\n### Option 2: Natural Language\n\nSimply ask in natural language, for example:\n\n- \"Check my OpenAI quota\"\n- \"How much Codex quota do I have left?\"\n- \"Show my AI account status\"\n\nOpenCode will automatically use the mystatus tool to answer your question.\n\n## Output Example\n\n```\n## OpenAI Account Quota\n\nAccount:        user@example.com (team)\n\n3-hour limit\n██████████████████████████████ 85% remaining\nResets in: 2h 30m\n\n## Zhipu AI Account Quota\n\nAccount:        9c89****AQVM (Coding Plan)\n\n5-hour token limit\n██████████████████████████████ 95% remaining\nUsed: 0.5M / 10.0M\nResets in: 4h\n\n## Z.ai Account Quota\n\nAccount:        9c89****AQVM (Z.ai)\n\n5-hour token limit\n██████████████████████████████ 95% remaining\nUsed: 0.5M / 10.0M\nResets in: 4h\n\n## GitHub Copilot Account Quota\n\nAccount:        GitHub Copilot (individual)\n\nPremium        ████░░░░░░░░░░░░░░░░ 24% (229/300)\n\nQuota resets: 19d 0h (2026-02-01)\n\n## Google Cloud Account Quota\n\n### user@gmail.com\n\nG3 Pro     4h 59m     ████████████████████ 100%\nG3 Image   4h 59m     ████████████████████ 100%\nG3 Flash   4h 59m     ████████████████████ 100%\nClaude     2d 9h      ░░░░░░░░░░░░░░░░░░░░ 0%\n```\n\n## Features\n\n- Query quota usage across multiple AI platforms in one command\n- Visual progress bars showing remaining quota\n- Reset time countdown\n- Multi-language support (Chinese / English)\n- Multiple Google Cloud accounts support\n- API key masking for security\n\n## Configuration\n\nNo additional configuration required. The plugin automatically reads credentials from:\n\n- **OpenAI, Zhipu AI, Z.ai \u0026 GitHub Copilot**: `~/.local/share/opencode/auth.json`\n- **Google Cloud**: `~/.config/opencode/antigravity-accounts.json`\n\n### Google Cloud Setup\n\nTo query Google Cloud (Antigravity) account quota, you need to install the [opencode-antigravity-auth](https://github.com/NoeFabris/opencode-antigravity-auth) plugin first to authenticate your Google account.\n\n## Security\n\nThis plugin is safe to use:\n\n**Local Files Accessed (read-only):**\n\n- `~/.local/share/opencode/auth.json` - OpenCode's official auth storage\n- `~/.config/opencode/antigravity-accounts.json` - Antigravity plugin's account storage\n\n**API Endpoints (all official):**\n\n- `https://chatgpt.com/backend-api/wham/usage` - OpenAI official quota API\n- `https://bigmodel.cn/api/monitor/usage/quota/limit` - Zhipu AI official quota API\n- `https://api.z.ai/api/monitor/usage/quota/limit` - Z.ai official quota API\n- `https://api.github.com/copilot_internal/user` - GitHub Copilot official API\n- `https://oauth2.googleapis.com/token` - Google official OAuth API\n- `https://cloudcode-pa.googleapis.com/v1internal:fetchAvailableModels` - Google Cloud official API\n\n**Privacy:**\n\n- No data is stored, uploaded, or cached by this plugin\n- Sensitive information (API keys) is automatically masked in output\n- Source code is fully open for review\n\n## Google Cloud Models\n\nThe plugin displays quota for these models:\n\n| Display Name | Model Key                                      |\n| ------------ | ---------------------------------------------- |\n| G3 Pro       | `gemini-3-pro-high` / `gemini-3-pro-low`       |\n| G3 Image     | `gemini-3-pro-image`                           |\n| G3 Flash     | `gemini-3-flash`                               |\n| Claude       | `claude-opus-4-5-thinking` / `claude-opus-4-5` |\n\n## Development\n\n```bash\n# Using npm\nnpm install\nnpm run typecheck\nnpm run build\n\n# Or using Bun\nbun install\nbun run typecheck\nbun run build\n```\n\n## License\n\nMIT\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbgate%2Fopencode-mystatus","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvbgate%2Fopencode-mystatus","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvbgate%2Fopencode-mystatus/lists"}