TopRank Skills

Home / Claw Skills / Bot / even-g2-bridge
Official OpenClaw rules 56%

even-g2-bridge

Connect Even Realities G2 smart glasses to OpenClaw via Cloudflare Worker. Deploys a bridge that routes G2 voice commands to your OpenClaw Gateway — same agent, same memory, same tools, just voice instead of typing. Supports short conversations (direct reply on glasses), long tasks (background processing with Telegram delivery), and image generation (DALL-E → Telegram). Use when: setting up G2 glasses with OpenClaw, deploying the G2 bridge worker, or troubleshooting G2 ↔ OpenClaw connectivity.

Stars

0

Installs

0

Status

ACTIVE

Visibility

PUBLIC

安装方式

直接复制以下提示词,发送给你的 AI 助手即可完成安装。

请先检查是否已安装 SkillHub 商店,若未安装,请根据 https://skillhub-1388575217.cos.ap-guangzhou.myqcloud.com/install/skillhub.md 安装 SkillHub 商店,然后安装 even-g2-bridge 技能。 若已安装,则直接安装 even-g2-bridge 技能。

Overview

Skill Key
daaab/even-g2-bridge
Author
daaab
Source Repo
openclaw/skills
Version
-
Source Path
skills/daaab/even-g2-bridge
Latest Commit SHA
7885800f17f1e1b71b64396ab77bb468a9d7c378

Extracted Content

SKILL.md excerpt

# Even Realities G2 × OpenClaw Bridge

Deploy a Cloudflare Worker that connects Even Realities G2 smart glasses to your OpenClaw Gateway.

## What It Does

```
G2 Glasses → (voice→text) → CF Worker → OpenClaw Gateway → Full Agent
                                ↓                              ↓
                          G2 display (text)            Telegram (rich content)
```

- **Short tasks** (chat, questions): Gateway responds → displayed on G2
- **Long tasks** (write code, articles): G2 shows "Working on it..." → result sent to Telegram
- **Image generation**: DALL-E generates → sent to Telegram (G2 can't show images)
- **Fallback**: If Gateway is down, falls back to direct Claude API

## Prerequisites

1. Even Realities G2 glasses with Even app (v0.0.7+ with "Add Agent" support)
2. OpenClaw Gateway with HTTP API enabled
3. Cloudflare account (free plan works)
4. Anthropic API key (fallback)
5. Optional: OpenAI API key (image gen), Telegram bot token (rich content delivery)

## Setup

### 1. Enable OpenClaw Gateway HTTP API

On your OpenClaw host, enable the chat completions endpoint:

```bash
openclaw config set gateway.http.endpoints.chatCompletions.enabled true
openclaw gateway restart
```

Verify:
```bash
curl -X POST https://YOUR_GATEWAY_URL/v1/chat/completions \
  -H "Authorization: Bearer YOUR_GATEWAY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model":"openclaw","messages":[{"role":"user","content":"hi"}]}'
```

### 2. Deploy Cloudflare Worker

Copy `scripts/worker.js` to your project, then deploy:

```bash
# Install wrangler
npm install -g wrangler

# Login to Cloudflare
wrangler login

# Deploy
wrangler deploy
```

Or use the Cloudflare Dashboard: Workers & Pages → Create → Upload `worker.js`.

### 3. Set Secrets

```bash
# Required
wrangler secret put GATEWAY_URL      # Your OpenClaw Gateway URL
wrangler secret put GATEWAY_TOKEN    # Your Gateway auth token
wrangler secret put G2_TOKEN         # Token for G2 glasses auth (you choose)
wrangl...

Related Claw Skills