> ## Documentation Index
> Fetch the complete documentation index at: https://labs.prompthon.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw 工作坊

> 安装 OpenClaw，准备账号，完成 onboarding，并保留常用命令参考。

<div className="not-prose my-4 rounded-md border border-gray-200 bg-gray-50 p-2 text-sm dark:border-gray-800 dark:bg-gray-900/40">
  <div className="mb-2 px-1 text-xs font-semibold uppercase tracking-wide text-gray-500 dark:text-gray-400">需要帮助？</div>

  <div className="flex flex-wrap gap-2">
    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://discord.gg/sDE2HhGTg4" target="_blank" rel="noreferrer">
      <Icon icon="discord" iconType="brands" size={14} />

      <span>在 Discord 提问</span>
    </a>

    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://github.com/Prompthon-IO/agent-systems-handbook/issues/new/choose" target="_blank" rel="noreferrer">
      <Icon icon="github" iconType="brands" size={14} />

      <span>提交 GitHub Issue</span>
    </a>

    <a className="inline-flex items-center gap-2 rounded-md border border-gray-200 bg-white px-3 py-1.5 font-medium text-gray-700 no-underline shadow-sm hover:border-gray-300 hover:bg-gray-50 dark:border-gray-800 dark:bg-gray-950/60 dark:text-gray-200 dark:hover:bg-gray-900" href="https://github.com/Prompthon-IO/agent-systems-handbook/blob/main/zh-Hans/SUPPORT.md" target="_blank" rel="noreferrer">
      <Icon icon="life-ring" size={14} />

      <span>支持指南</span>
    </a>
  </div>
</div>

OpenClaw 是 Prompthon Agentic Labs 的第一个工作坊章节。它是一条动手设置路线，覆盖 CLI 安装、账号准备，以及通过 Discord channel 启动智能体。

## 工作坊步骤

<CardGroup cols={2}>
  <Card title="Windows 设置" icon="windows" iconType="brands" href="/zh-Hans/workshops/openclaw/install-windows">
    准备 WSL2，安装 Node 22，并在 Ubuntu 中安装 Codex CLI。
  </Card>

  <Card title="Mac 设置" icon="apple" iconType="brands" href="/zh-Hans/workshops/openclaw/install-mac">
    安装 Node 22、安装 Codex，并设置 OpenClaw 默认模型。
  </Card>

  <Card title="账号与 Onboarding" icon="user-plus" href="/zh-Hans/workshops/openclaw/accounts-and-onboarding">
    创建 Discord bot，可选配置 Tavily search，安装 OpenClaw，并完成 onboarding。
  </Card>

  <Card title="命令参考" icon="terminal" href="/zh-Hans/workshops/openclaw/commands">
    汇总 gateway、dashboard、health check、config、update 和排错命令。
  </Card>
</CardGroup>

## 开始之前

* 使用你熟悉的终端。
* 不要把凭据放进截图或 git commit。
* 将 bot token 和 API key 保存在本地密码管理器或 secret store 中，不要写入本仓库。
* 如果某个命令在你的机器上不同，优先查看当前工具的帮助输出：`openclaw --help`、`codex --help`，或相关 provider 文档。
