OpenClaw Setup Guide: How to Build Your First AI Agent Automation Stack
A beginner-friendly, step-by-step OpenClaw tutorial covering installation, onboarding, gateway setup, dashboard access, and the first automations you should enable.
OpenClaw Setup Guide: How to Build Your First AI Agent Automation Stack
If you want to move beyond one-off chatbot prompts and start building a real AI agent automation system, OpenClaw is worth paying attention to. It is designed for people who want a persistent, configurable AI assistant that can run through a gateway, connect to channels, manage sessions, use tools, and support ongoing automation instead of isolated chats.
This guide walks through a practical OpenClaw setup for beginners, with enough detail to get you from zero to a working AI agent environment without drowning you in theory.
Why OpenClaw is interesting for AI agents and automation
Most AI tools are still built around a simple loop: open app, type prompt, get answer, repeat. That is useful, but it is not what most people mean when they talk about AI agents.
A real AI agent setup usually needs a few things:
- persistent sessions
- access to tools
- configurable models
- automation triggers
- a way to connect to messaging or operational surfaces
- some form of memory or continuity
OpenClaw is built around that broader model. Instead of treating AI as a single chat box, it gives you a structure for running an assistant through a Gateway, managing configuration, opening a dashboard, and later connecting channels like Telegram, Discord, WhatsApp, and more.
That makes it a strong choice if your goal is:
- building a personal AI operator
- running self-hosted or semi-self-hosted AI workflows
- experimenting with agentic automation
- creating an always-available assistant for work, research, or operations
What you need before you install OpenClaw
Before starting, make sure you have the basics ready.
Requirements
According to the OpenClaw docs, you should have:
- Node.js installed
- Node 24 is recommended
- Node 22.14+ is also supported
- An API key from a model provider
- for example OpenAI, Anthropic, Google, or another supported provider
If you are on Windows, there is one important detail: WSL2 is the recommended route for the full experience. Native Windows works for core CLI and Gateway flows, but WSL2 is considered the more stable path.
That matters because a lot of people search for an "AI agent setup guide" and then get stuck on environment issues before they even reach the interesting part.
Step 1: Install OpenClaw
The fastest way to install OpenClaw is through the official installer.
macOS or Linux
curl -fsSL https://openclaw.ai/install.sh | bash
Windows PowerShell
iwr -useb https://openclaw.ai/install.ps1 | iex
If you are on Windows and you want the smoothest long-term experience, use WSL2 with Ubuntu and run the Linux-style flow inside WSL. That is the route I would recommend for most users who care about reliability and future automation.
Step 2: Run onboarding
Once OpenClaw is installed, run the onboarding flow:
openclaw onboard --install-daemon
This is the step that makes OpenClaw feel less like a random CLI tool and more like an actual platform. The onboarding process walks you through:
- choosing a model provider
- adding your API key
- configuring the Gateway
- preparing the environment for regular use
If your goal is to get to a working AI assistant fast, this is the command that matters most.
Step 3: Verify the Gateway is running
OpenClaw revolves around its Gateway, which acts as the runtime layer for your assistant, sessions, tools, and automations.
After onboarding, check that it is live:
openclaw gateway status
You should see the Gateway running on port 18789.
This step matters because a lot of beginner frustration comes from assuming the install failed when the real issue is just that the Gateway is not active.
If you ever need to manage it directly, the supported commands are:
openclaw gateway status
openclaw gateway start
openclaw gateway stop
openclaw gateway restart
That is the basic operational control surface.
Step 4: Open the dashboard
Once the Gateway is up, launch the dashboard:
openclaw dashboard
This opens the Control UI in your browser. If it loads correctly, you have already crossed the main setup hurdle.
From here, you can:
- chat with your assistant
- inspect configuration
- manage operational state
- move from simple prompting into more agentic workflows
For beginners, this is the point where OpenClaw stops being abstract and starts feeling useful.
Step 5: Send your first message
Now send a message in the Control UI chat.
If everything is configured correctly, you should get a reply from your AI assistant. That confirms four things at once:
- installation worked
- your model provider is configured correctly
- the Gateway is running
- the UI is talking to the assistant as expected
At this stage, you already have a functional baseline for an AI agent automation platform.
Where OpenClaw stores its important files
One of the smartest parts of OpenClaw is that it keeps your personal setup separate from the core repo or install logic.
Two paths matter most:
~/.openclaw/workspace→ your workspace~/.openclaw/openclaw.json→ your config
This is important for two reasons:
1. Easier updates
Your custom prompts, memory, skills, and workflow files live outside the main codebase. That means you can update OpenClaw without constantly wrecking your personal environment.
2. Better agent customization
If you want an assistant that feels like your own system rather than a generic interface, the workspace model gives you room to shape it.
Editing configuration the right way
OpenClaw reads config from ~/.openclaw/openclaw.json, and it supports JSON5-style convenience.
You can work with config in a few ways:
Interactive route
openclaw onboard
openclaw configure
CLI one-liners
openclaw config file
openclaw config get agents.defaults.workspace
openclaw config set agents.defaults.heartbeat.every "2h"
openclaw config validate
This is one of the best parts of OpenClaw for people serious about automation: it is not locked inside a point-and-click UI. You can inspect and modify config programmatically, which is exactly what you want in an agent platform.
Your first useful automations in OpenClaw
After setup, most people ask the wrong question. They ask, "What else can I install?"
The better question is: What small automations make this useful today?
Here are the first three I would focus on.
1. Heartbeat check-ins
Heartbeat lets your assistant check in periodically.
Example config concept:
{
"agents": {
"defaults": {
"heartbeat": {
"every": "30m",
"target": "last"
}
}
}
}
Why this matters:
- it turns the assistant from reactive to semi-proactive
- it supports lightweight monitoring and reminders
- it creates the foundation for ongoing AI automation
2. Cron jobs
OpenClaw also supports cron-based automation. This is what you use when timing matters more than conversational flow.
Good beginner examples:
- daily summary generation
- morning reminders
- scheduled status checks
- regular operational nudges
If you are trying to understand how AI agents become automations, cron is one of the clearest answers.
3. Channel connections
Once local chat works, connect a real communication surface.
OpenClaw supports channels like:
- Telegram
- Discord
- Slack
- iMessage
- and others
That step is what transforms the system from a local experiment into a usable assistant you can interact with from where you already spend time.
Windows users: native vs WSL2
This deserves its own section because it affects setup quality a lot.
OpenClaw supports both native Windows and WSL2, but the docs are clear that WSL2 is the recommended option for the full experience.
Use native Windows if:
- you want to test core CLI flows quickly
- you are doing light experimentation
- you want minimal initial friction
Use WSL2 if:
- you want the more stable route
- you plan to run the Gateway regularly
- you care about compatibility with Linux-first tooling
- you are serious about self-hosted AI agent operations
For most people building something real, WSL2 is the better long-term call.
Common setup mistakes to avoid
A lot of beginner guides skip this, which is a mistake.
Mistake 1: Treating OpenClaw like a chatbot app
OpenClaw is closer to an AI runtime and automation layer than a simple prompt interface. If you expect it to behave like a generic chat website, you will miss the point.
Mistake 2: Ignoring the Gateway
If the Gateway is not running, the rest of the system falls apart. Always verify status early.
Mistake 3: Overcomplicating automation too soon
Do not start with ten channels, five models, three agents, and scheduled workflows everywhere. Start with:
- install
- onboard
- verify Gateway
- open dashboard
- send first message
- add one small automation
That path is boring, which is exactly why it works.
Mistake 4: Editing config carelessly
OpenClaw uses strict validation. If the config is malformed or contains invalid values, the Gateway can refuse to start. Validate changes before assuming the platform is broken.
Why OpenClaw is a strong choice for beginners in agentic AI
There are plenty of flashy AI agent tools around right now, but many of them have one of two problems:
- they are too toy-like
- or they are too messy for normal people to operate reliably
OpenClaw sits in a useful middle ground.
It gives you:
- structured setup
- an actual runtime layer
- dashboard access
- configurable models
- automation support
- channel connectivity
- room to grow into more advanced workflows
That makes it a strong platform for anyone exploring:
- AI agents for productivity
- AI automation for personal operations
- self-hosted AI assistant workflows
- agentic systems that go beyond prompts
For the business side of your AI setup — managing your email list, building sales funnels, and selling digital products — I use Systeme.io. The free plan covers everything you need to start: up to 2,000 contacts, unlimited emails, and product delivery. No credit card required to get started.
If you want the entire automation stack pre-configured, check out the AI Content Autopilot Starter Kit — use code LAUNCH30 for 30% off.
Final thoughts
If your goal is to learn how AI agents and automation actually work in practice, OpenClaw is a solid place to start. The core setup is straightforward:
- install OpenClaw
- run onboarding
- verify the Gateway
- open the dashboard
- send your first message
- add heartbeat, cron, or a messaging channel
That gives you more than a chatbot. It gives you the beginnings of an operational AI assistant.
And that is the real shift behind agentic AI: not just asking better questions, but building systems that can stay available, use tools, retain context, and do useful work over time.
If you are building from zero, this is a practical starting line.

