在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 openclaw@latest
openclaw onboard --install-daemon
openclaw setup

如果npm慢,可以设置加速镜像。

如果爆内存,可以换32G的,但是免费的只有16G的,所以...这是个问题。

如果没法在免费16G环境下安装,可以安装openclaw-cn试试

安装openclaw-cn

复制代码
npm install -g openclaw-cn --registry=https://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

正在实践中,先发帖

相关推荐
飞哥数智坊2 小时前
一场 2050 大会,让身处二线城市的我,看清了未来社群的模样
人工智能
陈天伟教授2 小时前
GPT Image 2-城市海报
开发语言·人工智能·gpt·神经网络
子游i2 小时前
GPT-Image-2 图像生成能力各场景测试与案例
人工智能·gpt-image-2
光泽雨2 小时前
VM图像处理(图像增强锐化、对比度、Gamma校正、亮度校正)
图像处理·人工智能·计算机视觉
学习3人组2 小时前
AI驱动获客:从数据到转化,一套可落地的智能获客系统全解析
大数据·人工智能·机器学习
飞哥数智坊2 小时前
DeepSeek V4 终于来了,但我感觉 Flash 才是杀手锏
人工智能·deepseek
三块可乐两块冰3 小时前
机器学习三十六
人工智能·机器学习
德宏大魔王(AI自动回关)3 小时前
3分钟实战,用魔珐星云SDK构建你的可交互AI数字人
人工智能·交互·数字人·魔珐星云
lds走自己的路3 小时前
全局坐标转局部坐标推导
人工智能·算法·机器学习
陈天伟教授3 小时前
GPT Image 2-天府成都
人工智能·gpt·安全