Check AI CLI usage/quota for Claude, Codex, Gemini, Z.AI
Check remaining quota and usage for AI coding assistants (Claude, Codex, Gemini, Z.AI) to monitor your limits and avoid hitting rate caps.
/plugin marketplace add cruzanstx/daplug/plugin install daplug@cruzanstxCheck remaining quota and usage for AI coding assistants using the cclimits npm package.
# Compact one-liner (5h window)
npx cclimits --oneline
# Detailed output (all tools)
npx cclimits
# Specific tools only
npx cclimits --claude
npx cclimits --codex
npx cclimits --gemini
npx cclimits --zai
# JSON output (for scripting)
npx cclimits --json
Display the results to the user. Key things to highlight:
If a tool shows "No credentials found", tell the user how to authenticate:
claude to logincodex logingemini to loginZAI_KEY environment variableIf the user wants to run this command without approval prompts, add to ~/.claude/settings.json under permissions.allow:
"Bash(npx cclimits:*)",
"Bash(cclimits:*)"