clawdbot mac安装实践

  1. 安装 nvm
    curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash
    重新打开终端,确认:
    nvm --version
  2. 使用 nvm 安装 Node.js(≥ 22)
    nvm install 22
    nvm use 22
    nvm alias default 22
    验证:
    node -v

v22.x.x

二、安装 Clawdbot CLI + Gateway

官方安装脚本(推荐)

curl -fsSL https://clawd.bot/install.sh | bash

验证:

clawdbot --version

三、启动并验证 Gateway

  1. 手动启动(验证用)
    clawdbot gateway --verbose
    另开一个终端:
    clawdbot status
    应看到:
    Gateway │ local · ws://127.0.0.1:18789 · reachable
    成功后,回到原终端按 Ctrl + C 停止。
    ###############
    DS配置
    vi ~/.zshrc
    export DEEPSEEK_API_KEY="sk-b01e460d76724d13affabff830edb856"

或创建 .env 文件

echo "DEEPSEEK_API_KEY=sk-b01e460d76724d13affabff830edb856" >> ~/.clawdbot/.env

source ~/.zshrc

###############

卸载 daemon

ls ~/Library/LaunchAgents | grep -i claw

launchctl unload -w ~/Library/LaunchAgents/

rm ~/Library/LaunchAgents/

卸载 CLI

npm uninstall -g clawdbot

删除配置

rm -rf ~/.clawdbot

cd ~

相关推荐
pe7er2 天前
macOS 应用无法打开(权限问题)解决方案
macos·mac
harmful_sheep5 天前
mac生效的终端查看
macos
iOS门童6 天前
macOS 应用"已损坏"无法打开?一文搞懂 Gatekeeper 与解决方案
macos
NPE~6 天前
[工具分享]Maccy —— 优雅的 macOS 剪贴板历史管理工具
macos·教程·工具·实用工具
差不多程序员6 天前
Mac安装OpenClaw-cn保姆级教程
macos
dzl843946 天前
mac 安装python
开发语言·python·macos
Bruce_Liuxiaowei6 天前
在 macOS 上通过 Docker 本地安装 OpenClaw 完整教程
macos·docker·容器·openclaw
阿捏利6 天前
详解Mach-O(十五)Mach-O __DATA_CONST
macos·ios·c/c++·mach-o
ShikiSuen6 天前
macOS 的 CpLk 中英切换卡顿的元凶在 InputMethodKit 本身
macos
xiayutian_c6 天前
如虎添翼-MacOS
macos