配置Brave API key
openclaw configure --section web
重新引导配置
openclaw onboard
更新Openclaw
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard
解决Tui界面字体看不清(用clawtui打开tui)
echo 'alias clawtui="openclaw --no-color tui"' >> ~/.bashrc source ~/.bashrc
小内存机器安装
curl -fsSL https://openclaw.ai/install.sh | bash -s -- --no-onboard
之后进行(需要提前设置swap)
# 临时设置允许使用 2GB 内存 (2048MB),由 Swap 承载 export NODE_OPTIONS="--max-old-space-size=2048" # 再次尝试运行向导 openclaw onboard --install-daemon
配置QMD
wget https://light.you17.uk/wp-content/uploads/2026/02/setup-qmd-full-1.sh chmod +x setup-qmd-full-1.sh ./setup-qmd-full-1.sh
加一个 alias,让你手动操作时也自动指向正确的库
cat >> /root/.bashrc <<'EOF' # qmd:始终使用 OpenClaw agent 的 XDG 数据库 alias qmd='XDG_CONFIG_HOME="/root/.openclaw/agents/main/qmd/xdg-config" XDG_CACHE_HOME="/root/.openclaw/agents/main/qmd/xdg-cache" /root/.bun/bin/qmd' EOF source /root/.bashrc
更改定时触发编辑 /root/.openclaw/openclaw.json
"update": { "onBoot": true, "interval": "1h", "debounceMs": 15000 }
手动更新索引和向量化
1) 手动更新索引(推荐先跑这个) export XDG_CONFIG_HOME=/root/.openclaw/agents/main/qmd/xdg-config export XDG_CACHE_HOME=/root/.openclaw/agents/main/qmd/xdg-cache /root/.bun/bin/qmd update /root/.bun/bin/qmd status | sed -n '1,35p' 2) 手动向量化(embed,可能慢;先别加 -f) export XDG_CONFIG_HOME=/root/.openclaw/agents/main/qmd/xdg-config export XDG_CACHE_HOME=/root/.openclaw/agents/main/qmd/xdg-cache /root/.bun/bin/qmd embed /root/.bun/bin/qmd status | sed -n '1,35p' 如果想“最多跑 10 分钟,卡住就停” export XDG_CONFIG_HOME=/root/.openclaw/agents/main/qmd/xdg-config export XDG_CACHE_HOME=/root/.openclaw/agents/main/qmd/xdg-cache timeout 600 /root/.bun/bin/qmd embed /root/.bun/bin/qmd status | sed -n '1,35p'