wangyuyan-agent

Aitop — AI skill for Claude Code

AI community

AI 额度监控 TUI — openrouter / gemini / codex / claude / copilot / kiro-cli.

How to install Aitop

This entry records only its repository, not the path inside it, so there is no exact command to give. Open wangyuyan-agent/aitop and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Aitop does

AI 额度监控 TUI — openrouter / gemini / codex / claude / copilot / kiro-cli.

Alternatives in AI

  • Zen MCP Server — The power of Claude Code + Gemini / OpenAI / Grok / OpenRouter / Ollama / Custom Model working as one 11.3k ★
  • CLI Continues — resume any AI coding session in another tool — Claude Code, Copilot, Gemini, Codex, Cursor 1.5k ★
  • Agmsg — Cross-vendor messaging for CLI AI coding agents — let Claude Code, Codex, Gemini & Copilot talk to each other 1.5k ★

README

aitop 📊

A unified AI-quota dashboard — OpenRouter · Gemini · Codex · Claude · Copilot · Kiro, all in one TUI.

**Languages:** **English** · [简体中文](README.zh-CN.md) · [繁體中文](README.zh-TW.md)


Status

  • ✅ Provider abstraction (Usage / Window / Credits / ResetCredits / SubQuota / CostMetric)
  • ✅ Local-availability detection — only show providers whose credentials exist on this machine
  • oneshot (plain text) and json output for scripting
  • OpenRouter — API key via /api/v1/auth/key
  • Gemini — OAuth creds + auto-refresh + retrieveUserQuota (ported from the Python tool)
  • Kiro — shells out to kiro-cli chat --no-interactive /usage, regex-extracts
  • Copilot — GitHub token (env / gh auth token) → /copilot_internal/user; handles paid (quota_snapshots, incl. overage reporting) and free-limited (monthly_quotas) tiers
  • Claude — official OAuth usage API (same source as Claude Code's /usage panel: session / weekly / per-model buckets); falls back to tallying ~/.claude/projects/*.jsonl when the endpoint is rate-limited
  • Codex~/.codex/auth.json OAuth for identity and limit-reset credit inventory (available count + expirations) + official rate_limits snapshots from local rollout logs (weekly/session gauges, credits, plan) + local 7/30-day token and cost estimates
  • Kiro pool — if a kiro-pool binary (multi-account rotation pool, usage --json) is on PATH, every profile's credits show up as sub-quotas alongside the current account
  • TUI (ratatui) — card layout, concurrent fetch, auto-refresh, risk sorting, scrolling, reset countdowns, pace hints
  • Status checksaitop status queries OpenAI / Anthropic / GitHub status pages
  • Config file~/.config/aitop/config.toml (override with AITOP_CONFIG)
  • i18n — English / 简体中文 / 繁體中文, data-driven via rust-i18n + locales/app.yml

Install

cargo install --path .
# or directly from GitHub
cargo inst