AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Even G2 Bridge

skill-daaab-openclaw-even-g2-bridge-skill-openclaw-even-g2-bridge-skill · by dAAAb

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 gl…

No reviews yet
0 installs
38 views
0.0% view→install

Install

$ agentstack add skill-daaab-openclaw-even-g2-bridge-skill-openclaw-even-g2-bridge-skill

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access Used
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-daaab-openclaw-even-g2-bridge-skill-openclaw-even-g2-bridge-skill)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
6mo ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Even G2 Bridge? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

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:

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

Verify:

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:

# 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

# 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)
wrangler secret put ANTHROPIC_API_KEY # Fallback when Gateway is down

# Optional (for Telegram delivery of rich content)
wrangler secret put TELEGRAM_BOT_TOKEN
wrangler secret put TELEGRAM_CHAT_ID

# Optional (for image generation)
wrangler secret put OPENAI_API_KEY

4. Configure G2 Glasses

In Even app → Settings → Add Agent:

  • Name: Your agent name (e.g., "Cloud Lobster")
  • URL: https://YOUR_WORKER.workers.dev
  • Token: The G2_TOKEN you set above

5. Test

curl -X POST https://YOUR_WORKER.workers.dev \
  -H "Authorization: Bearer YOUR_G2_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"model":"openclaw","messages":[{"role":"user","content":"Hello, who are you?"}]}'

Architecture

Request Flow

  1. G2 converts speech → text, sends as OpenAI chat completion format
  2. Worker authenticates via G2_TOKEN
  3. Worker classifies request:
  • Image gen → DALL-E + Telegram (immediate G2 ack)
  • Long task → immediate G2 ack + background Gateway call → Telegram
  • Short task → proxy to Gateway → return to G2
  1. Gateway runs full agent loop (memory, tools, skills)
  2. Response filtered for G2 display (no URLs, code blocks → Telegram)

Security

Two-layer token auth:

G2 --[G2_TOKEN]--> Worker --[GATEWAY_TOKEN]--> Gateway
  • G2 only knows G2_TOKEN — if glasses are lost, change only this token
  • GATEWAY_TOKEN stays in Worker secrets, never exposed to glasses
  • Gateway HTTP API should be behind auth (token or password mode)

G2 Display Limitations

  • 576×136 pixels, monochrome green, ~48 chars wide
  • Text only (no images, no markdown rendering)
  • Worker auto-filters: URLs → [link], code blocks → [code], long text → truncated
  • Non-displayable content forwarded to Telegram

Customization

Edit the task classification regex in worker.js:

  • isLongTask() — patterns that trigger background processing
  • isImageGenRequest() — patterns that trigger DALL-E

Troubleshooting

  • G2 says "Unauthorized": Check G2_TOKEN matches in Worker secrets and Even app
  • "Gateway not configured": Verify GATEWAYURL and GATEWAYTOKEN secrets are set
  • Timeout on short tasks: Gateway may be slow; increase SHORT_TIMEOUT (max ~25s for CF Workers)
  • No Telegram delivery: Check TELEGRAMBOTTOKEN and TELEGRAMCHATID secrets
  • Gateway returns 404: Ensure chatCompletions.enabled: true in OpenClaw config + restart

Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

Install and usage instructions live in the source repository linked above.

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.