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

相关推荐
AI袋鼠帝10 小时前
终于找到一键做爆款AI短视频的办法了!OiiOii 2.0升级实测【保姆级教程】
人工智能·aigc
星纬智联技术15 小时前
AI搜索引擎引用逻辑的三个新变化:从相关性到可信度的结构性迁移
人工智能·aigc·geo
后端小肥肠1 天前
小红书笔记爆了 17 万后,我用 Obsidian + Skill 实现了“一句话选品”
人工智能·aigc·agent
刘棕霆1 天前
14—从 0 到 1 搭建 AI Skill 测评体系:四步落地路线图
aigc
气概1 天前
claude code+deepseek方案
aigc·ai编程·agi
92year1 天前
5月12日TanStack被投毒,160+个npm包沦陷——我用Bumblebee扫了一遍开发机,发现3个中招的
aigc
SEO_juper1 天前
B2B 工厂专属双引擎策略:SEO 承接采购词排名,GEO 抢占 AI 咨询问答
aigc·seo·跨境电商·外贸·geo·谷歌优化·gsc
Z-D-K2 天前
考验AI的“自我和意识“-AI对《红楼梦》后40回的改写(22)
人工智能·ai·aigc·agent·agi
Prowler_92562 天前
创新项目实训博客(十一):大模型智能标题生成与多级降维兜底策略
人工智能·flutter·aigc
sunneo2 天前
本周 AI 新动态精选(2026.06.08–06.14)
人工智能·aigc·ai编程·ai写作·ai-native