What is OpenClaw?

OpenClaw is an open-source personal AI agent that runs on your own machine. Instead of answering questions in a browser tab, it reaches out through the messaging apps you already use — WhatsApp, Telegram, Discord and more — and uses tools (browser, exec, web) to actually do things, from drafting reports to running scheduled automations.

Because it runs locally, your workspace, configuration and data stay on your device. You only hand it credentials when it needs to reach an external service.

The trade-off worth knowing up front: OpenClaw is powerful, but with real tools comes real risk. Take the time to understand the gateway and security settings before exposing it to the internet.

What you need before you start

You need four things in hand before running the installer:

⚠ A note on model access
OpenClaw is the agent, not the brain. Every response and tool plan still needs a model provider. Budget for a subscription or API usage — the agent will not run without one.

Step 1 — Install Node.js

OpenClaw's CLI runs on Node.js. Check whether you already have it:

node -v

If the version is 22.16 or newer, skip ahead. Otherwise, install the current LTS or Node 24 from the official site or via nvm-windows:

nvm install 24
nvm use 24

Verify again with node -v before moving on.

Step 2 — Get model provider credentials

You have two main paths. Choose one:

If you are not sure, start with the OAuth option — it is the fastest to set up and the easiest to revoke later.

Step 3 — Create a Telegram bot

Telegram is the most common way to talk to your agent. Create a bot in under a minute:

  1. Open Telegram and search for @BotFather.
  2. Send /newbot.
  3. Choose a display name and a unique username.
  4. Copy the token BotFather returns — it looks like 123456789:AAH... and is the credential OpenClaw uses to send and receive messages.
⚠ Keep the token secret
Anyone with the token can control your bot. Treat it like a password.

Step 4 — Get your Telegram user ID

Onboarding marks you as the admin so random people cannot control your assistant. To find your numeric ID:

  1. Search for @userinfobot in Telegram.
  2. Send /start.
  3. Copy the numeric user ID it returns.

Step 5 — Run the installer

With Node, a model credential, and both Telegram values ready, run the official installer. The latest one-line install command is published on the OpenClaw install page (openclaw.ai) — always copy it from there rather than a random blog, since the command changes between releases.

The installer walks you through onboarding: pick your model provider, authenticate, and paste the Telegram bot token and user ID when prompted.

After onboarding, your working files live in ~/.openclaw/workspace/, and installed skills go into ~/.openclaw/skills/.

Step 6 — Verify and send your first message

Confirm the service is running:

openclaw status

You are done when:

Try a simple prompt in Telegram, then ask it to do something concrete — like summarizing a page or drafting a short report — to confirm the tools are wired up correctly.

FAQ

Can I run OpenClaw on a laptop that sleeps?

Yes, but it only works while the machine is on. For 24/7 availability, run it on a VPS or a spare always-on machine instead.

Which model provider should I pick?

Claude (OAuth) is the smoothest starting point. If you prefer API keys or want a specific model, OpenRouter, OpenAI, Gemini, Qwen and Mistral are all supported.

Is it safe to expose OpenClaw to the internet?

Only through the gateway, with auth and sandboxing enabled. Prompt injection is an unsolved industry problem — use a strong model and follow the official security best practices.