xujunfa

coding-agents-quota

0
0
# Install this skill:
npx skills add xujunfa/coding-agents-quota

Or install specific skill: npx add-skill https://github.com/xujunfa/coding-agents-quota

# Description

Query AI coding agent quotas (Minimax, Zhipu, QWen). Login once, then check usage via API or CLI.

# SKILL.md


name: coding-agents-quota
description: "Query AI coding agent quotas (Minimax, Zhipu, QWen). Login once, then check usage via API or CLI."
metadata: {"clawdbot":{"emoji":"πŸ’°","requires":{"bins":["node","npm"]}}}


Coding Agents Quota

Query usage quotas for AI coding agents.

Supported Providers

  • βœ… Minimax (MiniMax M2/M2.1)
  • πŸ”œ Zhipu (GLM-4)
  • πŸ”œ QWen (Qwen Code)

Usage

First Time Setup

Login to save authentication cookies:

cd ~/.clawdbot/skills/coding-agents-quota
npm run login minimax

Check Quota

npm run status minimax

Output Example

πŸ“Š Minimax Quota Status
==================================================
πŸ€– Model: MiniMax-M2
πŸ’° Prompts: 1260 / 1500
πŸ“ˆ Used: 84.0%
πŸ“… Period: 1/29/2026, 12:00:00 AM - 1/29/2026, 5:00:00 AM
==================================================
πŸ• Last Updated: 1/29/2026, 1:20:27 AM

Development

# Install dependencies
npm install

# Build TypeScript
npm run build

# Login
npm run login minimax

# Check status
npm run status minimax

API

The skill uses the provider's APIs:
- Minimax: https://www.minimaxi.com/v1/api/openplatform/coding_plan/remains

Authentication is stored in auth/minimax_cookies.json (gitignored).

# README.md

coding-agents-quota

Query AI coding agent quotas across multiple providers.

Supported Providers

  • βœ… Minimax (MiniMax M2.1)
  • πŸ”œ Zhipu (GLM-4)
  • πŸ”œ QWen (Qwen Code)

Installation

npm install

Usage

Login

First, login to save your session cookies:

# Login to Minimax
npm run login minimax

# Or run interactive login
npm run login

Check Quota

# Check Minimax quota
npm run status minimax

Project Structure

coding-agents-quota/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ commands/
β”‚   β”‚   β”œβ”€β”€ login.ts     # Login command
β”‚   β”‚   └── status.ts    # Status command
β”‚   β”œβ”€β”€ providers/
β”‚   β”‚   β”œβ”€β”€ base.ts      # Provider interface
β”‚   β”‚   └── minimax.ts   # Minimax implementation
β”‚   └── index.ts         # CLI entry point
β”œβ”€β”€ cookies/              # Saved session cookies (not tracked by git)
└── package.json

How It Works

  1. Login: Opens a browser window for you to log in to the provider's website. Session cookies are saved for future use.

  2. Status: Loads saved cookies, opens the browser, navigates to the quota page, and extracts your current usage.

Development

# Run in development mode
npm run dev status minimax

# Build for production
npm run build

# Supported AI Coding Agents

This skill is compatible with the SKILL.md standard and works with all major AI coding agents:

Learn more about the SKILL.md standard and how to use these skills with your preferred AI coding agent.