Skip to content

OpenClaw on AWS Lightsail

This guide adapts the flow of the original “Agents in Action” lab into Sioux Falls AWS User Group documentation. The goal is simple: launch OpenClaw on Amazon Lightsail, verify it works, and leave with a setup you can operate without guesswork.

You will deploy a single OpenClaw instance on Lightsail using the marketplace blueprint, connect it to Amazon Bedrock, and validate that the agent can answer prompts through the dashboard.

This is a good fit for:

  • Meetup demos and hands-on sessions
  • Members who want a low-friction private agent environment on AWS
  • Anyone comparing Lightsail with a more manual EC2 or container deployment

Have these ready before launch time:

  • An AWS account with access to Amazon Lightsail
  • Amazon Bedrock model access enabled in the region you plan to use
  • A budget in mind for a short-lived test deployment
  • Comfort with SSH and basic Linux commands

Recommended first steps in AWS:

  1. Confirm you can open the Lightsail console.
  2. Confirm Bedrock model access is enabled for the model family you want to use.
  3. Create or reuse a dedicated IAM setup for experiments instead of sharing broad production credentials.

From Lightsail, create a new instance and search the marketplace blueprints for OpenClaw.

Use a small lab-friendly name such as openclaw-lab and choose a plan sized for interactive testing. The original reference site used a meetup-friendly flow centered on the prebuilt Lightsail image; that is still the fastest path here.

Once the instance starts, open the Lightsail browser terminal or connect with SSH and note:

  • The instance public IP or DNS name
  • The dashboard URL provided by the image
  • Any initial token or bootstrap details shown in the message of the day

Treat those bootstrap credentials like secrets. Do not paste them into public notes or shared chat.

Open the dashboard URL and send a simple prompt in chat. If you get a normal response back, the instance, model routing, and basic gateway path are working.

Good first prompts:

  • Summarize what tools are available in this environment.
  • What model are you currently using?
  • Explain what this instance is intended for in one sentence.

OpenClaw reads SOUL.md as persistent guidance. Keep it short and operational so you do not waste tokens on verbose system context.

A practical starter shape:

SOUL.md
You are the Sioux Falls AWS User Group lab assistant.
Priorities:
- Explain AWS steps clearly.
- Default to low-cost options unless asked otherwise.
- Call out security risks before suggesting internet exposure.
- Keep answers short and practical.

Use this file to anchor event-specific behavior during demos instead of retyping the same guidance into each chat session.

This is the part most people underweight. Do not leave a casually configured agent reachable from the public internet.

  • Rotate any initial access token after first login.
  • Restrict inbound access to known IPs whenever possible.
  • Do not store production credentials on a demo instance.
  • Shut the instance down or delete it when the event is over.
  • Treat browser automation and external tool access as a deliberate security tradeoff, not a default.

If you expose the service publicly, document who owns it, who can reach it, and how you will rotate secrets after the session.

The reference lab positioned this as a lightweight, low-friction deployment. That remains true, but your real cost depends on two separate levers:

  • Lightsail instance size and runtime
  • Bedrock model usage and prompt volume

For a meetup or personal evaluation, keep the instance lifetime short and choose a cheaper model tier for repeated tests. The infrastructure cost is usually predictable; model usage is where surprises show up.

The dashboard loads but chat does not answer

Section titled “The dashboard loads but chat does not answer”

Check the instance logs, verify Bedrock access in the selected region, and confirm the model configured by OpenClaw is actually enabled for your AWS account.

The instance is running but you cannot connect

Section titled “The instance is running but you cannot connect”

Review Lightsail networking, public access settings, and whether the service is listening on the expected port. If you changed firewall rules during testing, assume drift until proven otherwise.

The hosted image reduces setup time, but any added binaries, browser tooling, or external integrations can still drift from the default environment. Add one integration at a time and re-test after each change.

Service control and inspection vary by image version, but these are the first commands worth trying:

Terminal window
sudo systemctl status openclaw-gateway
sudo systemctl restart openclaw-gateway
openclaw logs
openclaw models list
openclaw channels list
openclaw cron list

If a command is unavailable, inspect the image documentation and installed binaries before assuming the guide is wrong. Marketplace images change over time.

If you want to turn this into a Sioux Falls AWS User Group session, this structure is repeatable:

  1. Spend 10 minutes on what OpenClaw is and why Lightsail is the fastest way to try it.
  2. Spend 20 minutes launching and validating the image.
  3. Spend 10 minutes editing SOUL.md for event-specific behavior.
  4. Spend 10 minutes on security review and cost cleanup.
  5. End with teardown steps so nobody leaves billable resources behind.

When you are done:

  1. Export any notes you want to keep.
  2. Remove or rotate tokens and API secrets.
  3. Stop the instance if you plan to resume soon.
  4. Delete the instance if the lab is complete.

Stopping preserves the disk and usually some cost. Deleting is the cleanest way to prevent lingering exposure and spend.