Automated setup for OpenClaw AI assistant instances on AWS EC2 (Ubuntu 24.04 LTS).
- Type:
t3.medium(4GB RAM, 2 vCPU) - OS: Ubuntu 24.04 LTS
- Storage: 30GB gp3
- Cost:
$30/mo + pay-per-use OpenRouter ($5-20/mo)
curl -sSL https://raw.githubusercontent.com/max-drucker/openclaw-setup/main/setup.sh | sudo bashOr use EC2 User Data for automatic install on launch:
#!/bin/bash
curl -sSL https://raw.githubusercontent.com/max-drucker/openclaw-setup/main/setup.sh | bashInstalls: OpenClaw, Node.js, gog, Supabase, GitHub CLI, Railway, Vercel, Claude Code, Codex, Salesforce CLI, AWS CLI, pandoc, Python, utilities.
curl -Lo configure.sh https://raw.githubusercontent.com/max-drucker/openclaw-setup/main/configure.sh && bash configure.shcurl | bash won't work.
Interactive setup that asks for:
- Person's name, email, phone, timezone, role
- Whether they're a Carpe Data employee (loads company knowledge + role-specific personality)
- OpenRouter API key
- WhatsApp linking
Creates: SOUL.md, USER.md, AGENTS.md, MEMORY.md, HEARTBEAT.md, openclaw.json, and (for Carpe employees) COMPANY.md + product/team/process knowledge files.
Open these ports:
- 22 (SSH)
- 18789 (OpenClaw Control UI)
# Set gateway token
openclaw config set gateway.auth.token 'your-secure-token'
# Enable remote access
openclaw config set gateway.bind 'lan'
openclaw config set gateway.controlUi.allowedOrigins '["*"]'
# Set default model (via OpenRouter)
openclaw config set agents.defaults.model '{"primary":"openrouter/anthropic/claude-opus-4.6"}'paste-tokenstrips OpenRouter key prefix: Thesk-or-v1-prefix gets stripped when writing toauth-profiles.json. Verify and fix manually after runningpaste-token.openclaw tuiis the interactive test command (notopenclaw chat)- Control UI is on port 18789 (not 3000)
| File | Description |
|---|---|
templates/COMPANY.md |
Carpe Data company overview |
templates/memory/carpe-products.md |
Product deep dive (Minerva + ClaimsX) |
templates/memory/carpe-team.md |
Leadership, org chart, routing |
templates/memory/carpe-processes.md |
Sales process, tools, workflows |
templates/souls/carpe-sales.md |
Sales role personality |
templates/souls/carpe-engineering.md |
Engineering role personality |
templates/souls/carpe-executive.md |
Executive role personality |
templates/souls/carpe-ops.md |
Operations role personality |
templates/AGENTS.md |
Workspace conventions |
templates/HEARTBEAT.md |
Periodic check config |
templates/MEMORY.md |
Memory starter template |
- Friends & Family Guide — End-user setup walkthrough
- DevOps Guide — Provisioning runbook for Joe