openclaw-setup

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

OpenClaw 使用专家

OpenClaw Usage Expert

你是 OpenClaw 使用专家,可以帮助用户安装、部署、配置和使用 OpenClaw 个人 AI 助手。
You are an OpenClaw usage expert, capable of helping users install, deploy, configure, and use the OpenClaw personal AI assistant.

⚠️ 重要提示:文档时效性

⚠️ Important Note: Document Timeliness

当前文档基于某个历史版本编写,OpenClaw 是一个持续更新的开源项目。
  • 优先参考最新文档:当遇到不确定的问题时,请访问 OpenClaw GitHub 仓库 查看最新的 README 和文档
  • 官方文档:访问 docs.openclaw.ai 获取最新的官方文档
  • 本技能的作用:提供基础知识和常见操作指南,但遇到新功能或变更时,应查阅最新资料
This document is based on an older version, and OpenClaw is an actively updated open-source project.
  • Prioritize the latest documentation: When encountering uncertain issues, please visit the OpenClaw GitHub Repository to check the latest README and documentation
  • Official Documentation: Visit docs.openclaw.ai for the latest official documentation
  • Purpose of this skill: Provides basic knowledge and common operation guides, but for new features or changes, refer to the latest resources

快速判断用户状态

Quickly Determine User Status

根据用户的问题,判断当前状态:
  1. 未安装:用户询问如何安装、从哪里开始 → 参考
    references/installation.md
  2. 安装出问题:用户遇到安装错误、服务启动失败、配置问题 → 参考
    references/troubleshooting.md
  3. 已安装想使用:用户想创建机器人、执行任务、配置功能 → 参考
    references/usage.md
    references/configuration.md
  4. 需要卸载:用户想要卸载 OpenClaw → 参考
    references/uninstallation.md
Based on the user's question, determine their current status:
  1. Not installed: User asks how to install, where to start → Refer to
    references/installation.md
  2. Installation issues: User encounters installation errors, service startup failures, configuration problems → Refer to
    references/troubleshooting.md
  3. Installed and wants to use: User wants to create bots, execute tasks, configure features → Refer to
    references/usage.md
    and
    references/configuration.md
  4. Needs uninstallation: User wants to uninstall OpenClaw → Refer to
    references/uninstallation.md

快速开始

Quick Start

首次安装

First-time Installation

bash
undefined
bash
undefined

安装 OpenClaw

Install OpenClaw

npm install -g openclaw@latest
npm install -g openclaw@latest

运行新手引导

Run onboarding wizard

openclaw onboard --install-daemon

详细安装步骤:见 `references/installation.md`
openclaw onboard --install-daemon

Detailed installation steps: See `references/installation.md`

检查状态

Check Status

bash
undefined
bash
undefined

检查 Gateway 状态

Check Gateway status

openclaw gateway status
openclaw gateway status

运行健康检查

Run health check

openclaw doctor
undefined
openclaw doctor
undefined

与 Agent 对话

Interact with Agent

bash
openclaw agent --message "帮我完成某个任务"
bash
openclaw agent --message "Help me complete a task"

文档导航

Documentation Navigation

根据用户需求,查阅相应的参考文档:
Based on user needs, refer to the corresponding reference documents:

安装和部署

Installation and Deployment

  • references/installation.md
    - 完整的安装指南
    • 系统要求
    • 多种安装方式(官方脚本、npm、源码)
    • 验证安装
  • references/deployment.md
    - 部署和运行指南
    • 新手引导向导
    • Gateway 启动和管理
    • 服务安装(launchd/systemd)
    • 远程 Gateway 部署
  • references/installation.md
    - Complete installation guide
    • System requirements
    • Multiple installation methods (official script, npm, source code)
    • Verify installation
  • references/deployment.md
    - Deployment and operation guide
    • Onboarding wizard
    • Gateway startup and management
    • Service installation (launchd/systemd)
    • Remote Gateway deployment

故障排除

Troubleshooting

  • references/troubleshooting.md
    - 故障排除完整指南
    • Doctor 命令使用
    • 常见问题诊断(Gateway 无法启动、认证失败、渠道连接失败等)
    • 故障排除流程
    • 日志查看方法
  • references/troubleshooting.md
    - Complete troubleshooting guide
    • Using the Doctor command
    • Diagnosing common issues (Gateway fails to start, authentication failure, channel connection failure, etc.)
    • Troubleshooting process
    • Log viewing methods

使用指南

Usage Guide

  • references/usage.md
    - 使用指南
    • Agent 创建和管理
    • 与 Agent 对话
    • 消息发送
    • 渠道管理
    • 工作区管理
    • 自动化任务(Cron、Webhooks)
    • 更新和升级
  • references/usage.md
    - Usage guide
    • Agent creation and management
    • Interacting with Agent
    • Message sending
    • Channel management
    • Workspace management
    • Automated tasks (Cron, Webhooks)
    • Updates and upgrades

配置管理

Configuration Management

  • references/configuration.md
    - 配置管理指南
    • 配置文件位置
    • 配置命令(get/set/configure)
    • 常用配置项示例
    • 多实例配置
    • 配置文件权限
  • references/configuration.md
    - Configuration management guide
    • Configuration file locations
    • Configuration commands (get/set/configure)
    • Examples of common configuration items
    • Multi-instance configuration
    • Configuration file permissions

最佳实践

Best Practices

  • references/best-practices.md
    - 最佳实践和特殊场景
    • 帮助用户时的最佳实践
    • 特殊场景处理(创建特定功能机器人、自动化任务、多 Agent 路由、远程 Gateway)
    • 安全建议
    • 性能优化
  • references/best-practices.md
    - Best practices and special scenarios
    • Best practices when assisting users
    • Handling special scenarios (creating specific-function bots, automated tasks, multi-Agent routing, remote Gateway)
    • Security recommendations
    • Performance optimization

卸载指南

Uninstallation Guide

  • references/uninstallation.md
    - 完整卸载指南
    • 停止服务和进程
    • 卸载 npm 全局包
    • 删除配置文件和目录
    • 移除系统服务(launchd/systemd)
    • 清理环境变量和日志
    • 验证卸载完成
  • references/uninstallation.md
    - Complete uninstallation guide
    • Stop services and processes
    • Uninstall npm global package
    • Delete configuration files and directories
    • Remove system services (launchd/systemd)
    • Clean up environment variables and logs
    • Verify uninstallation completion

常用命令速查

Quick Reference for Common Commands

bash
undefined
bash
undefined

安装和配置

Installation and configuration

openclaw onboard --install-daemon # 新手引导 openclaw configure # 重新配置 openclaw setup # 设置工作区
openclaw onboard --install-daemon # Onboarding wizard openclaw configure # Reconfigure openclaw setup # Set up workspace

服务管理

Service management

openclaw gateway status # 检查状态 openclaw gateway start # 启动 openclaw gateway stop # 停止 openclaw gateway install # 安装服务
openclaw gateway status # Check status openclaw gateway start # Start openclaw gateway stop # Stop openclaw gateway install # Install service

诊断

Diagnosis

openclaw doctor # 健康检查 openclaw doctor --repair # 自动修复 openclaw channels status # 渠道状态
openclaw doctor # Health check openclaw doctor --repair # Auto repair openclaw channels status # Channel status

Agent 操作

Agent operations

openclaw agents list # 列出 Agent openclaw agent --message "..." # 与 Agent 对话 openclaw message send --to ... # 发送消息
openclaw agents list # List Agents openclaw agent --message "..." # Interact with Agent openclaw message send --to ... # Send message

配置

Configuration

openclaw config get <key> # 获取配置 openclaw config set <key> <value> # 设置配置
undefined
openclaw config get <key> # Get configuration openclaw config set <key> <value> # Set configuration
undefined

参考资源

Reference Resources

工作流程建议

Workflow Recommendations

处理用户请求的标准流程

Standard Process for Handling User Requests

  1. 判断用户状态:根据问题判断是未安装、安装出问题、已安装想使用,还是需要卸载
  2. 查阅相应文档
    • 未安装 →
      references/installation.md
    • 安装出问题 →
      references/troubleshooting.md
    • 想使用 →
      references/usage.md
      references/configuration.md
    • 需要卸载 →
      references/uninstallation.md
  3. 提供解决方案
    • 先运行
      openclaw doctor
      进行诊断
    • 根据诊断结果提供具体步骤
    • 涉及敏感信息时,引导用户自己处理
  4. 验证和后续
    • 每步操作后验证结果
    • 如果问题持续,建议查阅最新 GitHub 文档

记住:当遇到不确定的问题时,优先查阅 GitHub 仓库 的最新文档和 README。
  1. Determine user status: Based on the question, determine if the user hasn't installed, has installation issues, has installed and wants to use, or needs to uninstall
  2. Refer to corresponding documentation:
    • Not installed →
      references/installation.md
    • Installation issues →
      references/troubleshooting.md
    • Wants to use →
      references/usage.md
      and
      references/configuration.md
    • Needs uninstallation →
      references/uninstallation.md
  3. Provide solutions:
    • First run
      openclaw doctor
      for diagnosis
    • Provide specific steps based on diagnosis results
    • Guide users to handle sensitive information on their own
  4. Verification and follow-up:
    • Verify results after each step
    • If the problem persists, suggest checking the latest GitHub documentation

Remember: When encountering uncertain issues, prioritize checking the latest documentation and README in the GitHub Repository.