openclaw本地服务器部署

背景

我有一台ubuntu服务器,我想部署openclaw体验一下,然后在我mac电脑进行访问。在ubuntu下安装很方便

arduino 复制代码
curl -fsSL https://openclaw.ai/install.sh | bash

然后参考damodev.csdn.net/697dff7b7c1... 做一下设置,主要是设置一下后续使用deepseek大模型。

vbnet 复制代码
openclaw config set 'models.providers.deepseek' --json '{
  "baseUrl": "https://api.deepseek.com/v1",
  "apiKey": "sk-xxxxx",
  "api": "openai-completions",
  "models": [
    { "id": "deepseek-chat", "name": "DeepSeek Chat" },
    { "id": "deepseek-reasoner", "name": "DeepSeek Reasoner" }
  ]
}'

#设置 models.mode 为 merge
openclaw config set models.mode merge


#设置默认模型(以deepseek-chat为例)
openclaw models set deepseek/deepseek-chat

但是启动后无法直接访问,比如http://{ubuntu ip}:18789/。好像是openclaw只允许本地机器访问

解决办法

mac上启动,做一个端口转发

kotlin 复制代码
ssh -N -L 18789:127.0.0.1:18789 xxx@10.151.179.187

访问提示unauthorized: gateway token missing (open the dashboard URL and paste the token in Control UI settings)

在ubuntu服务器的~/.openclaw/openclaw.json中找到token,然后访问就行了 http://127.0.0.1:18789/chat?session=main&token=3644b07faa7cb8a07eafa686d732e7b74

相关推荐
麦麦麦造2 小时前
OpenAI 放弃的Atlas浏览器,转生到 GPT 6 Astra上了
aigc·openai
却尘7 小时前
Agent Framework(3):看懂它到底在运行什么
aigc·ai编程
Dawson Zhu12 小时前
多Agent系统共享记忆架构:从存储范式到分布式共识的技术剖析
人工智能·语言模型·架构·aigc·agi
却尘13 小时前
Agent Framework(2):差旅助手是怎样跑完一次 `RunAsync` 的
aigc·ai编程
plainGeekDev14 小时前
软件工程术语库·前端·移动·AI·管理篇
aigc·ai编程·claude
算法大模型备案干货咪15 小时前
《把内容安全做成CI卡点:AIGC合规的工程化落地》
安全·ci/cd·aigc
“AI国潮设计-小江”15 小时前
《Python实战 | 用SDXL大模型生成“潮汕英歌舞”国潮IP头像,已申请外观专利,附Prompt思路!》
人工智能·python·prompt·aigc·scikit-learn
全栈弄潮儿16 小时前
我的 AI 编程日常习惯:如何真正提升效率
aigc·openai·ai编程
技灵AI16 小时前
Seedance 视频生成提示词怎么写?从镜头方法到 10 套可直接改的完整 Prompt
人工智能·prompt·aigc·音视频
Csvn17 小时前
第 15 章 规划 Planning
人工智能·aigc·agent