QuotaHop Features FAQ Docs GitHub
Open source · Local-first · Windows / macOS / Linux

Cut Claude Code baseline tokens ~80% & auto-switch on 5-hour quota

QuotaHop is a local web UI for Claude Code, Codex, and Antigravity. Lean Mode cuts Claude Code per-call overhead from ~49k to ~10k tokens, per-agent MCP filtering trims unused tools, and when a 5-hour quota runs out, your agent writes a handoff note and switches seamlessly to a fallback engine.

~49k → ~10k tokens Claude Code Lean Mode drops unused user plugins, hooks, and MCP schemas.
Auto 5-hour failover Switch Claude ↔ Codex ↔ Antigravity mid-task with automatic handoff notes.
100% local, zero keys Reuses your signed-in CLIs on 127.0.0.1 + SQLite, with git worktree isolation.
npx quotahop

Needs Node.js 24+ and Claude Code, Codex, or Antigravity already signed in.

The QuotaHop home screen: each agent at a desk in a top-down office, with a task board in the meeting room The QuotaHop home screen: each agent at a desk in a top-down office, with a task board in the meeting room

Up and running in a few minutes

The hub reuses the sign-in your CLIs already have, so there are no API keys to paste.

  1. Start the hub

    Run the npx command and open http://127.0.0.1:4310. Data stays in a SQLite file on your disk.

  2. Point it at a repo

    Create a workspace for a project, then the Lead Agent. Add more agents with a role and an engine each.

  3. Brief the Lead Agent

    It splits the goal into tasks and hands them out. Results that need a decision wait in "Needs you".

Save tokens, survive quota limits, ship faster

Each message runs the CLI for one headless turn and resumes its session. Agents talk via JSON files in their outbox, so plain replies never bounce endlessly between agents.

Claude Code Lean Mode (~80% less overhead)

Cuts per-call baseline tokens from ~49k to ~10k by dropping user-level plugins, hooks, and unused MCP tools via --strict-mcp-config.

Auto-switch on 5-hour quota

Reads each CLI's usage limits. When Claude, Codex, or Antigravity runs out of quota, work automatically moves to your fallback engine or waits for the reset.

Handoff notes & cache-aware rotation

Before a session bloats or its 60-minute prompt cache expires, the agent writes a concise handoff note. The next session—or fallback engine—starts fresh from that note.

MCP per agent (Claude & Codex)

Pick only the MCP servers each Claude or Codex agent needs—unused servers are disabled per turn without editing your global CLI config.

A git worktree per agent

By default each agent works on its own copy of the repo, so two agents never edit the same file at once. Task code follows the task across steps and engines.

Loop guard

After a set number of agent-to-agent messages with no human in between, the chain stops and waits for you to retry.

Tasks and workflows

A board from TODO to DONE, and workflows with review steps, "send back" to an earlier step, and cron schedules.

Notifications

Get system notifications about important work while the hub tab is out of view.

Multi-engine & custom CLIs

Built-in adapters for Claude Code, Codex, Antigravity, OpenRouter API, or any custom command reading stdin.

See who is doing what

English and Vietnamese UI, light and dark themes.

Built to run on your own machine

The hub starts commands on your computer, so the defaults are strict.

  • Listens on 127.0.0.1 only, rejects cross-origin writes and DNS rebinding.
  • Never reads your CLI sign-in. A selected Claude MCP config is copied to a temporary file for that turn; Add MCP server passes your values to the CLI's mcp add command and the hub keeps no copy.
  • Claude agents cannot run git push, merge or rebase unless that exact command is in the agent's Allowed commands.
  • Codex runs in its workspace-write sandbox, with flags passed per turn.
  • The only automatic external check is the npm version lookup; disable it with AGENT_HUB_NO_UPDATE_CHECK=1. Configured OpenRouter agents also call the OpenRouter API.

Frequently asked questions

How token savings, 5-hour quota failover, and local execution actually work.

How does QuotaHop cut Claude Code baseline tokens by ~80%?

By default, headless Claude Code loads user-level plugins, skills, hooks, and every MCP server (~49k baseline tokens per call in a typical multi-MCP setup). Lean Mode passes --strict-mcp-config, --setting-sources project,local, and core tools only, cutting baseline overhead to ~10k tokens while letting you enable specific MCP servers per agent.

What happens when Claude Code or Codex hits its 5-hour quota limit?

QuotaHop reads each CLI's usage limits. When an engine reaches your configured quota threshold or returns a rate-limit error, the hub writes a handoff note and switches the agent to your chosen fallback engine (Claude, Codex, or Antigravity) while keeping the task's git worktree intact. If both engines are out of quota, messages wait in held status and resume automatically after reset.

Does QuotaHop work on Windows, macOS, and Linux?

QuotaHop requires Node.js 24+ and is tested daily on Windows 11 (including an automatic per-turn workaround for Codex elevated sandbox hangs on Windows). macOS and Linux are supported as well, with native folder pickers via osascript, zenity, or kdialog.

Does QuotaHop store my CLI credentials or send code to external servers?

No. The server listens on 127.0.0.1 only, stores data in a local SQLite database, and reuses the sign-in your CLIs already have. Selected Claude MCP configs are written to a temporary file for the duration of a single turn and deleted immediately after.

Try it on your next task

npx quotahop

MIT licensed. Tested on Windows 11; macOS and Linux reports are welcome.