Fast Bun-based OpenTUI dashboard for AI account/usage status.
Current providers:
- Codex/OpenAI via
~/.codex/auth.json(fallback~/.local/share/opencode/auth.json) - GitHub Copilot via
.copilot/config.json(fallback to other known auth files) - Gemini via
~/.gemini/*(+ optionalGEMINI_PROJECT_ID) - Amp via local
amp usageCLI command - Droid (Factory) via env/auth token
- Kimi via env/auth token
- z.ai via env/auth token
- Antigravity via local language server process probe
- OpenTUI React interface with minimal split layout
- Queries all configured providers in parallel
- Keyboard controls:
rrefresh,qquit,left/rightprovider navigation,up/down/pageup/pagedowndetail scroll - Auto-refresh every 60s (override with
AGENT_STATUS_REFRESH_MS) --oncemode for scripts/cron
bun run src/index.tsOr:
bun run devbun run src/index.ts --oncebun link
agent-statusLinux/macOS (sh):
sh ./scripts/install.shLinux/macOS clone + install:
sh ./scripts/install.sh https://github.com/SpreadSheets600/Agent-Quota.git agent-statusWindows (cmd):
scripts\\install.cmdWindows clone + install:
scripts\\install.cmd https://github.com/SpreadSheets600/Agent-Quota.git agent-statusYou can also run via package scripts:
bun run install:shbun run install:cmdbun run build
./dist/agent-status- CI runs on every pull request and push to
mainusing.github/workflows/ci.yml. - npm publishing runs from
.github/workflows/publish.ymlwhen:- you push a tag like
v0.1.0, or - you trigger it manually via GitHub Actions (
workflow_dispatch).
- you push a tag like
Required repository secret:
NPM_TOKEN: npm automation token with publish access.
Release flow:
# 1) bump version in package.json
# 2) commit changes
git tag v0.1.0
git push origin main --tagsCodex:
- Primary auth source:
~/.codex/auth.json - Fallback auth source:
~/.local/share/opencode/auth.json(openai) - Optional env override:
OPENAI_ACCESS_TOKENOPENAI_ACCOUNT_ID
Copilot:
- Primary OAuth source:
~/.copilot/config.json(copilot_tokens)
- Fallback OAuth discovery:
~/.local/share/opencode/auth.json(github-copilot)~/.config/opencode/auth.json~/.opencode/auth.json
- Optional env override:
COPILOT_OAUTH_TOKEN
- Optional billing API config:
~/.config/opencode/copilot-quota-token.json
Gemini:
- Reads local Gemini files from
~/.gemini - Optional project env:
GEMINI_PROJECT_IDGOOGLE_CLOUD_PROJECTGCLOUD_PROJECT
Amp:
- Requires
ampCLI available inPATH - Auth via
amp login
Droid (Factory):
DROID_AUTH_TOKENorDROID_API_TOKENorFACTORY_AUTH_TOKEN- Fallback auth entry lookup from opencode auth keys:
droid,factory,factory-ai
Kimi:
KIMI_AUTH_TOKENorKIMI_API_TOKENorMOONSHOT_API_TOKEN- Fallback auth entry lookup from opencode auth keys:
kimi,moonshot,moonshotai
z.ai:
ZAI_API_TOKENorZAI_AUTH_TOKENorZHIPU_API_TOKEN- Fallback auth entry lookup from opencode auth keys:
zai,z-ai,zhipu,glm
Antigravity:
- Requires local Antigravity language server running
- Uses local process/port detection and local API probe
Refresh interval:
AGENT_STATUS_REFRESH_MS(minimum 5000)
