agent-quota

121212165/agent-quota
★ 0 stars Go AI/LLM Updated 2d ago
Agent 额度管家 — AI agent 剩余额度感知与任务预算硬阻断(MCP Server + CLI/Skill,Go 单二进制)
View on GitHub → 🔍 Audit Wallet Slippage →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agent-quota": {
      "command": "go",
      "args": [
        "run",
        "github.com/121212165/agent-quota@latest"
      ]
    }
  }
}

README Excerpt

让 AI agent 能**看到自己的剩余额度与消耗次数**,并**规定每次任务的消耗上限**。Go 实现的单二进制工具,零运行时依赖,提供 **MCP Server** 与 **CLI/Skill** 两种接入形态。 | 能力 | 说明 | |------|------| | 💰 剩余额度感知 | 实时查询服务商余额(DeepSeek / OpenRouter / 自定义 API),或用本地自管账本(先设总额、逐次扣减) | | 🔢 双计量口径 | 按计费(按模型单价折算金额)+ 按次数计费(调用次数),同时统计、同时设限 | | 📋 任务预算申报制 | 任务开始前申报金额/token/次数三维度预算,超支立即硬阻断 |