openclaw 安装

官方文档资料

git官网:https://github.com/openclaw/openclaw/

官网文档:https://docs.openclaw.ai/zh-CN


终端代理

快速设置(7897端口)

我的代理使用的是 http://127.0.0.1:7897

# 开启代理
export http_proxy=http://127.0.0.1:7897
export https_proxy=http://127.0.0.1:7897

# 关闭代理
unset http_proxy https_proxy all_proxy

Git 代理

# 设置
git config --global http.proxy http://127.0.0.1:7897
git config --global https.proxy http://127.0.0.1:7897

# 取消
git config --global --unset http.proxy
git config --global --unset https.proxy

快捷命令(加到 ~/.zshrc)

alias proxy='export http_proxy=http://127.0.0.1:7897; export https_proxy=http://127.0.0.1:7897; echo "Proxy ON"'
alias unproxy='unset http_proxy https_proxy; echo "Proxy OFF"'
alias chkip='curl -s https://ip.sb'

测试命令

curl -I https://google.com    # 测试连通
curl -s https://ip.sb         # 查看出口IP
env | grep -i proxy           # 查看当前代理

常见坑:Git 默认不走终端代理,需单独设置或加 git config

安装 openclaw

快速安装(推荐)

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

常见的使用命令

入门指南

入门指南 https://docs.openclaw.ai/zh-CN/start/getting-started

#快速验证
openclaw status
openclaw health
openclaw security audit --deep


#运行新手引导
openclaw onboard --install-daemo
#快速检查:
openclaw doctor
#检查 Gateway 网关健康状态:openclaw status + openclaw health
#打开仪表板:
openclaw dashboard

更新openclaw

https://docs.openclaw.ai/zh-CN/install/updating

OpenClaw 发展迅速(尚未到”1.0”)。将更新视为发布基础设施:更新 → 运行检查 → 重启(或使用会重启的 openclaw update)→ 验证。

#推荐:重新运行网站安装程序(原地升级)
#首选的更新路径是重新运行网站上的安装程序。它会检测现有安装、原地升级,并在需要时运行 openclaw doctor。
curl -fsSL https://openclaw.ai/install.sh | bash

#如果你不想再次运行新手引导向导,添加 --no-onboard
curl -fsSL https://openclaw.ai/install.sh | bash --no-onboard

#对于源码安装,使用:
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --install-method git --no-onboard

卸载openclaw

https://docs.openclaw.ai/zh-CN/install/uninstall

openclaw uninstall
#Brave Search  创建账号后获取免费 API key(每月 2000 次查询)
https://api-dashboard.search.brave.com/app/keys
Logo

小龙虾开发者社区是 CSDN 旗下专注 OpenClaw 生态的官方阵地,聚焦技能开发、插件实践与部署教程,为开发者提供可直接落地的方案、工具与交流平台,助力高效构建与落地 AI 应用

更多推荐