Debian中安装OpenClaw及接入iFlow 中的免费模型

Debian中安装OpenClaw及接入iFlow 中的免费模型

最近 OpenClaw 挺火的,网上各种玩法都有。我也想试试看,看看到底怎么样。为此还专门买了台 8H16G5M 的服务器,平时早餐连鸡蛋都舍不得吃,这次算是下血本了。

OpenClaw很火,但是又不止OpenClaw

项目 GitHub 语言 内存占用 启动时间 硬件成本 核心特点
OpenClaw openclaw/openclaw TypeScript >1GB >500s Mac Mini $599 功能最全面,20+通道支持
ZeroClaw zeroclaw-labs/zeroclaw Rust <5MB <10ms 任何硬件 $10 零开销,极致性能
PicoClaw sipeed/picoclaw Go <10MB <1s 任何Linux板卡 $10 AI自举,嵌入式友好
NanoClaw qwibitai/nanoclaw TypeScript >100MB >30s Linux SBC ~$50 容器隔离,安全简洁
IronClaw nearai/ironclaw Rust ~8.8MB二进制 快速 未明确 安全优先,多层防御
NanoBot HKUDS/nanobot Python >100MB >30s Linux SBC ~$50 研究友好,代码精简
EasyClaw gaoyangz77/easyclaw TypeScript 依赖OpenClaw 依赖OpenClaw 依赖OpenClaw 图形化界面,零配置

OpenClaw是这里面功能最全面的个人AI助手。所以,我还是去探索它。

我这里用的是Debian 6.12.43-1 (2025-08-27) x86_64,安装OpenClaw方式有很多种

方法 最适合 技能要求 自动化设置 可移植性
安装脚本 大多数用户,快速开始 初学者 ✅ 完整 ⭐⭐⭐
npm/pnpm 已有 Node 环境的开发者 中级 ⚠️ 手动 ⭐⭐⭐
从源代码构建 贡献者,自定义构建 高级 ❌ 无
Docker 隔离环境 中级 ⚠️ 部分 ⭐⭐
Podman Rootless 容器 中级 ⚠️ 部分 ⭐⭐
云平台 生产环境部署 中级 ✅ 平台特定 ⭐⭐⭐
Nix 可重现系统 高级 ✅ 声明式 ⭐⭐

这里我选用安装脚本pnpm这两种方式。先创建用户,

创建用户

useradd -s /bin/bash -m -d /home/openclaw openclaw

设置密码(可选,但建议设置)

passwd openclaw

允许 user session 开机持久化(关键)

loginctl enable-linger openclaw

必须用 su - 带横杠,获得完整登录 session

su - openclaw

安装脚本

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
openclaw@ecm-dbc4:~# curl -fsSL https://openclaw.ai/install.sh | bash

🦞 OpenClaw Installer
Claws out, commit in—let's ship something mildly responsible.

✓ Detected: linux

Install plan
OS: linux
Install method: npm
Requested version: latest

[1/3] Preparing environment
· Node.js not found, installing it now
· Installing Node.js via NodeSource
· Installing Linux build tools (make/g++/cmake/python3)
✓ Build tools installed
✓ Node.js v22 installed
· Active Node.js: v22.22.0 (/usr/bin/node)
· Active npm: 10.9.4 (/usr/bin/npm)

[2/3] Installing OpenClaw
· Git not found, installing it now
✓ Git installed
· Installing OpenClaw v2026.3.2
✓ OpenClaw npm package installed
✓ OpenClaw installed

[3/3] Finalizing setup

🦞 OpenClaw installed successfully (2026.3.2)!
Cozy. I've already read your calendar. We need to talk.

· Starting setup


🦞 OpenClaw 2026.3.2 (85377a2) — Your second brain, except this one actually remembers where you left things.

安装脚本,它在脚本里面写好了安装程序的能力,一个个的检测所需的环境,然后一个个的安装好所需的环境。

我比较喜欢自己安装。所以就自己安装了nvmnodejsGitpnpm

Nodejs安装

下载并安装 nvm:

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash

1
2
3
4
5
6
7
8
9
10
11
12
13
14
openclaw@ecm-dbc4:~$ curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 16631 100 16631 0 0 36934 0 --:--:-- --:--:-- --:--:-- 36875
=> Downloading nvm as script to '/home/openclaw/.nvm'

=> Appending nvm source string to /home/openclaw/.bashrc
=> Appending bash_completion source string to /home/openclaw/.bashrc
=> Close and reopen your terminal to start using nvm or run the following to use it now:

export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion

代替重启 shell

. “$HOME/.nvm/nvm.sh”

下载并安装 Node.js:

nvm install 24

1
2
3
4
5
6
7
8
9
10
openclaw@ecm-dbc4:~$ nvm install 24
Downloading and installing node v24.14.0...
Downloading https://nodejs.org/dist/v24.14.0/node-v24.14.0-linux-x64.tar.xz...
################################################################################################################################################################################# 100.0%
Computing checksum with sha256sum
Checksums matched!
manpath: can't set the locale; make sure $LC_* and $LANG are correct
Now using node v24.14.0 (npm v11.9.0)
Creating default alias: default -> 24 (-> v24.14.0)

验证 Node.js 版本:

node -v # Should print “v24.14.0”.

openclaw@ecm-dbc4:~$ node -v # Should print “v24.14.0”.
v24.14.0

下载并安装 pnpm:

corepack enable pnpm

1
2
3
4
5
6
openclaw@ecm-dbc4:~$ corepack enable pnpm
openclaw@ecm-dbc4:~$ pnpm -v
! Corepack is about to download https://registry.npmjs.org/pnpm/-/pnpm-10.30.3.tgz
? Do you want to continue? [Y/n] y

10.30.3

验证 pnpm 版本:

pnpm -v

安装完成之后,运行 pnpm setup这个命令会自动帮你完成所有配置:

1
2
3
4
5
6
7
8
9
10
11
12
13
openclaw@ecm-dbc4:~$ pnpm setup
Appended new lines to /home/openclaw/.bashrc

Next configuration changes were made:
export PNPM_HOME="/home/openclaw/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac

To start using pnpm, run:
source /home/openclaw/.bashrc

openclaw@ecm-dbc4:~$ source /home/openclaw/.bashrc
manpath: can’t set the locale; make sure $LC_* and $LANG are correct

如果输出中很多项显示 “Cannot set LC_* to default locale: No such file or directory” 或者直接是 POSIX,就说明系统缺少你当前环境变量所要求的 locale,缺少locale的en_DK.UTF-8配置, 那么就需要切换到root生成一个

1
2
3
4
5
6
7
root@ecm-dbc4:/home# echo "en_DK.UTF-8 UTF-8" >> /etc/locale.gen
root@ecm-dbc4:/home# locale-gen
Generating locales (this might take a while)...
en_US.UTF-8... done
en_DK.UTF-8... done
Generation complete.

再次配置

1
2
3
4
5
6
root@ecm-dbc4:/home# dpkg-reconfigure locales
Generating locales (this might take a while)...
en_DK.UTF-8... done
en_US.UTF-8... done
Generation complete.

在执行source ~/.bashrc就不会报错了

安装Git

系统包需要在 root 下装

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
root@ecm-dbc4:/home# apt install git -y
Installing:
git

Installing dependencies:
git-man liberror-perl

Suggested packages:
git-doc git-email git-gui gitk gitweb git-cvs git-mediawiki git-svn

Summary:
Upgrading: 0, Installing: 3, Removing: 0, Not Upgrading: 2
Download size: 11.1 MB
Space needed: 52.7 MB / 314 GB available

Get:1 https://mirrors.ctyun.cn/debian trixie/main amd64 liberror-perl all 0.17030-1 [26.9 kB]
Get:2 https://mirrors.ctyun.cn/debian trixie/main amd64 git-man all 1:2.47.3-0+deb13u1 [2,205 kB]
Get:3 https://mirrors.ctyun.cn/debian trixie/main amd64 git amd64 1:2.47.3-0+deb13u1 [8,862 kB]
Fetched 11.1 MB in 1s (9,807 kB/s)
Selecting previously unselected package liberror-perl.
(Reading database ... 52536 files and directories currently installed.)
Preparing to unpack .../liberror-perl_0.17030-1_all.deb ...
Unpacking liberror-perl (0.17030-1) ...
Selecting previously unselected package git-man.
Preparing to unpack .../git-man_1%3a2.47.3-0+deb13u1_all.deb ...
Unpacking git-man (1:2.47.3-0+deb13u1) ...
Selecting previously unselected package git.
Preparing to unpack .../git_1%3a2.47.3-0+deb13u1_amd64.deb ...
Unpacking git (1:2.47.3-0+deb13u1) ...
Setting up liberror-perl (0.17030-1) ...
Setting up git-man (1:2.47.3-0+deb13u1) ...
Setting up git (1:2.47.3-0+deb13u1) ...
Processing triggers for man-db (2.13.1-1) ...

装完再切回 openclaw 用户继续:

su - openclaw

现在都安装好了。

1
2
3
4
5
6
7
root@ecm-dbc4:/home# node -v
v24.14.0
root@ecm-dbc4:/home# pnpm -v
10.30.3
root@ecm-dbc4:/home# git -v
git version 2.47.3

现在来执行安装命令pnpm i -g openclaw

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
openclaw@ecm-dbc4:~$ pnpm i -g openclaw
Downloading openclaw@2026.3.2: 26.48 MB/26.48 MB, done
Downloading pdfjs-dist@5.5.207: 10.31 MB/10.31 MB, done
 WARN  Tarball download average speed 12 KiB/s (size 13 KiB) is below 50 KiB/s: https://registry.npmjs.org/debug/-/debug-4.4.3.tgz (GET)
Downloading koffi@2.15.1: 18.25 MB/18.25 MB, done
 WARN  Tarball download average speed 33 KiB/s (size 39 KiB) is below 50 KiB/s: https://registry.npmjs.org/rimraf/-/rimraf-5.0.10.tgz (GET)
Packages are cloned from the content-addressable store to the virtual store.
Content-addressable store is at: /home/openclaw/.local/share/pnpm/store/v10
Virtual store is at: .pnpm
 WARN  Tarball download average speed 46 KiB/s (size 77 KiB) is below 50 KiB/s: https://registry.npmjs.org/@grammyjs/types/-/types-3.25.0.tgz (GET)
 WARN  Tarball download average speed 48 KiB/s (size 242 KiB) is below 50 KiB/s: https://registry.npmjs.org/pino/-/pino-9.14.0.tgz (GET)
 WARN  Tarball download average speed 28 KiB/s (size 31 KiB) is below 50 KiB/s: https://registry.npmjs.org/@napi-rs/canvas/-/canvas-0.1.95.tgz (GET)
 WARN  5 other warnings
Downloading @img/sharp-libvips-linux-x64@1.2.4: 7.53 MB/7.53 MB, done
Downloading @node-llama-cpp/linux-x64@3.16.2: 7.42 MB/7.42 MB, done
Downloading @napi-rs/canvas-linux-x64-gnu@0.1.95: 13.94 MB/13.94 MB, done
 WARN  9 deprecated subdependencies found: are-we-there-yet@2.0.0, gauge@3.0.2, glob@10.5.0, glob@7.2.3, inflight@1.0.6, node-domexception@1.0.0, npmlog@5.0.1, rimraf@3.0.2, tar@6.2.1
Packages: +662
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Downloading node-llama-cpp@3.16.2: 28.41 MB/28.41 MB, done
Downloading @node-llama-cpp/linux-x64-vulkan@3.16.2: 24.10 MB/24.10 MB, done
Downloading @node-llama-cpp/linux-x64-cuda@3.16.2: 124.72 MB/124.72 MB, done
Downloading @node-llama-cpp/linux-x64-cuda-ext@3.16.2: 194.22 MB/194.22 MB, done
Progress: resolved 743, reused 0, downloaded 666, added 662, done
 WARN  Issues with peer dependencies found
.
└─┬ openclaw 2026.3.2
└─┬ @buape/carbon 0.0.0-beta-20260216184201
└─┬ @discordjs/voice 0.19.0
└─┬ prism-media 1.3.5
└── ✕ unmet peer opusscript@^0.0.8: found 0.1.1

/home/openclaw/.local/share/pnpm/global/5:
+ openclaw 2026.3.2

╭ Warning ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ │
│ Ignored build scripts: @discordjs/opus@0.10.0, @whiskeysockets/baileys@7.0.0-rc.9, koffi@2.15.1, node-llama-cpp@3.16.2, protobufjs@6.8.8, protobufjs@7.5.4, sharp@0.34.5. │
│ Run "pnpm approve-builds -g" to pick which dependencies should be allowed to run scripts. │
│ │
╰───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
Done in 1m 32.1s using pnpm v10.30.3

alt text

现在OpenClaw已经安装完成了。来验证一下openclaw --version

1
2
3
openclaw@ecm-dbc4:~$ openclaw --version
2026.3.2

运行安装向导

1
2
3
openclaw onboard
# 或执行
openclaw onboard --install-daemon

alt text

选择Yes

然后Onboarding mode选择QuickStart

1
2
3
4
◆  Onboarding mode
│ ● QuickStart (Configure details later via openclaw configure.)
│ ○ Manual

选择模型的时候,就根据自己的情况来选择,这里我选Custom Provider

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
◆  Model/auth provider
│ ○ OpenAI
│ ○ Anthropic
│ ○ Chutes
│ ○ vLLM
│ ○ MiniMax
│ ○ Moonshot AI (Kimi K2.5)
│ ○ Google
│ ○ xAI (Grok)
│ ○ Mistral AI
│ ○ Volcano Engine
│ ○ BytePlus
│ ○ OpenRouter
│ ○ Kilo Gateway
│ ○ Qwen
│ ○ Z.AI
│ ○ Qianfan
│ ○ Copilot
│ ○ Vercel AI Gateway
│ ○ OpenCode Zen
│ ○ Xiaomi
│ ○ Synthetic
│ ○ Together AI
│ ○ Hugging Face
│ ○ Venice AI
│ ○ LiteLLM
│ ○ Cloudflare AI Gateway
│ ● Custom Provider (Any OpenAI or Anthropic compatible endpoint)
│ ○ Skip for now


alt text

API Base URL填https://apis.iflow.cn/v1

alt text

Endpoint compatibility选OpenAI-compatible,
Model ID自己选择,我用qwen3-coder-plus

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26


◇ Model/auth provider
│ Custom Provider

◇ API Base URL
│ https://apis.iflow.cn/v1

◇ How do you want to provide this API key?
│ Paste API key now

◇ API Key (leave blank if not required)
│ sk-b2c93726332e8ebb0ac88d4e45c9f068

◇ Endpoint compatibility
│ OpenAI-compatible

◇ Model ID
│ qwen3-coder-plus

◇ Verification successful.

◆ Endpoint ID
│ custom-apis-iflow-cn█


iFlow 免费模型地址https://platform.iflow.cn/models.有需要的,可以去看看。
alt text

alt text

在选择IM的时候,可以先跳过

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

◆ Select channel (QuickStart)
│ ○ Telegram (Bot API)
│ ○ WhatsApp (QR link)
│ ○ Discord (Bot API)
│ ○ IRC (Server + Nick)
│ ○ Google Chat (Chat API)
│ ○ Slack (Socket Mode)
│ ○ Signal (signal-cli)
│ ○ iMessage (imsg)
│ ○ Feishu/Lark (飞书)
│ ○ Nostr (NIP-04 DMs)
│ ○ Microsoft Teams (Bot Framework)
│ ○ Mattermost (plugin)
│ ○ Nextcloud Talk (self-hosted)
│ ○ Matrix (plugin)
│ ○ BlueBubbles (macOS app)
│ ○ LINE (Messaging API)
│ ○ Zalo (Bot API)
│ ○ Zalo (Personal Account)
│ ○ Synology Chat (Webhook)
│ ○ Tlon (Urbit)
│ ● Skip for now (You can add channels later via `openclaw channels add`)


alt text
选择Skip for now
其它的就直接默认回车,没有的就Skip for now

1
2
3
4
5
6
7
◆  Enable hooks?
│ ◻ Skip for now
│ ◻ 🚀 boot-md
│ ◻ 📎 bootstrap-extra-files
│ ◻ 📝 command-logger
│ ◼ 💾 session-memory (Save session context to memory when /new or /reset command is issued)

配置完之后,会写到openclaw.json这个配置文件中

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
Config overwrite: /home/openclaw/.openclaw/openclaw.json (sha256 0b8605a0ecc422e42495b918fd5c45a9198536a4bb11b12bac2efab879e246d1 -> bcfe34fbc45eb2678e32cf1a8ff9ae2aa345404ab90a05208076328fb69f797d, backup=/home/openclaw/.openclaw/openclaw.json.bak)

◇ Systemd ───────────────────────────────────────────────────────────────────────────────╮
│ │
│ Systemd user services are unavailable. Skipping lingering checks and service install. │
│ │
├─────────────────────────────────────────────────────────────────────────────────────────╯

◇ Gateway service ─────────────────────────────────────────────────────────────────────╮
│ │
│ Systemd user services are unavailable; skipping service install. Use your container │
│ supervisor or `docker compose up -d`. │
│ │
├───────────────────────────────────────────────────────────────────────────────────────╯


Health check failed: gateway closed (1006 abnormal closure (no close frame)): no close reason
Gateway target: ws://127.0.0.1:18789
Source: local loopback
Config: /home/openclaw/.openclaw/openclaw.json
Bind: loopback

◇ Health check help ────────────────────────────────╮
│ │
│ Docs: │
│ https://docs.openclaw.ai/gateway/health │
│ https://docs.openclaw.ai/gateway/troubleshooting │
│ │
├────────────────────────────────────────────────────╯

◇ Optional apps ────────────────────────╮
│ │
│ Add nodes for extra features: │
│ - macOS app (system + notifications) │
│ - iOS app (camera/canvas) │
│ - Android app (camera/canvas) │
│ │
├────────────────────────────────────────╯

◇ Control UI ───────────────────────────────────────────────────────────────────────────────╮
│ │
│ Web UI: http://127.0.0.1:18789/ │
│ Web UI (with token): │
│ http://127.0.0.1:18789/#token=108ebadd2a57cebce0ef7d02d87a8be99d97418725bdfd97 │
│ Gateway WS: ws://127.0.0.1:18789 │
│ Gateway: not detected (gateway closed (1006 abnormal closure (no close frame)): no close │
│ reason) │
│ Docs: https://docs.openclaw.ai/web/control-ui │
│ │
├────────────────────────────────────────────────────────────────────────────────────────────╯

◇ Workspace backup ────────────────────────────────────────╮
│ │
│ Back up your agent workspace. │
│ Docs: https://docs.openclaw.ai/concepts/agent-workspace │
│ │
├───────────────────────────────────────────────────────────╯

◇ Security ──────────────────────────────────────────────────────╮
│ │
│ Running agents on your computer is risky — harden your setup: │
│ https://docs.openclaw.ai/security │
│ │
├─────────────────────────────────────────────────────────────────╯

◇ Shell completion ────────────────────────────────────────────────────────╮
│ │
│ Shell completion installed. Restart your shell or run: source ~/.bashrc │
│ │
├───────────────────────────────────────────────────────────────────────────╯

◇ Dashboard ready ────────────────────────────────────────────────────────────────╮
│ │
│ Dashboard link (with token): │
│ http://127.0.0.1:18789/#token=108ebadd2a57cebce0ef7d02d87a8be99d97418725bdfd97 │
│ Copy/paste this URL in a browser on this machine to control OpenClaw. │
│ No GUI detected. Open from your computer: │
│ ssh -N -L 18789:127.0.0.1:18789 openclaw@<host> │
│ Then open: │
│ http://localhost:18789/ │
│ http://localhost:18789/#token=108ebadd2a57cebce0ef7d02d87a8be99d97418725bdfd97 │
│ Docs: │
│ https://docs.openclaw.ai/gateway/remote │
│ https://docs.openclaw.ai/web/control-ui │
│ │
├──────────────────────────────────────────────────────────────────────────────────╯

◇ Web search (optional) ─────────────────────────────────────────────────────────────────╮
│ │
│ If you want your agent to be able to search the web, you’ll need an API key. │
│ │
│ OpenClaw uses Brave Search for the `web_search` tool. Without a Brave Search API key, │
│ web search won’t work. │
│ │
│ Set it up interactively: │
│ - Run: openclaw configure --section web │
│ - Enable web_search and paste your Brave Search API key │
│ │
│ Alternative: set BRAVE_API_KEY in the Gateway environment (no config changes). │
│ Docs: https://docs.openclaw.ai/tools/web │
│ │
├─────────────────────────────────────────────────────────────────────────────────────────╯

◇ What now ─────────────────────────────────────────────────────────────╮
│ │
│ What now: https://openclaw.ai/showcase ("What People Are Building"). │
│ │
├────────────────────────────────────────────────────────────────────────╯

└ Onboarding complete. Use the dashboard link above to control OpenClaw.


此时,服务是安装失败的,运行服务会提示

1
2
ailed to connect to user scope bus via local transport: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)

那么我们需要设置这两个环境变量

1
2
echo 'export XDG_RUNTIME_DIR=/run/user/$(id -u)' >> ~/.bashrc
echo 'export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$(id -u)/bus' >> ~/.bashrc

然后source ~/.bashrc让配置生效,这时候服务是没按照好的

1
2
openclaw@ecm-dbc4:~$ systemctl --user start openclaw-gateway.service
Failed to start openclaw-gateway.service: Unit openclaw-gateway.service not found.

现在来执行一下openclaw doctor --fix

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
openclaw@ecm-dbc4:~$ openclaw doctor --fix

🦞 OpenClaw 2026.3.2 (85377a2) — Finally, a use for that always-on Mac Mini under your desk.

▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
██░▄▄▄░██░▄▄░██░▄▄▄██░▀██░██░▄▄▀██░████░▄▄▀██░███░██
██░███░██░▀▀░██░▄▄▄██░█░█░██░█████░████░▀▀░██░█░█░██
██░▀▀▀░██░█████░▀▀▀██░██▄░██░▀▀▄██░▀▀░█░██░██▄▀▄▀▄██
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
🦞 OPENCLAW 🦞

┌ OpenClaw doctor

◇ State integrity ───────────────────────────────────────────────────────────────╮
│ │
│ - OAuth dir not present (~/.openclaw/credentials). Skipping create because no │
│ WhatsApp/pairing channel config is active. │
│ │
├─────────────────────────────────────────────────────────────────────────────────╯

◇ Security ─────────────────────────────────╮
│ │
│ - No channel security warnings detected. │
│ - Run: openclaw security audit --deep │
│ │
├────────────────────────────────────────────╯

◇ Skills status ────────────╮
│ │
│ Eligible: 3 │
│ Missing requirements: 48 │
│ Blocked by allowlist: 0 │
│ │
├────────────────────────────╯

◇ Plugins ──────╮
│ │
│ Loaded: 4 │
│ Disabled: 34 │
│ Errors: 0 │
│ │
├────────────────╯



◇ Gateway ──────────────╮
│ │
│ Gateway not running. │
│ │
├────────────────────────╯

◇ Gateway connection ─────────────────────────────╮
│ │
│ Gateway target: ws://127.0.0.1:18789 │
│ Source: local loopback │
│ Config: /home/openclaw/.openclaw/openclaw.json │
│ Bind: loopback │
│ │
├──────────────────────────────────────────────────╯

◇ Memory search ───────────────────────────────────────────────────────────────────────────╮
│ │
│ Memory search is enabled but no embedding provider is configured. │
│ Semantic recall will not work without an embedding provider. │
│ │
│ │
│ Fix (pick one): │
│ - Set OPENAI_API_KEY, GEMINI_API_KEY, VOYAGE_API_KEY, or MISTRAL_API_KEY in your │
│ environment │
│ - Configure credentials: openclaw configure --section model │
│ - For local embeddings: configure agents.defaults.memorySearch.provider and local model │
│ path │
│ - To disable: openclaw config set agents.defaults.memorySearch.enabled false │
│ │
│ Verify: openclaw memory status --deep │
│ │
├───────────────────────────────────────────────────────────────────────────────────────────╯

◇ Gateway ────────────────────────╮
│ │
│ Gateway service not installed. │
│ │
├──────────────────────────────────╯

Installed systemd service: /home/openclaw/.config/systemd/user/openclaw-gateway.service

└ Doctor complete.

OpenClaw Doctor已经帮我们修复了,现在,systemctl --user start openclaw-gateway.service就能启动了。

因为,我按照在服务器上,OpenClaw默认监听127.0.0.1:18789,外网是访问不到的。要想让外网访问,要么用Nginx转发一下,要么就是修改OpenClawbind模式,把lookup改为lan,然后重启一下服务即可systemctl --user restart openclaw-gateway.service..

这时候打开界面,还有一个问题。

1
2
origin not allowed (open the Control UI from the gateway host or allow it in gateway.controlUi.allowedOrigins)

这个需求,也要修改一下配置

要想让外网临时访问,需要修改

1
2
3
4
5
6
7
8
9
10
11
12
13
14
"gateway": {
"port": 18789,
"mode": "local",
"bind": "lan",
"controlUi": {
"dangerouslyDisableDeviceAuth":true,
"allowedOrigins": [
"http://外网IP:18789",
"http://localhost:18789",
"http://127.0.0.1:18789"
]
},

}

以上配置,切勿在外网操作。

然后重启systemctl --user start openclaw-gateway.service.

alt text
alt text

今天先到这里,后面,我再继续配置Channels,我可以接入到飞书中,还有其他大佬做的Channel,如:
钉钉 https://github.com/soimy/openclaw-channel-dingtalk
QQ Bot https://github.com/sliverp/qqbot
飞书,钉钉,QQ,企业微信,微信 https://github.com/BytePioneer-AI/openclaw-china

Debian中安装OpenClaw及接入iFlow 中的免费模型

https://blogs.52fx.biz/posts/4248393331.html

作者

eyiadmin

发布于

2026-03-03

更新于

2026-03-05

许可协议

评论