Runoob Tutorial ArchiveEnglish

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.

fe e857 f35b 4e 8b 77 3e48ec498

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.

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):

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

e1de48 39c 4 f8 9189 761ca9baa593

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):

aca86b 8 5b3 4b9b 8 ae efb6eced5 5

Next, we select the QuickStart option:

78ba 8f8 9c17 476d 9c 1 fecf9741bc57

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

9a5a1c3e 8 6 4349 8e8 fa 8b9 3f

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//agent/auth-profiles.json, and you can modify this file later.

Then there will be an option to select the chat tool; overseas ones usually do not have an option for the last one:

434ba7fb a c4 4168 9b9f a89ed8 1e

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.

4fddc7d3 e c 44fc 98f8 e81cd3 faf5b

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

7d416638 34f9 4c7b 9 a7 7b777 4 c83c

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

4ee f8a3 f15b 49e7 91eb aac75 69 8 f

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

f 49b 4 68d 47 a 818 594c357 3c9b

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

176a41 e 369c 46b3 8f 7 49d384a8 f8c

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:

Moltbot Clawdbot runoob3

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:

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

Workspace Anatomy

Chat slash commands

Essential Path Map

Speech and TTS

Memory and Model

Hooks and Skills

Troubleshooting

Automation and Research


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:

Install using Alibaba Cloud's lightweight server:https://www.aliyun.com/activity/ecs/clawdbot.

c6da4d 6 b5 f 4b11 aebc bdea5c5db859 scaled

You can use their images for one-click installation:

c63833b3 74f7 4577 9f1c 17fd8 7859d8

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

9855 6b6 d54a 4ed 8111 a19bc9 1963


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?

Moltbot Clawdbot runoob

Its core capabilities include:

Compared to code completion tools like Claude Code/OpenCode, OpenClaw is closer to an engineering agent with execution permissions.

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