360 Secure SkillHub
360 安全技能中心

Edith

核心功能是完成Edith智能眼镜与OpenClaw的连接配置,涵盖插件安装、通道配置、链接码绑定、网关重启等步骤,含故障处理方案。典型场景为用户提及Edith眼镜、要连接眼镜或提供链接码时触发。输入可为连接需求或链接码,输出操作指引、命令执行结果及配置确认,实现通过眼镜语音交互OpenClaw助手。

samdickson22
samdickson22
热度 41.53
最近更新 2026-05-11 17:37:03
分类:开发依赖:代码执行应用场景:DevOps / 自动化脚本

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add edith
Metadata
name
edith
description
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.
user-invocable
true

Setup Edith Glasses

You are helping the user connect their Edith smart glasses to OpenClaw.

What is Edith Glasses?

Edith is an AI assistant that runs on smart glasses (Mentra, etc). It connects to OpenClaw as a channel plugin, so the user can talk to their OpenClaw agent hands-free through their glasses.

Setup Flow

Step 1: Check if the plugin is already installed

Run:

ls ~/.openclaw/extensions/openclaw-edith-glasses/package.json 2>/dev/null && echo "INSTALLED" || echo "NOT_INSTALLED"

If NOT_INSTALLED, install it:

openclaw plugins install openclaw-edith-glasses

Step 2: Check if the channel is already configured

Run:

grep -c "edith-glasses" ~/.openclaw/openclaw.json 2>/dev/null || echo "0"

If the count is 0 or the channel section doesn't exist, ask the user for their link code (an 8-character code shown in the Edith app on their glasses).

If they haven't provided it yet, tell them:

Open the Edith app on your glasses. Your link code is displayed on the settings page. Tell me the code and I'll finish the setup.

Step 3: Add the channel with the link code

Once you have the link code, run:

openclaw channels add --channel edith-glasses --token LINK_CODE

Replace LINK_CODE with the actual code the user provided.

Step 4: Restart the gateway

openclaw gateway restart

Step 5: Confirm

Tell the user:

Edith glasses are connected! Put on your glasses and say "Hey Edith" followed by your question. The connection should be live within a few seconds.

If the user just provides a link code

If the user messages you something like "Uts35SUD" or "my link code is ABC123" or "here's my glasses code: XYZ", and the plugin is already installed, skip straight to Step 3 with that code.

Troubleshooting

If openclaw channels add fails because the channel already exists, update the config directly:

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': 'LINK_CODE'
}
with open('$HOME/.openclaw/openclaw.json', 'w') as f:
    json.dump(cfg, f, indent=2)
print('Done')
"

Replace LINK_CODE with the user's actual code.

If the gateway won't restart due to config errors, clean up first:

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('Cleaned')
"

Then start from Step 1 again.