← Back

Deploy on AWS

Launch your personal AI assistant on AWS EC2 with CloudFormation in minutes.

Launch Stack

Deploys in your selected AWS region

⟩ What You Get

Free tier eligible: t3.micro, t3.small, c7i-flex.large, m7i-flex.large instances

Automatic installation: OpenClaw installer runs on first boot

Amazon Linux 2023: Latest kernel-6.12 with automatic AMI selection

Multi-region: Deploy in any AWS region

• New VPC with public subnet and internet gateway

• Security group allowing outbound internet access

• IAM role for AWS Systems Manager Session Manager access (no SSH keys required)

• IAM role with AWS Bedrock access (InvokeModel, ListFoundationModels)

• Optional SSH access if you provide a key pair

⟩ Parameters

ParameterDescriptionDefault
InstanceTypeEC2 instance size (t3.micro, t3.small, c7i-flex.large, m7i-flex.large are free tier eligible)t3.small
KeyNameEC2 Key Pair for SSH access (leave empty to use SSM only)-
AllowedCidrIpCIDR IP range for SSH and Gateway access (⚠️ 0.0.0.0/0 allows access from anywhere)0.0.0.0/0
EnableGatewayListenerEnable Gateway WebSocket listener for remote access (port 18789)false
VolumeSizeEBS root volume size in GB20
AmiIdCustom AMI ID (uses SSM parameter for latest Amazon Linux 2023)/aws/service/ami-amazon-linux-latest/...

⟩ After Deployment

1. Connect to Your Instance

Use AWS Systems Manager Session Manager (no SSH key required):

aws ssm start-session --target <instance-id>

Switch to ec2-user:

sudo su - ec2-user

2. Run OpenClaw Onboarding

Start the interactive onboarding wizard:

openclaw onboard

The wizard will guide you through configuring your AI assistant, connecting chat apps, and setting up your preferences.