← 返回案例库
已清洗

🚀 快速开始

来源: docs.openclaw.ai/start/getting-started | 抓取时间: 2026-03-29 | 清洗版本: v1

安装

使用 npm 全局安装 OpenClaw CLI:

npm install -g @openclaw/cli

初始化项目

创建一个新的 OpenClaw 项目:

openclaw init my-project
cd my-project

配置

编辑 openclaw.json 配置文件,添加你的 API 密钥:

{
  "providers": {
    "openai": {
      "apiKey": "your-api-key"
    }
  }
}

启动开发服务器

openclaw dev

访问 http://localhost:3000 查看你的 OpenClaw 应用。

下一步