OpenClaw (Clawdbot) Tutorial
OpenClaw (Clawdbot) Tutorial
OpenClaw (formerly Clawdbot, transitional name Moltbot) is an open-source personal AI assistant project that suddenly became popular in January 2026, developed by Peter Steinberger (founder of PSPDFKit).
OpenClaw is an intelligent agent capable of executing tasks; when we give it instructions, it not only answers but can also operate the operating system, access web pages, process emails, organize files, initiate reminders, and even automatically write code.
OpenClaw is a tool that combineslocal computing power + large model Agent automationto the extreme for developer efficiency.
OpenClaw aims to make AI not just give suggestions, but directly complete entire engineering tasks.

Because Anthropic sent a lawyer's letter on January 27th stating that Clawd / Clawdbot was too similar to Claude, the project was urgently renamed Moltbot on the same day (meaning shedding shrimp, with the mascot being a small crayfish Molty 🦞), but the functionality remains identical, and the old command clawdbot is still compatible.
Moltbot was a transitional name conceived by the project team to address infringement risks; OpenClaw is the current final official name.
-
OpenClaw official website:https://openclaw.ai/
-
Chinese documentation:https://docs.openclaw.ai/zh-CN
-
Github address:https://github.com/openclaw/openclaw
-
OpenClaw skill collection:https://github.com/VoltAgent/awesome-openclaw-skills
Clawbot, Moltbot, and OpenClaw are actually the same open-source project, and the evolution of the names is:
Clawdbot → Moltbot → OpenClaw
| Name | Timeline | Background/Reason | Essential Relationship |
|---|---|---|---|
| Clawdbot / Clawbot | Late 2025 to early 2026 | Original project name; inspired byClaudeandclaw(lobster claw) meme | Original name, the identity that first appeared on GitHub |
| Moltbot | January 27, 2026 | Required to rename due to Anthropic trademark concerns | Intermediate transitional name; functionality and code are consistent with Clawdbot |
| OpenClaw | After January 30, 2026 | Abandon copyright conflicts, emphasize open source/long-term branding | Current official name, which will be the unified identifier for future documentation, repositories, etc. |
Installation method
OpenClaw's installation is designed to be extremely friendly, allowing even non-developers to get started quickly.
System requirements (not necessarily Mac mini):
- Hardware: Very low, 2GB RAM is sufficient to run.
- Environment: Supports Mac, Windows, Linux, and requires Node.js (pnpm) installation or using Docker.
1. Recommended installation method (one-click script):
Execute the following command directly in the terminal.
macOS/Linux system:
curl -fsSL https://openclaw.ai/install.sh | bash
Windows system:
#PowerShell
iwr -useb https://openclaw.ai/install.ps1 | iex
#CMD
curl -fsSL https://openclaw.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
This will automatically install Node.js (>=22) and complete the basic configuration.
2. Manual installation
RequiresNode.js >=22And complete the basic configuration:
Using npm:
Original prompt (Chinese, left untranslated)
npm i -g openclaw
# If speed is slow, you can specify a domestic mirror
npm i -g openclaw --registry=https://registry.npmmirror.com
Or using pnpm:
pnpm add -g openclaw
After installation, initialize and install the background service (launchd / systemd user service):
openclaw onboard
3. Install from source (development mode)
Original prompt (Chinese, left untranslated)
git clone https://github.com/openclaw/openclaw.git
cd openclaw
pnpm install
pnpm ui:build # 首次运行会自动安装 UI 相关依赖并构建前端界面
pnpm build # 构建整个项目(包含后端与相关模块)
# Initialize OpenClaw and install it as a system background service (runs automatically on startup)
pnpm openclaw onboard --install-daemon
# Development mode: watch TypeScript code changes and automatically reload gateway service
pnpm gateway:watch
Configuration instructions
We recommend using the one-click installation script.
macOS/Linux systems:
curl -fsSL https://openclaw.ai/install.sh | bash
Windows system:
#PowerShell
iwr -useb https://openclaw.ai/install.ps1 | iex
#CMD
curl -fsSL https://openclaw.ai/install.cmd -o install.cmd && install.cmd && del install.cmd
It will complete environment detection, install necessary dependencies, and start the onboarding (setup wizard) process.
To re-enter the setup wizard later, you can execute the following command:
openclaw onboard --install-daemon

Then, it will remind you that this lobster capability is very strong, but the risk is also high. We just select yes (if we select no, it won't be installed):

Next, we select the QuickStart option:

Next, we need to configure a large model. Select the AI provider in Model/Auth Provider; most domestic and international providers are supported.

If you don't have an overseas account, configuring the API key for our domestic providers like Qwen, MiniMax, or Zhipu is also fine. The authentication profile file (OAuth + API key) is in ~/.openclaw/agents/
Then there will be an option to select the chat tool; overseas ones usually do not have an option for the last one:

Other configurations, such as port settingsGateway Port, you can use the default 18789. For example, if you select npm or other for Skills or package installation manager, you can just keep pressing Yes.

Select some skills you like, or you can skip them directly. Use the spacebar to select:

For these API keys, select no if you don't have them:

Finally, these three hooks can be enabled. Use the spacebar to select. They are mainly for content guidance logs and session records:

Select Open the Web UI and open it in a browser:

After installation, it will automatically accesshttp://127.0.0.1:18789/chat, and you can open the chat interface to let it start working.
For example, search for the latest technology news:

After starting, we can use the openclaw status command to check the status:
openclaw status
If you installed the service during the new user guide, the Gateway gateway should already be running:
openclaw gateway status
Run manually (foreground):
openclaw gateway --port 18789 --verbose
Commands that can be executed after installation:
- Run the new user guide:
openclaw onboard --install-daemon - Quick check:
openclaw doctor - Check Gateway gateway health status:
openclaw status+openclaw health - Open the dashboard:
openclaw dashboard
Uninstall
Use the built-in uninstaller:
openclaw uninstall
Non-interactive (automation / npx):
openclaw uninstall --all --yes --non-interactive
npx -y openclaw uninstall --all --yes --non-interactive
Use skills
Skills are independent folders containing the SKILL.md file; ClawHub is the optimal choice for finding and installing skills to extend new functionalities for the OpenClaw agent.
ClawHub skill repository address:https://clawhub.ai/
ClawHub domestic mirror:https://skillhub.tencent.com/
Install ClawHub tool:
Original prompt (Chinese, left untranslated)
# Recommended way (npx no global install)
npx clawhub@latest --version
# or global installation (convenient for using the clawhub command directly later)
npm install -g clawhub
# Or use pnpm
pnpm add -g clawhub
Log in:
clawhub login
Search for skills:
clawhub search "postgres backups"
Download and install new skills:
clawhub install my-skill-pack
Batch update installed skills:
clawhub update --all
Plugin Management
Plugins are lightweight code modules that can extend OpenClaw with additional functionality through new commands, tools, and Gateway RPC capabilities.
View loaded plugins:
openclaw plugins list
Install official plugins (example: voice call plugin):
openclaw plugins install @openclaw/voice-call
Restart the gateway for plugin installation to take effect:
openclaw gateway restart
Common Commands
List of common OpenClaw commands:
| Categories | Commands | Description |
|---|---|---|
| Initialization and Installation | openclaw onboard |
Interactive Wizard (Configure Model, Channel, Gateway, Workspace) |
| Initialization and Installation | openclaw setup |
Initialization Configuration + Workspace (Non-interactive Version) |
| Initialization and Installation | openclaw configure |
Interactive Configuration Wizard (Model, Channel, Skill) |
| Gateway Management | openclaw gateway status |
View Gateway Service Status + RPC Health Check |
| Gateway Management | openclaw gateway start |
Start Gateway Service |
| Gateway Management | openclaw gateway stop |
Stop Gateway Service |
| Gateway Management | openclaw gateway restart |
Restart Gateway Service |
| Gateway Management | openclaw gateway run |
Run gateway directly in frontend (for debugging) |
| Gateway Management | openclaw gateway health |
Get gateway health information |
| Configuration Management | openclaw config file |
Display the full path of the current configuration file |
| Configuration Management | openclaw config get <path> |
Read configuration item |
| Configuration Management | openclaw config set <path> <value> |
Modify Configuration Items |
| Configuration Management | openclaw config validate |
Validate Configuration File Legality |
| Diagnostics and Status | openclaw doctor |
One-click Health Check + Auto Repair |
| Diagnostics and Status | openclaw status |
Display Session Health Status and Recent Contacts |
| Diagnostics and Status | openclaw health |
Fetch health data from a running gateway |
| Diagnostics and Status | openclaw logs |
View gateway logs in real-time |
| Other frequent operations | openclaw dashboard |
Open the web control panel |
| Other frequent operations | openclaw channels status |
View connected chat channels |
| Other frequent operations | openclaw agent run |
Manually trigger an agent run |
Remember to run after changing the configurationopenclaw gateway restartTo take effect~ 🦞
Channel management
- WhatsApp:
openclaw channels login(or scan QR) - Telegram:
openclaw channels add --channel telegram(Requires Bot Token) - Discord:
openclaw channels add --channel discord(Requires Bot Token) - iMessage: macOS native bridge
- Slack:
openclaw channels add --channel slack(Requires Bot Token)
Workspace Anatomy
AGENTS.md: Command DescriptionUSER.md: PreferencesMEMORY.md: Long-term MemoryHEARTBEAT.md: ChecklistSOUL.md: Persona/ToneIDENTITY.md: Name/TopicBOOT.md: Startup Configuration- Root directory:
~/.openclaw/workspace
Chat slash commands
/status: Health + Context/context list: Context contributors/model <m>: Switch model/compactRelease window space/newNew session/stopAbort current run/tts on|offSwitch voice/thinkSwitch inference mode
Essential Path Map
- Main configuration:
~/.openclaw/openclaw.json - Default workspace:
~/.openclaw/workspace/ - Agent state directory:
~/.openclaw/agents/<cid>/ - OAuth & API keys: ~/.openclaw/agents/
/agent/auth-profiles.json, if it is an older version in ~/.openclaw/credentials/ - Vector index storage:
~/.openclaw/memory/<cid>.sqlite - Global shared skills:
~/.openclaw/skills/ - Gateway file logs:
/tmp/openclaw/*.log
Speech and TTS
- Payments: OpenAI / ElevenLabs
- Free: Edge TTS (No API Key required)
- Automatic TTS:
messages.tts.auto: "always"
Memory and Model
- Vector Search:
memory search "X" - Model Switching:
models set <model> - Authentication Settings:
models auth setup - Logs:
memory/YYYY-MM-DD.md
Hooks and Skills
- ClawHub:
clawhub install <slug> - Hook list:
openclaw hooks list
Troubleshooting
- No DM reply → Pairing list → Approval
- Muted in group → Check mention pattern configuration
- Authentication expired →
models auth setup-token - Gateway closed →
doctor --deep - Memory bug → Rebuild memory index
Automation and Research
- Browser:
browser start/screenshot - Sub-agent:
/subagents list/info - Scheduled task:
cron list/run <cid> - Heartbeat:
heartbeat.every: "30m"
Direct installation and configuration through third-party cloud
Major platforms now support this agent. If you do not want to install it locally, you can deploy OpenClaw in the cloud with one click:
- Alibaba Cloud:https://www.aliyun.com/activity/ecs/clawdbot
- Tencent Cloud:https://cloud.tencent.com/developer/article/2624973
Install using Alibaba Cloud's lightweight server:https://www.aliyun.com/activity/ecs/clawdbot.
You can use their images for one-click installation:

Install using Tencent Cloud's lightweight server:https://cloud.tencent.com/developer/article/2624973

Common commands
The common commands for OpenClaw are as follows:
| Command | Function | Remarks / Parameters |
|---|---|---|
openclaw status |
View the current running status of the Gateway | Includes health and context information |
openclaw health |
Health check | Detects core, dependencies, and running environment |
openclaw doctor |
Comprehensive diagnosis and repair suggestions | Supports--deepDeep inspection |
openclaw onboard |
Interactive initialization wizard | First-time use recommendations |
openclaw onboard --install-daemon |
Install system daemon | Run Gateway in the background |
openclaw onboard --uninstall-daemon |
Uninstall daemon | Do not delete data |
openclaw configure |
Interactive configuration wizard | Models, channels, credentials, etc. |
openclaw config get <path> |
Get configuration values | JSON Path |
openclaw config set <path> <value> |
Set configuration items | Supports JSON5 / raw text |
openclaw config unset <path> |
Clear configuration items | Remove a single key-value pair |
openclaw channels list |
List logged-in channels | WhatsApp / Telegram / Discord, etc. |
openclaw channels login |
Log in to a new channel account | QR code scanning or authorization process |
openclaw channels add |
Add channel | Telegram / Discord / Slack |
openclaw channels status --probe |
Channel health check | Detect connection availability |
openclaw skills list |
List skills | Installed / Available Skills |
openclaw skills info <skill> |
Skill Details | Parameters, Version Information |
clawhub install <slug> |
Install Skills from ClawHub | Official Skill Market |
openclaw hooks list |
List Hooks | Event Hook Mechanism |
openclaw plugins list |
List Plugins | View installed plugins |
openclaw plugins install <id> |
Install plugins | For example@openclaw/voice-call |
openclaw plugins enable <id> |
Enable plugins | Usually requires restarting Gateway |
openclaw models list |
List available models | Includes authentication status |
openclaw models status |
Model status | Current Availability |
openclaw models auth setup-token |
Model Authentication Configuration | Cheatsheet Recommended Methods |
openclaw memory search "X" |
Search Long-Term Memory | Vector Search |
openclaw memory index |
Rebuild Memory Index | Fix memory exception |
openclaw logs |
View Logs | Default aggregated output |
openclaw logs --follow |
Real-time logs | --json / --plain / --limit |
openclaw gateway install |
Install Gateway system service | Register as system daemon |
openclaw gateway start |
Start Gateway service | system service mode |
openclaw gateway stop |
Stop Gateway service | |
openclaw gateway restart |
Restart Gateway service | Use after configuration change |
openclaw gateway status |
Gateway system service status | Different fromopenclaw status |
openclaw browser start |
Start browser proxy | Automation capabilities |
openclaw browser screenshot |
Webpage screenshot | |
openclaw subagents list |
List sub-proxies | |
openclaw cron list |
List scheduled tasks | |
openclaw cron run <id> |
Execute scheduled tasks | |
openclaw uninstall |
Uninstall Gateway service and data | Officially recommended |
openclaw uninstall --all --yes --non-interactive |
Fully automatic uninstall | Status / workspace / plugin |
openclaw uninstall --state |
Delete status file | Do not delete workspace |
openclaw uninstall --workspace |
Delete workspace | agent / workspace data |
openclaw uninstall --service |
Uninstall system services only | Do not delete data |
openclaw uninstall --dry-run |
Simulate uninstall | Display results only |
Why is it so popular recently?
- Truly achieves "like JARVIS": can read and write files, run terminal commands, operate browser, send and receive emails, calendar, write code, book flights, empty inbox...
- Local first + long-term memory: all conversations share context across platforms, and USER.md and the memory/ directory become smarter with more use
- Supports almost all large models: Claude, Gemini, OpenAI, Ollama local models, Pi, etc.
- Explosive community skill ecosystem: ClawdHub already has 500+ community skills (Slack, Discord, GitHub, browser control, macOS UI automation, etc.)
- Installation is as simple as npm install, but the actual capabilities are very spicy (developer's original words)

Its core capabilities include:
- Decomposing natural language goals into executable steps
- Automatically calling terminal commands
- Creating and modifying project files
- Running code and detecting results
- Automatic repair based on errors
Compared to code completion tools like Claude Code/OpenCode, OpenClaw is closer to an engineering agent with execution permissions.
- Claude Code and OpenCode excel in code quality and understanding.
- OpenClaw excels in automatically completing the entire engineering process.
| Capability dimensions | OpenClaw | Claude Code | OpenCode |
|---|---|---|---|
| Task planning | Strong | Medium | Medium |
| Automatic execution | Complete | Partial | Partial |
| Self-healing | Yes | No | No |
| Engineering-grade operation | Strong | Strong | Medium |
| Local automation | Native support | Weaker | Weaker |
