Your First Open-Source AI Agent in 30 Minutes: An OpenClaw Setup for Total Beginners

You type one line into the terminal. Five minutes later, a chat window opens with a working AI assistant that lives on your own computer. No subscription. No account on a vendor's server.

That is what OpenClaw gives a beginner. The rest of this guide spends the other 25 minutes on the parts most tutorials skip — locking down the agent, keeping it running, and opening a phone channel without leaving a public door.

By the end you will have a tested local assistant, a security checklist finished, and a clear answer to what it costs and what it exposes.

StepWhat you doMinutesKey command or setting
1Understand what you are installing and the one possible bill2MIT license, no paid OpenClaw version
2Check your machine and run the install line3curl -fsSL https://openclaw.ai/install.sh | bash (macOS/Linux) or iwr -useb https://openclaw.ai/install.ps1 | iex (Windows)
3Choose Quick start and connect a model2Reuse Claude Code or Codex CLI login, or paste an API key
4Start the Gateway in the background3openclaw gateway install
5Open the Control UI in your browser1openclaw dashboard
6Lock it down before adding skills10Trusted skills only, MCP Relay off
7Add Telegram phone chat5Bot token in channel setup
8Test with one safe prompt4Verify the answer by hand
The 30-minute beginner setup at a glance

What You Are Installing, and What It Costs

What You Are Installing, and What It Costs

OpenClaw is free in the way a library book is free: nobody sells you a copy. Its source code is open, meaning anyone can read it, change it and run it without asking permission.

That's what open source means here. A small US nonprofit, the OpenClaw Foundation, watches over it, so there is no paid edition to upgrade to.

Peter Steinberger built it over a weekend. Within five months it became the most-starred project on GitHub, with more than 346,000 stars. That number is GitHub's popularity marker, similar to a like count.

A repository is simply a project's folder and history on GitHub. So the thing you are installing has a very large crowd behind it.

Everything it knows sits on your own disk, not on a company's servers. Your notes, your skills, your conversations stay local, which is why there is no OpenClaw line item to cancel six months from now.

The only place money can appear is the model that does the thinking. Onboarding either reuses a Claude Code or Codex login you already have, or takes a pasted API key from a model provider.

Whatever that provider charges is on its own pricing page, and no figure here can predict it.

OpenClaw's guide puts install, onboarding and first chat at roughly five minutes. The remaining 25 of your 30 go to security and phone access. You are spending minutes, not dollars.

OpenClaw Terms, Decoded

🧠 TERM Model provider The company that runs the AI brain your OpenClaw agent talks to; it may charge for API calls.
🔌 TERM API A doorway one app offers so other apps can send it data or ask it for data automatically.
🔑 TERM API key A long secret code that lets an app use a paid service on your account. Treat it like a password.
📖 TERM Open source Software whose code anyone can read, change and run, under the terms of its license.
🗂️ TERM Repository The online folder that holds a project's code and the history of every change to it, often on GitHub.

Check Your Machine and Run One Install Line

Check Your Machine and Run One Install Line

Because everything lives on your own hardware, the machine is the first thing to clear. OpenClaw runs on macOS and Linux, on Windows, and on a 64-bit Raspberry Pi 4 or 5 with at least 2 GB of RAM.

A 32-bit system image will not work, so check that first. If Node, the software it runs on, is missing, the installer fetches a supported copy for you.

On a Mac or a Linux machine, open the terminal and paste this one line: curl -fsSL https://openclaw.ai/install.sh | bash. On Windows, open PowerShell and paste: iwr -useb https://openclaw.ai/install.ps1 | iex.

Both commands do the download and the setup together, so there is no package manager to pick and no Node to hunt for.

If you would rather click than type, Windows users can take the signed native Hub instead. It is a desktop installer with setup, a tray icon showing status, and chat in one window.

The same command that installs also launches onboarding, which is why a beginner reaches the first chat in about five minutes according to OpenClaw's guide. One paste, one prompt, no decision tree.

Choose Quick Start and Connect a Model

Choose Quick Start and Connect a Model

The installer drops you straight into onboarding, and that is the only moment in the whole build where money can enter.

Before you touch a model, the first screen shows a single line pointing at the security guide. Read it first. Only then should you select "Quick start".

Quick start offers two roads to the same place. You can reuse a Claude Code or Codex CLI login you already have, which stays inside that existing account. Or you paste an API key from a model provider.

An API key is the long password that identifies your account to that provider. Either road gives the agent the brain it needs to answer anything.

Here is where the cost boundary sits, and it has not moved. OpenClaw itself has no paid version, so nothing here asks for a card.

The provider may bill for API calls, and free-tier limits shift often. Check the provider's own pricing page, not this article, because only that page is current.

Onboarding is part of the roughly five-minute core, so a first prompt goes out with no server and no enterprise account behind it. You have a working agent before your coffee cools.

🛠️ The 30-Minute Build, Step by Step

1

Read the security guide

The baseline ships with no secret encryption at rest and no tool approval gate. Know that before you type a key.

2

Run the install command

macOS or Linux: curl -fsSL https://openclaw.ai/install.sh | bash. Windows PowerShell: iwr -useb https://openclaw.ai/install.ps1 | iex. Needs 64-bit, 2 GB+ RAM.

3

Connect a model

Quick start is a choice between an existing Claude Code or Codex CLI login and a pasted provider API key. The key is a long password for your account.

4

Install the Gateway service

openclaw gateway install. It writes a LaunchAgent on macOS, a systemd user unit on Linux and WSL2, or a Scheduled Task on native Windows. Port 18789.

5

Open the dashboard

openclaw dashboard loads the Control UI. Keep port 18789 bound to the machine and not exposed to the open internet.

6

Harden before expanding

MCP Relay is off by default and can read content passing through it, so leave it off. Skill installs carry risk: 341 malicious skills were found in ClawHavoc.

7

Add Telegram and test

Telegram is the quickest phone channel and needs only a bot token. The companion apps pair with the Gateway; they do not replace it.

Start the Gateway and Open the Dashboard

Start the Gateway and Open the Dashboard

A first prompt disappears the moment you close the terminal, so the fix is to hand the assistant to the operating system as a background service. One command does that: openclaw gateway install.

What that command sets up depends on your machine. On a Mac it creates a LaunchAgent, on Linux and WSL2 a systemd user unit, and on native Windows a Scheduled Task.

The jobs differ, the outcome does not: the assistant starts on its own and keeps answering after you close the window.

What you should see: the Gateway listening on port 18789. Type openclaw dashboard and the Control UI opens in your browser, which is where you watch the agent, check what it is doing and manage it from then on.

Here is where the first real exposure lands. Port 18789 is the door to your assistant, and it should stay on your own machine. Never open it to the internet. This beginner build runs on one trusted network, with no public entrance.

The payoff is an assistant that is already there when you sit down, managed from a browser tab instead of a terminal you have to keep open.

Lock It Down Before You Add Skills

Lock It Down Before You Add Skills

The agent now answers on a schedule, but it runs with your permissions and nothing stands between it and a bad instruction. Fix that before any skill goes on.

OpenClaw's release notes list CVE-2026-25253, a flaw rated 8.8 out of 10 for severity. It lets a web page hijack the connection and run code on your machine.

Then there is ClawHavoc, a bundle of 341 malicious skills, plus 42 more issues listed in the same notes. Community skills bring the payload in, so add only skills you recognize from a source you trust.

The comparison table marks the gaps plain: secrets are not encrypted at rest, agents share one container, and tool calls have no approval step. One short shell command blocklist is all that stands between the agent and the rest of your files.

MCP Relay is a plugin that lets another chat app talk to your OpenClaw. That's the idea: a bridge, so ChatGPT or Claude can reach your agent without opening the Gateway port.

It is off by default and reads whatever passes through it, so leave it off until every app on it is one you trust.

One rule for the chat itself: never paste passwords, client files, or medical or financial records into it.

With the Gateway local, skills limited to trusted ones and the relay off, the next steps have a base that will not leak.

Harden First, Expand Second

✅

Do this before adding channels

  • Patch to the release that fixes CVE-2026-25253 (8.8)
  • Check each skill against ClawHavoc's 341 names
  • Add one skill, test the bot, then add the next
  • Leave MCP Relay off: it reads all traffic through it
  • Keep port 18789 bound to localhost, not the network
⚠️

Skip these steps and the build gets risky

  • Running an old build with the hijack flaw open
  • Bulk-installing unvetted bundles, payloads included
  • Enabling the relay with untrusted apps on it
  • Agents sharing one container with no approval step
  • Assuming the shell blocklist stops all commands

Add Phone Chat Through Telegram

Add Phone Chat Through Telegram

Telegram is the chat app to connect, because OpenClaw's guide calls it the fastest channel: one bot token, no second login, no extra service to keep running.

Open Telegram, start a chat with BotFather, and send it the message it asks for to create a bot. It replies with a token, a long string of letters and digits.

Copy that token into the OpenClaw channel setup and the bot starts answering. Treat the token like a password, because anyone holding it can drive your bot.

The iOS and Android companion apps do not replace this. They pair with a running Gateway, so the Mac, PC or Pi has to stay on for either route to work.

The point is reach: you type a question on your phone at lunch, and the same assistant on your own disk answers it. The phone is a window into the Gateway, not a second copy of it.

💡 PRO TIP

The One Thing Never to Paste

Never put passwords, client files, or medical or financial records into the chat. A local agent keeps your data on your own disk, but that does not make it a safe place for secrets. Keep the rule from the first session onward.

Test It, Stop It, and Decide What's Next

Test It, Stop It, and Decide What's Next

A reply that lands on your phone in seconds proves the channel works, not that the answer is right. The first test is one harmless ask you can check yourself, not a question where a wrong answer would cost something.

Give it a small task with a fact you already know by heart. Ask for the weekday a date falls on, or the boiling point in Fahrenheit, whatever needs a source.

Check the receipts: the reply arrives in seconds, then the work is yours. Open every link it names and look for the number on the page.

In testing, a date-math answer came back with a confident wrong weekday and a link that opened a page mentioning nothing of the sort.

Pinning down or shutting off the agent is not a separate command.

The Gateway runs as the background service you already installed, so find it where your system keeps those: a LaunchAgent on macOS, a systemd unit on Linux and WSL2, a Scheduled Task on Windows.

The dashboard stays the on and off switch.

Add nothing else until you have read the official security guide and the release notes end to end. One more channel, one more skill, no exceptions before that read.

What you end up with is an agent that answers on your own disk, plus a short standing rule: stay local, connect one trusted channel at a time, and leave MCP Relay off.

Where to Start on OpenClaw, Ranked

01
Read the security guide before Quick start2 min
It is open on the first screen anyway, and reading it first keeps the next four steps honest.
02
Install and connect a model5 min
One install line plus one login or API key gets you to a first chat with no server.
03
Install the Gateway service3 min
openclaw gateway install keeps the agent alive after you close the terminal window.
04
Add Telegram and test one prompt9 min
A bot token is the only credential, and one verified answer proves the loop works.
05
Extend with trusted skills onlyAs needed
Add one at a time, after reading its repo, so nothing unexpected runs with your permissions.

Minutes are the core install path from OpenClaw's getting-started guide, plus checking time.

Frequently Asked Questions

Do I need to know how to code to set up OpenClaw?

No. The install is one line copied into a terminal, and onboarding is a menu. You will need basic comfort with a terminal window and with reading a security note before you click through.

Is OpenClaw really free?

The software is MIT-licensed with no paid version. The one possible cost is the model provider you connect — an API key can carry charges set by that provider. Check its pricing page before you run a long session.

Can I run OpenClaw on a Raspberry Pi?

Yes, on a 64-bit Raspberry Pi 4 or 5 with at least 2 GB of RAM. Use 64-bit Raspberry Pi OS, because 32-bit images are not supported. The model itself can run in the cloud while the Gateway stays on the Pi.

What is the most common mistake beginners make?

Installing community skills without checking them. OpenClaw's release notes have flagged hundreds of malicious skills, so install only what you trust and read the repo first.

Can I access my agent from my phone without a server?

Yes, through Telegram. You create a bot, paste its token into the channel setup, and the phone chats with the Gateway running on your own machine. The machine has to stay on.

What should I do if I think a key or token leaked?

Revoke it at the source. Regenerate the API key at your model provider, or revoke the bot token in Telegram, and paste the new one into OpenClaw. Then check the security guide for any other exposed credential.

Your First Agent: Demo in 5 Minutes, Real Setup in 30

If you want the fastest demo, run the core install on a spare Mac or Linux laptop and stop after the first local chat. You will see OpenClaw answer in about five minutes with no account beyond a model login.

If you want the full beginner setup, finish the security checklist before adding Telegram or any skill. Turn MCP Relay off, install one trusted skill at a time, and keep port 18789 on your own machine.

Your first action is the one most people skip: read the security guide before you choose Quick start.

Leave a Comment