openclaw 安装
本文介绍了OpenClaw的安装和使用指南。主要内容包括: 终端代理设置方法(7897端口配置、Git代理设置和测试命令) OpenClaw的快速安装命令和验证方法 常见使用命令(状态检查、安全审计、仪表板等) 更新和卸载OpenClaw的操作指南 获取Brave Search API key的方法 文档提供了完整的安装流程和常用命令参考,适合开发者快速部署和使用OpenClaw工具。
·
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
更多推荐



所有评论(0)