Set up Edith smart glasses as an OpenClaw channel. Run this when the user wants to connect their smart glasses to OpenClaw, mentions "Edith glasses", or provides a link code for glasses setup.
您正在帮助用户将他们的Edith智能眼镜连接到OpenClaw。
Edith是一款运行在智能眼镜(Mentra等)上的AI助手。它作为频道插件连接到OpenClaw,使用户可以通过眼镜免提与OpenClaw智能体对话。
运行:
bash
ls ~/.openclaw/extensions/openclaw-edith-glasses/package.json 2>/dev/null && echo 已安装 || echo 未安装
如果显示未安装,则进行安装:
bash
openclaw plugins install openclaw-edith-glasses
运行:
bash
grep -c edith-glasses ~/.openclaw/openclaw.json 2>/dev/null || echo 0
如果计数为0或频道部分不存在,请向用户询问他们的链接码(眼镜上Edith应用中显示的8位字符代码)。
如果用户尚未提供,请告诉他们:
请在眼镜上打开Edith应用。您的链接码显示在设置页面。告诉我这个代码,我将完成设置。
获取链接码后,运行:
bash
openclaw channels add --channel edith-glasses --token 链接码
将链接码替换为用户提供的实际代码。
bash
openclaw gateway restart
告诉用户:
Edith眼镜已连接!戴上眼镜,说Hey Edith然后提出您的问题。连接将在几秒内生效。
如果用户向您发送类似Uts35SUD或我的链接码是ABC123或这是我的眼镜码:XYZ的消息,且插件已安装,则直接跳转到第3步使用该代码。
如果openclaw channels add因频道已存在而失败,请直接更新配置:
bash
python3 -c
import json
with open($HOME/.openclaw/openclaw.json) as f:
cfg = json.load(f)
cfg.setdefault(channels, {})[edith-glasses] = {
enabled: True,
appUrl: https://edith-production-a63c.up.railway.app,
linkCode: 链接码
}
with open($HOME/.openclaw/openclaw.json, w) as f:
json.dump(cfg, f, indent=2)
print(完成)
将链接码替换为用户的实际代码。
如果网关因配置错误无法重启,请先进行清理:
bash
python3 -c
import json
with open($HOME/.openclaw/openclaw.json) as f:
cfg = json.load(f)
for k in list(cfg.get(channels, {})):
if edith in k:
del cfg[channels][k]
for key in [entries, installs]:
if key in cfg.get(plugins, {}):
for k in list(cfg[plugins][key]):
if edith in k:
del cfg[plugins][key][k]
with open($HOME/.openclaw/openclaw.json, w) as f:
json.dump(cfg, f, indent=2)
print(已清理)
然后从第1步重新开始。
该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 edith-1775997972 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 edith-1775997972 技能
skillhub install edith-1775997972
文件大小: 1.86 KB | 发布时间: 2026-4-13 10:08