How to set up OpenClaw

Set up OpenClaw step by step: what you need, the install command, onboarding, the background Gateway, a Telegram chat and the security checks to run.

Level

Intermediate

Time

7 steps · 6 min

Platform

OpenClaw

OpenClaw is an open-source personal agent you run yourself. The site sums it up as “No subscription. No hosted tier. No token.” It’s MIT-licensed and run by the OpenClaw Foundation, a 501(c)(3) nonprofit (OpenClaw). Because you host it, setup is more technical than a hosted app, and safety is your job. The official quick start says you can be chatting “in about 5 minutes” (docs). This guide follows those docs, then adds the security steps the docs ask you to take.

Not sure you want to self-host? Compare first: Grok Bot vs OpenClaw.

What you need

  • Node.js. Version 24.16.0 or newer on 24.x, or 26.1.0 or newer. Node 26 is recommended; use 24.22.1+ or 26.12.1+ “for the security fixes”. Check with node --version (docs).
  • Access to a model. An existing Claude Code or Codex CLI login, or an API key from a model provider. Onboarding can reuse what it finds (docs).
  • A computer that stays on, if you want it to work while you’re away. The Gateway can run as a background service (Step 4).
  • Windows? The native Windows Hub app is the easiest desktop path; the PowerShell installer and WSL2 also work (docs). Desktop apps are listed for macOS 15+, Windows 10/11 and Linux (OpenClaw). WIRED notes that setting it up takes basic engineering knowledge.

Plans and what the software itself costs (there is no subscription or hosted tier): OpenClaw. Check what your model provider and the chat apps you connect offer where you live.

Step 1. Try it, or install it

To try it without installing, run:

npx openclaw@latest

To install it, use the official script (docs):

# macOS / Linux
curl -fsSL https://openclaw.ai/install.sh | bash
# Windows (PowerShell)
iwr -useb https://openclaw.ai/install.ps1 | iex

Docker, Nix and npm installs are covered on the docs’ Install page (docs). With npm (Node 24.22.1+ or 26.12.1+; npm 12 or 11.16+):

npm install -g openclaw@latest --allow-scripts=openclaw
# on npm 11.15 and earlier, leave out --allow-scripts=openclaw

Step 2. Complete onboarding

The installer starts the onboarding wizard on its own. On a fresh install you get a pointer to the security guide, then a choice (docs):

  • Quick start finds your existing model login or API key, checks it with a real request, saves the config and opens the web dashboard.
  • Custom setup walks through every guided option.

Read that security guide before you connect anything. You can change settings later with openclaw configure. Then run openclaw onboard --install-daemon to connect a model and your first chat app, if the wizard hasn’t already done that.

Step 3. Check the Gateway and dashboard

The Gateway is the part that runs your agent. Check it:

openclaw gateway status

You should see it listening on port 18789. Then open the Control UI in your browser:

openclaw dashboard

Type a message in the dashboard chat. If you get a reply, your install works (docs).

Step 4. Keep it running in the background

Quick start asks whether to keep OpenClaw running in the background and installs the service if you say yes. If you skipped that, stop the foreground Gateway with Ctrl+C and run:

openclaw gateway install

That installs a LaunchAgent on macOS, a systemd user unit on Linux and WSL2, or a Scheduled Task on Windows. Your config stays saved (docs).

Step 5. Connect a chat app

OpenClaw supports many chat apps, including Discord, iMessage, Signal, Slack, Telegram and WhatsApp. The docs call Telegram the fastest to set up: it only needs a bot token (docs). You create the bot and its token in Telegram’s BotFather, then add the token to OpenClaw’s Telegram settings (Telegram docs).

By default, Telegram DMs use pairing: a stranger who messages your bot gets a short code and the bot ignores their message until you approve it (Telegram docs, security docs). To approve yourself:

openclaw pairing list telegram
openclaw pairing approve telegram <CODE>

Codes are 8 characters and expire after an hour (pairing docs). Keep pairing on.

Step 6. Run the security audit

OpenClaw ships with conservative defaults, and the security docs say one command tells you if you have drifted from them (security docs). Run it now, and again after you change settings:

openclaw security audit

Things worth knowing from the same page:

  • One trust boundary per Gateway. The guidance assumes a single operator, or a team whose members trust each other. OpenClaw is not a security boundary between people who don’t trust each other (security docs).
  • Loopback by default. On a regular install the Gateway only listens on your own machine. Container images are an exception: they default to an exposed bind, which the docs say to pair with auth (security docs).
  • Stay updated. An older flaw, CVE-2026-25253, let a crafted link make OpenClaw connect to another server and send its token. It affected versions before 2026.1.29 and is listed at 8.8 (high) on NVD. Current releases are well past that, but it shows why updates matter.

For house rules that work in any agent (approve every send, payment and delete), see House rules for your AI bots.

Step 7. Give it a first job

Start with something read-only, so a mistake can’t cost you anything:

For a full role with skills, paste the prompt from our personal assistant agent; OpenClaw supports skills natively. Comfortable in a terminal? The developer agent fits well. Good first use cases: a morning briefing or inbox sorting.

If something breaks

Run openclaw triage. It runs read-only health checks and writes a diagnosis prompt, and nothing leaves your machine until you choose an agent to hand it to. To read the findings yourself, run openclaw doctor (docs).

A real limit

  • You are the admin. Updates, backups, exposure and access are on you.
  • Only as safe as your setup. Agents with message-tool access can send across conversations and chat apps by default; restrict that if you need to (security docs). The docs also cover sandboxing and per-agent tool limits.
  • Model costs add up. The software is free, but if you use a paid model provider, you pay that provider for usage.
  • Don’t share a Gateway with people you don’t fully trust; give each their own (security docs).

Next steps

Sources

The newsletter

Best use cases. Copy a prompt.

Optional

Set up your team

Set up a whole team of roles with one prompt. Your agent asks you about 10 questions, then shows you a plan. It builds nothing until you say OK, and your Chief of Staff leads the team.

  1. Paste it into your agent
  2. Answer about 10 questions
  3. OK the plan
Which mode does your agent use?

Your agent checks this itself when you start. A: it creates the bots. B: you create them from its setup packs. C: one agent plays every role.

  • Grok Bot: A, B or C. It can create focused bots after you OK the plan, or you make them yourself.
  • ChatGPT dots: C. Its help pages describe one dot, so your dot plays each role in turn.
  • Claude Duet: C. One Duet plays each role, and channels you start share its memory.
  • OpenClaw: A, B or C. It can ask for new agents, and each one is made only after you approve it.
  • Hermes Agent: B or C. You create each agent as a profile, and Hermes can set up its own scheduled jobs.

ChatGPT dots is for Pro (18+) and, in a gradual rollout, selected Plus users, outside the EEA, Switzerland and the UK; Business Standard and Premium in supported regions; and Enterprise, Edu and Healthcare workspaces (on by default since 18 Nov 2026 unless the admin opts out). Claude Duet is a research preview for Pro, Max and Ultra plans in the US, India, Indonesia, Brazil and Japan, through a waitlist.

Prompt refreshed

Already have a team? Paste the same prompt and say "team check-up".