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 machine — a Windows PC that can stay on when you want the agent available.
- Node.js 22.16 or newer — Node 24 is the recommended runtime.
- One model credential — a Claude subscription (OAuth) or an API key from Anthropic, OpenAI, Gemini, OpenRouter, Qwen, Mistral, etc.
- Two Telegram values — a bot token and your numeric user ID.
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:
- Claude subscription (recommended for most people) — sign in with OAuth in the installer wizard. No API key to paste.
- API key — generate a key at
console.anthropic.com, or use a supported alternative: OpenAI, Gemini, OpenRouter, Qwen, Mistral and others.
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:
- Open Telegram and search for
@BotFather. - Send
/newbot. - Choose a display name and a unique username.
- Copy the token BotFather returns — it looks like
123456789:AAH...and is the credential OpenClaw uses to send and receive messages.
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:
- Search for
@userinfobotin Telegram. - Send
/start. - 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:
openclaw statusshows the service running,- your bot replies to you in Telegram, and
- the service comes back after a reboot.
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.