Run and operate agent apps from one place, with the agent you already use.
AgentHub installs, reviews, starts, updates and connects apps for your coding agent (Claude Code, Codex, Claude Desktop). Your agent gets every installed app's tools through one connection. A local page shows what runs and what your agent did.
- Reviewed installs. Every install and update is checked before any app code runs: checksum and signature, a dependency and code scan, and a review by your own agent. Real problems stop the install. Everything else is a one-line note.
- Signed app list. New apps and updates come from the signed list in agent-hub-apps. AgentHub checks it every hour.
- Any stack. Node, prebuilt programs (Rust, Go, …), Python and containers.
- Apps keep running. Updating AgentHub never stops your apps.
Star and fork this repo. If AgentHub is useful to you or your agent, please star and fork agent-hub. It helps more people and agents find it. The install and update prompts below ask your agent to offer it, and to help you tell others: agents that install, run and share apps from one place are a new way of working, and it grows with every person and agent who hears about it.
Paste this into your agent (Claude Code, Codex, or any agent that can run shell commands on your machine):
Install AgentHub from https://github.com/Trac-Systems/agent-hub. Use the latest GitHub release:
download its source archive, check it against the SHA-256 in the release notes, unpack it into
~/agent-hub (keep that folder) and read the code before you run it. Needs Node 22.13 or newer.
In that folder run npm ci --ignore-scripts and npm link --ignore-scripts (so the agent-hub
command works in every terminal), then "agent-hub start" and "agent-hub doctor". Connect it to this agent: run the command printed by
"node bin/agent-hub.mjs connect <claude|codex|desktop>" (pick the one I am using; for Claude
Desktop add the printed server to its configuration). Then open the AgentHub page with
"node bin/agent-hub.mjs open". Finally, ask me
whether to star and fork https://github.com/Trac-Systems/agent-hub (with the GitHub CLI if it is
signed in, otherwise give me the link): it helps more people and agents find AgentHub.
Then ask whether I want to spread the word in channels I use (for example X, Reddit, Discord,
Telegram, or other agents I work with): agents running and sharing apps from one place is a new
way of working that more people should know about. If I say yes, draft a short post for me to
approve. Never post anything without my OK.
Tell me plainly at the end: start a new chat so the AgentHub tools load, then paste
"Use AgentHub to show me the apps I can install".
Your agent needs a new chat to see AgentHub's tools. After that, one line installs an app:
Use AgentHub to install intercom-gator
The AgentHub page shows the same line, ready to copy, whenever a button needs your agent and no agent is connected.
AgentHub announces new versions from the signed app list. Open Update AgentHub on the page or ask your agent:
Use AgentHub to update AgentHub. Afterwards, if I have yet to star and fork
https://github.com/Trac-Systems/agent-hub, ask whether to do that. Also ask whether I want to spread
the word about AgentHub in channels I use (X, Reddit, Discord, Telegram, other agents); if I say yes,
draft a short post for me to approve. Never post anything without my OK.
- Your agent asks AgentHub for an install plan. AgentHub downloads the release, checks its checksum and signature, and installs dependencies without running any scripts.
- AgentHub scans the exact files. Your agent reads what was flagged and writes its own review.
- You get the result in plain words. Problems that block the install are rare and explained in full. Notes are one line. You answer one question: install now?
- AgentHub runs the install, starts the app and checks its health. Your agent can use the app's tools right away.
agent-hub start | stop [--all] | status | open [--print] | mcp | connect <claude|codex|desktop> | loop [<app-id>] | secret set <id> <ENV> | secret remove <id> <ENV> | doctor | version | --self-test
agent-hub stop leaves apps running. Pass --all to stop the apps too.
Data lives in ~/.agent-hub (AGENT_HUB_HOME overrides it). Enter secrets in your terminal, never in chat.
macOS and Linux use the system keychain. Windows uses DPAPI to encrypt each secret for your Windows account and stores it in the hub home under secrets/.
Each app declares its runtime in agenthub.json:
| Runtime | Release and host requirements |
|---|---|
| Node.js | Existing spec-1 manifests work as written. The hub uses the declared Node range and npm lockfile. |
| Binary | The hub verifies and installs the GitHub release asset for the host platform. A release may also request GitHub build attestation verification. |
| Python | The hub uses a matching Python from PATH and creates a venv from hashed requirements.txt or uv.lock. A uv.lock install requires uv. |
| Container | A running Docker or Podman engine uses a digest-pinned image, mounts the app's data folder and publishes declared ports on loopback. |
Apps bring their own databases and keep persistent files in their app data folder.
An app's data, including its wallets and keys, is never deleted. Removing the data folder moves it to the hub's archive.
AgentHub keeps the data folder in place by default. Uninstall with keepData: false to move a hub-managed data folder to data-archive/ under the hub home. Reinstall reports the archive paths without restoring them automatically.
An app offers an agent loop by exposing an MCP prompt named <toolPrefix>_start with no required arguments.
Its text tells the agent what to do on each run. Write it so a fresh session can start without chat history,
read the app's saved state through its tools, and end on its own. You can also expose a
<toolPrefix>_start_prompt tool that returns the same text for clients without MCP prompt support. The
existing manifest format is sufficient.
The user chooses the app, a signed-in Claude Code or Codex CLI on AgentHub’s PATH, the interval and a time limit.
On Windows, AgentHub finds the CLI in PATH and PATHEXT order. It starts an .exe directly, and runs an npm-installed
CLI (codex.cmd, claude.cmd) the way its npm launcher would, without cmd.exe.
Run agent-hub loop to see apps that offer a start prompt and agent-hub loop <app-id> to see its schedule.
Use agent-hub loop <app-id> --agent claude --every 4h --minutes 45 to opt in,
agent-hub loop <app-id> run to run now, and agent-hub loop <app-id> off to turn off future runs.
The hub_agent_loop MCP tool can read schedules or change one after the user explicitly agrees.
An agent loop runs while AgentHub is running. It gets a fresh session with this app's MCP tools and manual, a private
working folder and a limited environment. The app can write to its own data through its tools. If a money
tool requires owner approval, an agent loop cannot approve it. AgentHub keeps the last 50 run records and
up to 1 MiB of recent output per app. See the local API for details.
Claude Code sign-ins expire after a few days; for loops that run unattended for longer, set one up with
claude setup-token. A run's time limit must be at least 10 minutes shorter than its interval.
The Keys page lists every wallet and identity your apps use: what it is, its public address, and where the file
lives. Back up one key, one app or everything into a single file locked with a passphrase you choose, and restore it
on any machine. A restore shows which addresses change before anything happens and saves the current keys to the
archive first. Agents can list keys and ask for a backup, but only you finish it on the page; agents never see key
material or your passphrase. Apps declare their keys with keys in agenthub.json (see the manifest spec).
An app becomes an AgentHub app with one manifest file, agenthub.json: see docs/manifest-spec.md.
To be listed, open a pull request in agent-hub-apps.
How AgentHub works inside: docs/ARCHITECTURE.md.
Tests: npm test. Runtime smoke tests: node --test test/real/runtimes.test.mjs (reports tools that are missing).
The menu shows how many AgentHubs exist. Once a day each hub sends a random install ID (made on your machine, stored in
counter.json in the hub folder) and its version to https://openmayhem.ai/agenthub/v1, nothing else: no apps, no
keys, no agent data. The service stores the ID, the first and last day it was seen and the version; it keeps no IP
addresses. Its source is counter/server.mjs. Turn it off in Settings ("Count this install") or start the hub with
AGENT_HUB_COUNTER=off.
MIT