📋 AWS Guide
☁️ AWS Deployment Options
| Option | Cost/Month | Complexity | Best For |
|---|---|---|---|
| EC2 t3.micro | ~$7 | Easy | Personal use |
| EC2 t3.small | ~$15 | Easy | Multiple users |
| ECS Fargate | ~$20 | Medium | Scalable apps |
| Lambda (serverless) | ~$5 | Hard | Low traffic |
🖥️ EC2 Deployment (Recommended)
Step 1: Launch EC2 Instance
- Go to AWS Console → EC2
- Click "Launch Instance"
- Choose Ubuntu 22.04 LTS
- Select t3.micro (free tier eligible)
- Configure security group (allow SSH port 22)
- Create/select key pair
- Launch instance
Step 2: Connect to Instance
# SSH into instance
ssh -i your-key.pem ubuntu@your-instance-ip
Step 3: Install ClawdBot
# Update system
sudo apt update && sudo apt upgrade -y
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt-get install -y nodejs
# Install ClawdBot
npm install -g clawdbot@latest
# Configure
clawdbot onboard
Step 4: Setup as Service
# Install as systemd service
clawdbot service install
# Start service
sudo systemctl start clawdbot
sudo systemctl enable clawdbot
# Check status
sudo systemctl status clawdbot
🐳 ECS Deployment with Docker
Create Task Definition
{
"family": "clawdbot",
"containerDefinitions": [
{
"name": "clawdbot",
"image": "clawdbot/clawdbot:latest",
"memory": 512,
"cpu": 256,
"essential": true,
"environment": [
{
"name": "ANTHROPIC_API_KEY",
"value": "your-key"
}
],
"portMappings": [
{
"containerPort": 3000,
"protocol": "tcp"
}
]
}
]
}
Deploy with Fargate
# Using AWS CLI
aws ecs create-service \
--cluster clawdbot-cluster \
--service-name clawdbot \
--task-definition clawdbot:1 \
--desired-count 1 \
--launch-type FARGATE
💰 Cost Optimization
Use Spot Instances
Save up to 90% with EC2 Spot Instances:
# Request spot instance
aws ec2 request-spot-instances \
--spot-price "0.01" \
--instance-count 1 \
--type "one-time" \
--launch-specification file://spec.json
Auto-Scaling
# Scale down during off-hours
# Use AWS Auto Scaling or Lambda to stop/start instances
Monthly Cost Estimate
- EC2 t3.micro: $7/month
- Storage (20GB): $2/month
- Data transfer: $1-5/month
- Total: ~$10-15/month
❓ AWS FAQ
Is AWS free tier enough for ClawdBot?
Yes! t3.micro with 750 hours/month is sufficient for personal use during the
first year.
Should I use EC2 or ECS?
EC2 is simpler and cheaper for single-instance deployments. Use ECS for
scalability.