Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

opencode-quota

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-quota

OpenCode plugin to display subscription quotas for ChatGPT Codex, Google Antigravity, and z.ai

latest
Source
npmnpm
Version
0.0.1-dev
Version published
Maintainers
1
Created
Source

opencode-quota

OpenCode plugin that fetches subscription quotas for ChatGPT Codex, Google Antigravity, and z.ai.

Features

  • /quotas command for all providers
  • /quotas <provider> for a single provider
  • Returns markdown summaries plus raw JSON
  • Reads tokens from OpenCode and auth plugins

Installation in OpenCode

Create or edit ~/.config/opencode/opencode.json:

{
  "$schema": "https://opencode.ai/config.json",
  "plugin": ["opencode-quota"]
}

For local development, use a relative path:

{
  "plugin": ["./path/to/opencode-quota"]
}

Provider Setup

ChatGPT Codex

  • Install the opencode-openai-codex-auth plugin, or ensure openai auth exists in ~/.local/share/opencode/auth.json.
  • The plugin also checks ~/.opencode/auth/openai.json as a fallback.

Google Antigravity

  • Install an Antigravity auth plugin (for example, opencode-antigravity-auth).
  • Ensure accounts are stored in ~/.config/opencode/antigravity-accounts.json.
  • The first configured account is used for quota checks.

z.ai

  • Add a zai or z.ai entry in ~/.local/share/opencode/auth.json with the API key, or set ZAI_API_KEY.

Usage

/quotas
/quotas codex
/quotas antigravity
/quotas zai

Output

  • markdown: human-readable summary
  • json: provider-specific quota data

Development

bun install
mise run build
mise run test
mise run lint

Author

Nelson Pires nelsonpires.sn@gmail.com

Repository

https://github.com/nelsonPires5/opencode-quota

License

MIT License. See the LICENSE file for details.

Keywords

opencode

FAQs

Package last updated on 13 Jan 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts