← 返回命令列表

Linux command

openclaw 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Run the first-time setup wizard

openclaw onboard

Start the gateway for persistent operation

openclaw gateway

Install the gateway as a system daemon

openclaw gateway install

Send a task to the agent

openclaw agent --message "[task]"

List and manage installed skills

openclaw skills

Check system health and connected services

openclaw status

说明

OpenClaw is a free, open-source, MIT-licensed autonomous AI agent that runs locally or on private servers. Written in TypeScript and installed via npm, it uses large language models to execute tasks autonomously through messaging platforms. Supported channels include WhatsApp, Telegram, Signal, Slack, Discord, Google Chat, iMessage, Microsoft Teams, Matrix, and WebChat, enabling voice and text-based interaction from any device. The agent operates through a Gateway architecture that provides persistent background operation. The Gateway listens on multiple ports for its control plane, messaging relay, and other services. Tasks are dispatched to the agent via messaging platforms or the CLI, and the agent can perform multi-step workflows, manage calendars, draft emails, send messages, and automate system commands. OpenClaw supports fully local operation using local LLM backends such as Ollama, allowing all reasoning and task execution to happen on-device without any data sent to external services. It can also connect to external AI APIs for enhanced capabilities. A skills framework with 50+ built-in skills and a community registry (ClaHub) provides extensible integrations for calendars, email, smart home systems, and more.

参数

onboard
Run the interactive setup wizard to configure messaging platforms and install the gateway daemon.
gateway
Start the Gateway server for persistent operation (default port: 18789).
gateway install
Install the Gateway as a system daemon (launchd on macOS, systemd on Linux).
gateway start
Start the installed Gateway daemon.
gateway stop
Stop the running Gateway daemon.
gateway restart
Restart the Gateway daemon.
agent --message _MESSAGE_
Send a natural language task or instruction to the AI agent.
config get _PATH_
Retrieve a configuration value.
config set _PATH_ _VALUE_
Set a configuration value.
skills
List and manage installed skills from the skill registry.
status
Display system health, connected services, and active sessions.
doctor
Run diagnostics to identify configuration or connectivity issues.
cron
Manage scheduled recurring tasks.
sessions
List active and past agent sessions.
--port _PORT_
Port number for the gateway (default: 18789).
--verbose
Enable verbose logging output.
--help
Display help information.
--version
Display version information.

FAQ

What is the openclaw command used for?

OpenClaw is a free, open-source, MIT-licensed autonomous AI agent that runs locally or on private servers. Written in TypeScript and installed via npm, it uses large language models to execute tasks autonomously through messaging platforms. Supported channels include WhatsApp, Telegram, Signal, Slack, Discord, Google Chat, iMessage, Microsoft Teams, Matrix, and WebChat, enabling voice and text-based interaction from any device. The agent operates through a Gateway architecture that provides persistent background operation. The Gateway listens on multiple ports for its control plane, messaging relay, and other services. Tasks are dispatched to the agent via messaging platforms or the CLI, and the agent can perform multi-step workflows, manage calendars, draft emails, send messages, and automate system commands. OpenClaw supports fully local operation using local LLM backends such as Ollama, allowing all reasoning and task execution to happen on-device without any data sent to external services. It can also connect to external AI APIs for enhanced capabilities. A skills framework with 50+ built-in skills and a community registry (ClaHub) provides extensible integrations for calendars, email, smart home systems, and more.

How do I run a basic openclaw example?

Run `openclaw onboard` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does onboard do in openclaw?

Run the interactive setup wizard to configure messaging platforms and install the gateway daemon.