Logo
Section 1 / 4

安装与设置

学习在 macOS 或 Windows 上安装 OpenClaw,并通过交互式入门向导配置 Gemini。

导入

安装与设置

学习在 macOS 或 Windows 上安装 OpenClaw,并通过交互式入门向导配置 Gemini。

...

代码示例

1node --version

代码示例

1curl -fsSL https://openclaw.ai/install.sh | bash

代码示例

1npm install -g openclaw@latest

代码示例

1wsl --install

代码示例

1sudo tee /etc/wsl.conf >/dev/null <<'EOF' 2[boot] 3systemd=true 4EOF

代码示例

1wsl --shutdown

代码示例

1systemctl --user status

代码示例

1curl -fsSL https://openclaw.ai/install.sh | bash

代码示例

1iwr -useb https://openclaw.ai/install.ps1 | iex
...
...
...
...
...

No configuration found for ID: 7a003dd067fcfb80748486fa858a63dde38a50098bcd700d97af215191b0b650

代码示例

1~/.openclaw/ 2├── openclaw.json # 主配置文件 3├── .env # 可选环境变量 4├── workspace/ 5│ ├── SOUL.md # 代理人格设定 6│ ├── AGENTS.md # 代理指令 7│ ├── MEMORY.md # 长期记忆 8│ └── skills/ # 自定义技能目录 9├── agents/ 10│ └── <agentId>/ 11│ ├── sessions/ # 对话记录(JSONL 格式) 12│ └── agent/ 13│ └── auth-profiles.json # API 密钥和凭证 14└── credentials/ 15 └── whatsapp/ 16 └── default/ # WhatsApp 会话凭证

代码示例

1~/Library/LaunchAgents/bot.molt.gateway.plist

表格

命令功能
openclaw health快速连接性检查
openclaw doctor完整诊断并自动修复
openclaw status网关与渠道状态
openclaw security audit安全配置报告
openclaw gateway restart重启后台服务
openclaw channels login添加或重新配置消息渠道
openclaw hooks list查看和管理自动化钩子
openclaw plugins list查看所有可用插件
openclaw configure交互式编辑配置

理解 OpenClaw

创建 OpenClaw Slack 应用