Problem
Setting up a new server with the full agent stack requires manually:
- Cloning each repo (agent-event-bus, agent-session-analytics, agent-memory-store)
- Running
make install-server in each
- Configuring tailscale serve paths
- Verifying LaunchAgents
This is error-prone and undocumented.
Proposal
Add scripts/setup-server.sh (or extend bootstrap.sh) that:
# Detect if this is the gateway host (mac-mini) vs client
# If server:
# 1. Clone agent-event-bus if not present
# 2. Clone agent-session-analytics if not present
# 3. Clone agent-memory-store if not present
# 4. Run make install-server in each
# 5. Configure tailscale serve paths
# 6. Verify all LaunchAgents running
./scripts/setup-server.sh
# or
./bootstrap.sh --server
Considerations
- Should be idempotent (safe to re-run)
- Should detect existing installations
- May need to handle Tailscale not being logged in yet
- Could prompt for confirmation before installing services
- Detection heuristic: check if OpenClaw gateway config exists locally
Related
Problem
Setting up a new server with the full agent stack requires manually:
make install-serverin eachThis is error-prone and undocumented.
Proposal
Add
scripts/setup-server.sh(or extendbootstrap.sh) that:Considerations
Related