Fast, Expert Installation & Deployment

Guaranteed Results

Hi, I'm Phillip Neiman. I help individuals and businesses deploy self-hosted AI assistants on AWS quickly and reliably. I guarantee you'll have a working AI assistant you can text โ€” or you don't pay. I've navigated the gotchas to get your OpenClaw bot online. Learn more โ†’

Phillip Neiman - AI Consultant

Your AI. Your Infrastructure. Your Rules.

Stop paying $20-200/month for ChatGPT subscriptions. Deploy your own AI assistant that's smarter, private, and costs pennies per conversation. I guarantee you'll have it working.

๐Ÿ”’

Fully Private

Your data never leaves your control. No corporate servers analyzing your conversations.

๐Ÿ“ฑ

Always in Your Pocket

Access via Telegram, WhatsApp, or Discord. Your AI assistant follows you everywhere.

๐Ÿ’ฐ

Pay Only What You Use

Claude Sonnet 4.5 costs ~$0.05 per conversation. No subscriptions, no limits.

โšก

Actually Useful

Automate tasks, remember context forever, integrate with your tools. Not just a chatbot.

Create Your First AI Worker Bot in 30 Minutes

I'll show you exactly how. No DevOps experience required. Guaranteed working or your money back.

Get Started โ†’

How It Works

Your AI assistant runs on battle-tested infrastructure

๐Ÿ“ฑ

Telegram

You message @BotFather to create your bot

โ†’
โ˜๏ธ

AWS EC2

Ubuntu server running OpenClaw 24/7

โ†’
๐Ÿง 

Claude AI

Sonnet 4.5 or Opus 4.6 powers responses

โ†
๐Ÿ’ฌ

Response

Intelligent replies back to you

Technology Stack

Amazon EC2

Cloud hosting

Ubuntu 24.04 LTS

Linux OS

OpenClaw
OpenClaw Gateway

Agent framework

Telegram Bot

@BotFather

Claude
Anthropic Claude

Sonnet 4.5 / Opus 4.6

Node.js 22

Runtime

See OpenClaw in Action

This is what your AI assistant looks like once deployed

OpenClaw bot conversation example
โšก

Fast Setup

Follow step-by-step instructions written during real installations. No guesswork, just clear directions that work. Guaranteed.

๐Ÿ› ๏ธ

Real Troubleshooting

Every issue documented here was actually encountered and solved. You get solutions to problems you will actually face.

๐Ÿ’ฐ

Results-Based Service

You'll have a working bot you can text, or you don't pay. Save time and money with guidance from someone who's done this before.

Battle-Tested Troubleshooting

Real problems. Real solutions. No fluff.

โš ๏ธ Memory Crashes

The #1 issue everyone hits: JavaScript heap out of memory during onboarding. Complete fix with instance resizing or swap space.

๐Ÿ”Œ Connection Failures

SSH timeouts after resizing, host key verification failures, and permission errors on key files. All documented with fixes.

๐Ÿ”’ Security Group Confusion

Finding port settings, understanding CIDR notation, and dealing with AWS warnings. Clear explanations of what's happening.

๐Ÿค– Bot Not Responding

Gateway not started, wrong bot username, token mismatches. Every reason your bot might be silent and how to diagnose it.

๐Ÿ’ธ Cost Optimization

Free tier workarounds, Elastic IP setup, and spending alerts configuration. Keep costs under control from day one.

๐Ÿš€ Production Setup

Running as a systemd service, auto-restart configuration, and log monitoring. Make your assistant reliable for daily use.

Complete Installation Guide

A complete, battle-tested guide to deploying OpenClaw on AWS with Telegram integration. Written during real installations with every gotcha documented. Guaranteed to work or your money back.

1. Overview

OpenClaw is an open-source, self-hosted AI agent that connects to messaging platforms like Telegram, WhatsApp, Discord, Slack, and more. It acts as a gateway between you and an AI model (like Claude or GPT), letting you interact with a powerful AI assistant directly from your phone.

This guide walks you through deploying OpenClaw on an AWS EC2 instance with Telegram as your primary interface. It was written during an actual installation, so it includes real troubleshooting scenarios and gotchas you are likely to encounter.

Architecture

Telegram (your phone)
โ†“
OpenClaw Gateway (EC2 instance, always running)
โ†“
AI Model API (Anthropic Claude, OpenAI GPT, etc.)
โ†“
Response back to Telegram

2. Prerequisites

  1. An AWS account (free tier eligible works for initial setup)
  2. A Telegram account with the app installed on your phone
  3. An API key from an AI provider (Anthropic recommended โ€” see Section 12)
  4. A terminal application: Terminal on Mac/Linux, or PowerShell on Windows
  5. Basic comfort copy-pasting commands into a terminal (no coding experience required)

โฑ Time Estimate

30โ€“45 min: First-time setup (including AWS account)

15โ€“20 min: If you already have AWS + API keys ready

Get Full Access

Unlock the complete installation guide with detailed troubleshooting solutions. Guaranteed to work or your money back.

$49

One-time payment ยท Instant access ยท Expert support ยท Money-back guarantee

Purchase Guide

3. Step 1: Provision an AWS EC2 Instance

An EC2 instance is a virtual computer you rent from Amazon. It runs 24/7 so your bot is always available.

โš ๏ธ Critical: Do Not Use t3.micro A t3.micro instance has only 1GB RAM. OpenClaw WILL crash with a JavaScript heap out-of-memory error. Use t3.small (2GB RAM) minimum.
  1. Log in to AWS Console at aws.amazon.com
  2. Search for EC2 and open it
  3. Click Launch Instance
  4. Configure:
Setting Value
Name openclaw-bot
AMI Ubuntu 24.04 LTS
Instance type t3.small (2GB RAM)
Key pair Create new โ†’ download .pem file
Storage 8 GB gp3
๐Ÿ”‘ Key Pair Warning The .pem file is your ONLY way to access this server. If you lose it, you're locked out permanently. Save it somewhere safe.
  1. Click Launch Instance

4. Step 2: Configure Security Groups

Security groups control what traffic can reach your instance. You need two ports open:

Port Protocol Source Purpose
22 TCP Your IP /32 SSH access
18789 TCP Your IP /32 OpenClaw Dashboard

CIDR Notation

  1. Google "what is my IP" โ†’ get your IP (e.g., 98.45.123.67)
  2. Add /32 to the end: 98.45.123.67/32
  3. This means "only this one IP can connect"

5. Step 3: Connect via SSH

Get Your Public IP

  1. EC2 Dashboard โ†’ Instances โ†’ click your instance
  2. Copy the Public IPv4 address

Windows PowerShell:

ssh -i C:\Users\YourName\Downloads\your-key.pem ubuntu@YOUR_PUBLIC_IP

Mac/Linux:

ssh -i ~/Downloads/your-key.pem ubuntu@YOUR_PUBLIC_IP
โš ๏ธ You Must Type "yes" When prompted about the fingerprint, type yes (the full word) and press Enter. Just pressing Enter will fail.

Key Permission Error Fix:

Mac/Linux:

chmod 400 ~/Downloads/your-key.pem

Windows:

icacls "C:\Users\YourName\Downloads\your-key.pem" /inheritance:r /grant:r "%USERNAME%:R"

6. Step 4: Install Node.js and OpenClaw

Install Node.js 22

curl -fsSL https://deb.nodesource.com/setup_22.x | sudo -E bash -
sudo apt install -y nodejs

Configure npm

mkdir -p ~/.npm-global
npm config set prefix '~/.npm-global'
echo 'export PATH=~/.npm-global/bin:$PATH' >> ~/.bashrc
source ~/.bashrc

Install OpenClaw

npm install -g openclaw

7. Step 5: Create Telegram Bot

  1. Open Telegram
  2. Search for @BotFather
  3. Send: /newbot
  4. Enter a display name
  5. Enter a username (must end in "bot")
  6. Copy the token BotFather gives you
๐Ÿ”‘ Keep Token Secret This token is the password to your bot. Never share it publicly.

8. Step 6: Run Onboarding Wizard

openclaw onboard
Prompt What to Do
Bot Token Paste token from BotFather
Package manager Select npm
Skills Skip for now
API keys Enter Anthropic API key
Hatch Select "Hatch in TUI"

9. Step 7: Pair Telegram Account

  1. Open Telegram and find your bot
  2. Send any message
  3. Bot replies with a pairing code
  4. In SSH terminal:
    openclaw pairing approve telegram YOUR_CODE

10. Step 8: Run as Persistent Service

Create Service File

sudo tee /etc/systemd/system/openclaw-gateway.service << 'EOF'
[Unit]
Description=OpenClaw Gateway
After=network.target

[Service]
Type=simple
User=ubuntu
WorkingDirectory=/home/ubuntu
ExecStart=/home/ubuntu/.npm-global/bin/openclaw gateway start --foreground
Restart=always
RestartSec=10
Environment=PATH=/home/ubuntu/.npm-global/bin:/usr/local/bin:/usr/bin:/bin

[Install]
WantedBy=multi-user.target
EOF

Enable and Start

sudo systemctl daemon-reload
sudo systemctl enable openclaw-gateway
sudo systemctl start openclaw-gateway

Useful Commands

Command What It Does
sudo systemctl status openclaw-gateway Check status
sudo systemctl restart openclaw-gateway Restart
sudo journalctl -u openclaw-gateway -f View live logs

11. Troubleshooting Guide

11.1 JavaScript Heap Out of Memory

Symptom

FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory

Cause

Your instance doesn't have enough RAM. t3.micro only has 1GB.

Fix A: Resize Instance (Recommended)

  1. Stop instance
  2. Actions โ†’ Change instance type โ†’ t3.small
  3. Start instance (note: IP will change)
  4. Retry onboarding

Fix B: Add Swap (Free Tier)

sudo fallocate -l 2G /swapfile
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile
echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab

11.2 SSH Timeout After Resize

Cause

Stopping/starting changes your public IP.

Fix

  1. Get new IP from EC2 dashboard
  2. SSH with new IP
๐Ÿ’ก Prevent with Elastic IP Allocate an Elastic IP for a permanent address. Free while attached to a running instance.

11.3 Host Key Verification Failed

Cause

You pressed Enter instead of typing "yes".

Fix

Run SSH command again. Type yes (full word) when prompted.

11.4 Bot Not Responding

Causes & Fixes

  • Gateway not started: Finish onboarding wizard first
  • Crashed: Run openclaw gateway status
  • Wrong bot: Message your bot, not @BotFather
  • Token mismatch: Verify token in config

12. Cost Summary

Component Cost
AWS EC2 t3.small ~$15/month
OpenClaw Free
Telegram Free
AI API (Sonnet 4.5, casual) ~$10โ€“30/month
Total ~$25โ€“45/month

My Promise to You

You will have a functional AI assistant responding to your messages. Not a half-working tutorial. Not "almost there." A working bot you can text right now.

If you follow my guide and can't get it working, or hire me and I don't deliver โ€” you don't pay. Simple as that.