在AIStudio星河社区配置OpenClaw小龙虾
很多人都在热捧小龙虾OpenClaw很多人都在使用小龙虾很多人被小龙虾拔掉了底裤.....所以小龙虾还是不能在自己的工作机器上安装最好是用一台云端机器万一出了安全问题损失能小一点。尝试在AIStudio星河社区配置OpenClaw小龙虾参考这个项目https://aistudio.baidu.com/projectdetail/10043604首先登录星河社区https://aistudio.baidu.com/新开一个项目运行一下安装OpenClaw小龙虾curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash 或者 bash install_nvm.sh source ~/.bashrc nvm install 22 nvm use 22 node --version # 2. 安装并初始化 OpenClaw npm install -g openclawlatest openclaw onboard --install-daemon openclaw setup如果npm慢可以设置加速镜像。如果爆内存可以换32G的但是免费的只有16G的所以...这是个问题。如果没法在免费16G环境下安装可以安装openclaw-cn试试安装openclaw-cnnpm install -g openclaw-cn --registryhttps://registry.npmmirror.com配置# 3. 基础与安全配置 openclaw config set gateway.mode local # 添加允许的域名与信任代理保障穿透后的 UI 访问 openclaw config set gateway.controlUi.allowedOrigins [你的域名] openclaw config set gateway.trustedProxies [127.0.0.1] # 禁用认证开发/测试环境下可选简化流程 openclaw config set gateway.auth.mode none # 4. 配置 Ernie 5.0 (文心一言) 接入点 openclaw config set models.providers.ernie-profile { baseUrl: https://aistudio.baidu.com/llm/lmapi/v3, apiKey: 你的_API_KEY, api: openai-completions, models: [ { id: ernie-5.0-thinking-preview, name: Ernie 5.0 Thinking } ] } openclaw config set agents.defaults.model.primary ernie-profile/ernie-5.0-thinking-preview # 5. 启动网关服务 (监听 18789 端口) openclaw gateway --port 18789 --verbose很遗憾我在星河社区的api额度没有了....所以没有调试换用免费模型PaddlePaddle/ERNIE-4.5-21B-A3B-Paddle 试试openclaw config set models.providers.ernie-profile { baseUrl: https://api-p9mak7fap5m7vd53.aistudio-app.com/v1, apiKey: 6cac673af748cec344-------------------, api: openai-completions, models: [ { id: default, name: default } ] }内网穿透可以使用FRP也可以使用Easytier等具体参见以前的文档。设备接入与授权列出当前所有的设备服务申请列表openclaw devices list批准特定设备 UUID 接入网关openclaw devices approve request下设备UUID正在实践中先发帖
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/2408549.html
如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!