quotahop
Health Warn
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Low visibility — Only 6 GitHub stars
Code Pass
- Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
- Permissions — No dangerous permissions requested
No AI report is available for this listing yet.
Cut Claude Code baseline tokens ~80% (~49k→10k) & auto-switch to Codex/Antigravity on 5-hour quota limits. Local-first web UI for agent CLIs.
QuotaHop
English | Tiếng Việt · Website
Cut Claude Code baseline tokens by ~80% (~49k → ~10k) and auto-switch engines on 5-hour quota limits — 100% local on Windows, macOS, and Linux.

QuotaHop is a self-hosted local web UI for the agent CLIs you already pay for (Claude Code, Codex, Antigravity, or any custom command). It stops your agents from burning through subscriptions on bloated context and keeps work moving when a 5-hour quota runs out:
- ~80% less Claude Code baseline overhead (Lean Mode): Headless
claude -ploads user plugins, hooks, skills, and every MCP (~49k tokens per call). Lean Mode passes--strict-mcp-config,--setting-sources project,local, and core tools only (~10k tokens), with per-agent MCP selection for both Claude Code and Codex. - Auto-failover on 5-hour quota limits: Reads each CLI's usage limits. When Claude, Codex, or Antigravity hits your threshold, QuotaHop writes a handoff note and switches the agent to your fallback engine—keeping the task's git worktree intact—or holds work until reset.
- Cache-aware session rotation: Before context bloats or the 60-minute prompt cache expires, the agent writes a concise handoff note and starts the next session clean.
- Multi-agent team in isolated git worktrees: Brief a Lead Agent, let it delegate tasks across agents via JSON outboxes (plain replies only go to you, never infinite loops), and review diffs before merging.
Data stays in a local SQLite file, the server listens on 127.0.0.1 only, and the hub never reads your CLI sign-ins. For Claude, selected MCP configs are copied to a temporary file for that turn only and deleted immediately after. If you configure an OpenRouter agent, its prompts are sent to the OpenRouter API.
Quick start
Requires Node.js 24+ and at least one agent CLI installed and signed in:
Claude Code, Codex or
Antigravity. An OpenRouter API key also works, for text-only agents.
npx quotahop
The hub checks npm for newer versions in the background and shows an update command when one is available.
Open http://127.0.0.1:4310. Create a workspace (name, repo path, optional worktree folder), then create the lead
agent when prompted. Click Test run on an agent to check that it answers in the Inbox.
Data is stored in ./data under the folder you run the command from. To always use the same place:
npx quotahop --data "$HOME/.quotahop"
Features
Engines and sessions:
- Adapters for Claude Code, Codex and Antigravity (new turn, resume, per-turn token usage), OpenRouter over its API,
and a custom command that reads the prompt on stdin. - Quota-aware queue: the hub reads each CLI's usage limits, holds work when an engine is out of quota, and can switch
an agent to a fallback engine until the reset. - Before a session gets too long or its cache expires, the agent writes a handoff note and the next session starts
from that note instead of the full history. - Lean mode for Claude agents cuts the per-call baseline from about 49k tokens to about 10k.
- MCP servers are picked per agent for Claude and Codex; add a server from the hub, which passes its values to the
CLI'smcp addcommand.
Coordination:
- Each agent works in its own git worktree (default), the shared repo, or a custom folder. With worktrees, a task's code
moves with it from step to step, and you review the diff before merging it yourself. - Star routing sends everything through the lead agent; mesh lets chosen pairs talk directly.
- The loop guard stops a chain of agent-to-agent messages after
maxHopswith no human in between. - Queue limits on concurrent agents and turns per hour, and a per-turn timeout that kills the whole process tree.
In the UI:
- Task board and list (TODO / DOING / REVIEW / BLOCKED / DONE) with review, return and reply actions.
- Workflows with steps for agents or people, review steps, "return to step" on rejection, manual or cron runs.
- A Slack-style inbox with a "Needs you" queue, a home view of the agents at their desks, a map of who talks to whom,
and run history with tokens and cost. - In-app guides: coachmarks, a getting-started list, and setup tips for each agent.
- System notifications for important changes while the hub tab is out of view.
- An update notice when a newer version is available on npm.
- English and Vietnamese, light and dark themes.
Configuration
| Option | Default | Purpose |
|---|---|---|
--data <dir> or HUB_DATA |
./data |
Data folder (SQLite DB, agent outboxes) |
HUB_PORT |
4310 |
HTTP port |
AGENT_HUB_NO_UPDATE_CHECK=1 |
unset | Disable the automatic npm version check. The hub checks in the background; configured OpenRouter agents also call the OpenRouter API. |
OPENROUTER_API_KEY |
none | Needed only for OpenRouter agents. Never stored in the DB or passed to CLI processes |
<data>/models.json |
built-in list | Replaces an engine's model list in the picker, e.g. {"claude":[{"id":"claude-opus-5-5","label":"Opus 5.5"}]} |
Safety
The hub runs commands on your machine, so:
- The server listens on
127.0.0.1only, rejects cross-origin writes and blocks DNS rebinding. - Claude agents run with
--permission-mode acceptEdits(commands such asnpm testrun only if
listed in the agent's Allowed commands, empty by default).git push/merge/rebaseis blocked unless that exact
command is listed in Allowed commands. - Codex agents run with
sandbox_mode="workspace-write"(pluswindows.sandbox="unelevated"on Windows). Flags are
passed per turn;~/.codex/config.tomlis never modified. - Antigravity agents run with
--mode accept-edits.
The automatic external connection is the background npm version check, disabled with AGENT_HUB_NO_UPDATE_CHECK=1.
OpenRouter agents make API requests when configured.
Known gap: Claude's --disallowedTools block matches command prefixes, so a form like git -C dir push is not caught.
Platform support
Tested on Windows 11. macOS and Linux should work but are not tested yet; reports are welcome. The folder picker on
Linux needs zenity or kdialog.
Documentation
- User guide: workspaces, agents, inbox, tasks, workflows, troubleshooting
- Architecture: message lifecycle, outbox protocol, loop guard, handoff notes, data
- REST and SSE API
- Engines: adapters, fallback engine, how to add a new one
The docs are in Vietnamese for now.
Roadmap
- Work hours: when agents start, stop and stop taking new work
- Notifications: browser system notifications are available; Slack and Telegram integrations remain planned.
- Config export / import
- Usage percentage for Antigravity (its CLI only reports when the quota is already used up)
Contributing
See CONTRIBUTING.md. Changes are listed in CHANGELOG.md.
License
MIT. Avatars use DiceBear Micah (CC BY 4.0).
Reviews (0)
Sign in to leave a review.
Leave a reviewNo results found