Installation and Startup
Prerequisites
- Rust
1.95.0(stable toolchain baseline) - Node.js 20+
- Git
Install Web Dependencies
npm --prefix web ci
Create A Minimal Config
AgentHub reads configuration from ~/.agenthub/config.toml by default.
Start with a minimal single-node config:
safe_paths = [
"/home/you/projects",
"/home/you/sandboxes",
]
[server]
listen = "127.0.0.1:8080"
[worktree]
default_root = "/home/you/.agenthub/worktrees"
safe_paths should list the repository roots that users are allowed to use as
agent workdirs.
Start AgentHub
For the standard local workflow:
make run
make run builds the web UI as part of the normal startup path, so you do not
need a separate npm --prefix web run build step for the default local setup.
If you want to point at an explicit config file:
cargo run -- -c /path/to/config.toml
By default, AgentHub serves the UI at http://localhost:8080.
ACP Provider Baseline
The default ACP adapter binary is agenthub-codex-acp.
- Current repository baseline: official Codex
0.121.x - If you override
codex_acp.binary, keep the replacement ACP binary protocol- compatible with the same Codex generation
Optional App Install
On supported browsers, AgentHub can be installed as a standalone web app.
- The frontend registers its service worker automatically.
- The same service worker is used for push notifications and installability.
- AgentHub is not offline-first: a normal refresh still fetches the latest app shell and hashed assets from the server.
For non-localhost deployments, use HTTPS if you want installability and browser push to work reliably.
Runtime Data Location
AgentHub stores runtime data under ~/.agenthub/ by default, including:
- SQLite database
- runtime session state
- logs and operational files
For Codex-backed ACP sessions, AgentHub also materializes its managed Team and
runtime skills under ~/.agents/skills/agenthub-runtime/....
- No manual
~/.codex/config.tomlskill configuration is required. - Global managed skills should be referenced through an absolute path or
~/...; do not treat them as current-workdir-relative.agents/...paths. - Repo-local
.agents/skillscontinue to work independently alongside the managed AgentHub skill set.
Smoke Check
After startup:
- Open
http://localhost:8080 - Confirm the login page loads
- Create one test agent
- Start it and send one simple instruction
- Confirm output appears in
Conversation