乐于分享
好东西不私藏

OpenClaw 2026.5 新特性实测:文件传输、语音通话、插件化

OpenClaw 2026.5 新特性实测:文件传输、语音通话、插件化


一、文件传输:先配权限,再传文件

第一步:管理员开权限

编辑 gateway.yaml,添加节点授权

nano ~/.openclaw/gateway.yaml
nodes:     allowReadPaths:      - /var/log # 服务器日志         - /backup  # 备份目录     allowWritePaths:         - /tmp # 临时写入         - /home/pi/configs # 树莓派配置 
重启生效 openclaw gateway restart

第二步:实际传文件

场景1:手机截图归档

openclaw tools file_fetch \     --node "android-work" \     --path "/sdcard/Pictures/Screenshots" \     --output ~/Screenshots/$(date +%Y%m%d)

场景2:查看服务器日志

openclaw tools dir_list \     --node "prod-server-01" \     --path "/var/log/nginx"

场景3:批量下载整个目录

openclaw tools dir_fetch \     --node "nas-home" \     --path "/backup/documents/2026" \     --output ~/Downloads/nas-backup

场景4:下发配置文件

openclaw tools file_write \     --node "rpi-gateway" \     --path "/etc/openclaw/config.yaml" \     --file ./config.yaml

常见问题

报错:path not authorized

解决:检查 gateway.yaml 中 allowReadPaths/allowWritePaths

报错:node not connected

解决:先配对节点 openclaw nodes pair --id "android-work" 


二、Google Meet 语音通话:配完就能打电话

第一步:申请 API 密钥

1. Google Gemini API Key

访问 https://aistudio.google.com/app/apikey 

申请 export GOOGLE_API_KEY="your-gemini-api-key"

2. Twilio 账号

访问 https://console.twilio.com 

获取

export TWILIO_ACCOUNT_SID="ACxxxxxxxxxxxxxxxxxxxxxxxx" export TWILIO_AUTH_TOKEN="your-auth-token" export TWILIO_PHONE="+1234567890"  # 你的 Twilio 号码

第二步:配置 gateway.yaml

nano ~/.openclaw/gateway.yaml
talk:  voice:    provider: gemini    gemini:      apiKey${GOOGLE_API_KEY}  phone:    provider: twilio    twilio:      accountSid${TWILIO_ACCOUNT_SID}      authToken${TWILIO_AUTH_TOKEN}      fromNumber${TWILIO_PHONE}

第三步:测试通话

方式1:让 AI 拨入你的 Google Meet

openclaw tools voice_call \     --meet-url "https://meet.google.com/abc-defg-hij" \     --mode agent

方式2:直接打电话(需要配置 phone)

openclaw tools phone_call \     --to "+86xxxxxxxxxxx" \     --message "服务器告警:CPU 使用率超过 90%"

实际应用场景

场景:会议自动记录

1. 创建定时任务,会议开始前 5 分钟拨入

cron add --name "meeting-assistant" \     --schedule "0 9 * * 1-5" \     --command 'openclaw tools voice_call   --meet-url "$MEET_URL"   --mode agent'

2. 会议结束后,AI 自动生成纪要

输出位置:~/meetings/$(date +%Y%m%d-%H%M).md


三、插件管理

安装插件

查看可安装插件

openclaw plugins search discord

安装

openclaw plugins install discord

安装特定版本

openclaw plugins install discord@2.1.0

从beta通道安装

openclaw plugins install discord --channel beta

管理插件

列出已安装

openclaw plugins list

更新单个

openclaw plugins update discord 

更新全部

openclaw plugins update --all 

卸载

openclaw plugins uninstall discord 

修复损坏的插件

openclaw plugins repair discord 

遇到问题

插件启动失败

openclaw doctor --fix

查看详细日志

openclaw logs --plugin discord --tail 100

完全重置插件

openclaw plugins reset discord 


四、开启流式输出

开启配置

nano ~/.openclaw/gateway.yaml 
streaming:     mode: progress  # 选项:off / on / progress     showToolProgress: true     showCommandText: true 
openclaw gateway restart

实际效果对比

关闭时:

用户:查一下今天的天气[等待 5 秒...]AI:今天北京晴,25°C

开启后:

用户:查一下今天的天气[14:32:01] 调用 weather.search[14:32:02] 获取结果:北京,晴,25°C[14:32:02] 生成回复AI:今天北京晴,25°C

不同通道配置

channels:  discord:    streaming:      mode: progress  telegram:    streaming:      mode: on  slack:    streaming:      mode: progress      showToolProgress: false   # Slack 不显示工具细节  whatsapp:    streaming:      mode: off               # WhatsApp 关闭流式  matrix:    streaming:      mode: progress

五、Windows 部署:从安装到服务化

方式1:安装包

下载 https://github.com/openclaw/openclaw/releases

运行 openclaw-setup.exe

方式2:命令行

winget install OpenClaw

验证

openclaw --version

配置为 Windows 服务

安装服务

openclaw service install

启动

openclaw service start

查看状态

openclaw service status 

开机自启

openclaw service enable

 卸载服务

openclaw service uninstall 

防火墙配置放行端口

netsh advfirewall firewall add rule name="OpenClaw" dir=in action=allow protocol=tcp localport=18789 

检查端口占用

netstat -ano | findstr 18789

六、升级:一条命令搞定

1. 备份

cp ~/.openclaw/gateway.yaml  ~/.openclaw/gateway.yaml.bak.$(date +%Y%m%d)

2. 更新

openclaw update

3. 如果有 beta 功能需要

openclaw update --channel beta

4. 自动修复兼容性问题

openclaw doctor --fix

5. 重启

openclaw gateway restart

6. 验证版本

openclaw --version

7. 检查状态

openclaw status

升级失败回滚

1. 查看备份

ls ~/.openclaw/gateway.yaml.bak.*

2. 恢复配置

cp ~/.openclaw/gateway.yaml.bak.20260511 ~/.openclaw/gateway.yaml

3. 重装旧版本

openclaw update --version 2026.4.1