agent-limit
v0.7.2
Published
Terminal dashboard to monitor Claude Code, Codex, and other agent usage limits
Downloads
1,110
Readme
agent-limit
Terminal dashboard to monitor Claude Code and Codex usage limits.
Quickstart
npm install -g agent-limit
agent-limit usageExample
[███████░░░░|░░░░░░░░░] 30% ↓12%
^ you should be at 42%, but you're at 30% (12% under pace)↓X%(green) = under pace, you have headroom↑X%(red) = over pace, might hit limits early
Features
- Real-time usage tracking for Claude Code and Codex
- Trajectory markers showing if you're ahead or behind your usage pace
- Auto-refresh every 60 seconds
- Color-coded usage indicators
CLI Reference
| Command | Description |
|---------|-------------|
| agent-limit usage | Show usage dashboard |
| agent-limit version | Show version |
| agent-limit help | Show help message |
Dashboard Controls
| Key | Action |
|-----|--------|
| q | Quit |
| r | Refresh |
Supported Providers
| Provider | Status | Data Source |
|----------|--------|-------------|
| Claude Code | Full support | macOS Keychain + Anthropic API |
| Codex | Full support | ~/.codex/auth.json + OpenAI API |
How It Works
agent-limit reads credentials from standard locations:
- Claude Code: macOS Keychain (
Claude Code-credentials) - Codex:
~/.codex/auth.json
It then fetches usage data from each provider's API and displays it in a unified dashboard.
Installation Options
Via npm
npm install -g agent-limitStandalone Binary (no dependencies)
Download from GitHub Releases:
# Apple Silicon
curl -L https://github.com/AgentWorkforce/limit/releases/latest/download/agent-limit-darwin-arm64 -o /usr/local/bin/agent-limit
chmod +x /usr/local/bin/agent-limit
# Intel Mac
curl -L https://github.com/AgentWorkforce/limit/releases/latest/download/agent-limit-darwin-x64 -o /usr/local/bin/agent-limit
chmod +x /usr/local/bin/agent-limitRequirements
- macOS (uses Keychain for credential storage)
- Active CLI authentication for providers you want to monitor
Development
git clone https://github.com/AgentWorkforce/limit.git
cd monitor
bun installRun in development mode with hot reload:
bun run devRun directly:
bun run startNote: In dev mode, use
qto quit cleanly. If you Ctrl-C and see garbled output, runresetto restore your terminal.
Building Standalone Binaries
Build binaries that don't require Bun:
# Build for all macOS architectures
bun run build
# Build for specific architecture
bun run build:arm64 # Apple Silicon
bun run build:x64 # IntelBinaries are output to dist/.
License
MIT
