Configuration Basics
This page lists the minimum settings needed for normal day-to-day AgentHub usage.
Config File
AgentHub reads configuration from ~/.agenthub/config.toml by default.
Start from a minimal single-node baseline:
safe_paths = [
"/home/you/projects",
"/home/you/sandboxes",
]
[server]
listen = "127.0.0.1:8080"
[worktree]
default_root = "/home/you/.agenthub/worktrees"
[history]
event_retention_days = 5
vacuum_on_cleanup = false
Required Fields For Daily Use
server.listen: where the UI and API are servedsafe_paths: top-level allowlist of workdir roots for agent runsworktree.default_root: default base forcreate_worktreemode
If these are missing or incorrect, users usually see login, start, or path validation errors.
Notes About safe_paths
- Keep
safe_pathsas short and explicit as possible. - Prefer repository roots over broad paths such as
/or your full home directory. - By default,
~/.agenthub/worktreesis automatically included in the effective safe-path allowlist, so the defaultcreate_worktreelayout works without extra configuration. - If you change
worktree.default_rootto another location, add that root or a containing directory tosafe_pathsas well, orcreate_worktreepath validation will fail.
Optional Remote-Node Settings
If you plan to use remote Agent Nodes, add an internal_grpc block as well:
[internal_grpc]
enabled = true
listen = "127.0.0.1:50051"
[internal_grpc.security]
mode = "tls"
cert_dir = "~/.agenthub/internal-grpc"
[internal_grpc.auth]
issuer = "agenthub"
audience = "agenthub-internal"
shared_secret = "replace-me"
This is optional for single-node deployments. It becomes required once the main control plane must register and control remote-target agents.
First Validation After Config Update
- Restart AgentHub.
- Log in through the browser.
- Create one test agent in
create_worktreemode. - Confirm the generated path is under
worktree.default_root. - Confirm a path outside
safe_pathsis rejected.