← 返回
未分类 Key 中文

Edith API Keys

Manage Edith smart glasses API keys with Unkey. Create, revoke, and list API keys via voice commands.
使用 Unkey 管理 Edith 智能眼镜的 API 密钥,可通过语音指令创建、撤销和列出密钥。
samdickson22
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 332
下载
💾 0
安装
1
版本
#latest

概述

Edith API Keys

Manage API keys for the Edith smart glasses app using Unkey.

Setup

The user must have UNKEY_ROOT_KEY and UNKEY_API_ID set as environment variables.

  • UNKEY_ROOT_KEY — root key from the Unkey dashboard (used to create/revoke keys)
  • UNKEY_API_ID — the Unkey API ID that Edith verifies keys against

Tools

This skill uses curl to call the Unkey REST API. All requests go to https://api.unkey.dev.

Commands

Create a new API key

Create a key for a plugin developer or device. Optionally set a name, expiration, or rate limit.

curl -s -X POST https://api.unkey.dev/v1/keys.createKey \
  -H "Authorization: Bearer $UNKEY_ROOT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "apiId": "'"$UNKEY_API_ID"'",
    "name": "{{name}}",
    "prefix": "edith",
    "meta": { "purpose": "{{purpose}}" },
    "expires": {{expires_unix_ms_or_null}},
    "ratelimit": {
      "async": true,
      "limit": {{rate_limit_per_second_or_10}},
      "duration": 1000
    }
  }'

Response includes key (give this to the user) and keyId (for management).

List all keys

curl -s "https://api.unkey.dev/v1/apis.listKeys?apiId=$UNKEY_API_ID" \
  -H "Authorization: Bearer $UNKEY_ROOT_KEY"

Revoke a key

Permanently delete a key by its keyId.

curl -s -X POST https://api.unkey.dev/v1/keys.deleteKey \
  -H "Authorization: Bearer $UNKEY_ROOT_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keyId": "{{keyId}}"}'

Verify a key (read-only check)

curl -s -X POST https://api.unkey.dev/v1/keys.verifyKey \
  -H "Content-Type: application/json" \
  -d '{"apiId": "'"$UNKEY_API_ID"'", "key": "{{key}}"}'

Update a key (rename, change rate limit, set expiry)

curl -s -X POST https://api.unkey.dev/v1/keys.updateKey \
  -H "Authorization: Bearer $UNKEY_ROOT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "keyId": "{{keyId}}",
    "name": "{{new_name}}",
    "ratelimit": {
      "async": true,
      "limit": {{new_limit}},
      "duration": 1000
    }
  }'

Workflow

When the user asks to manage Edith API keys:

  1. Check that UNKEY_ROOT_KEY and UNKEY_API_ID are set in the environment.
  2. If creating a key: ask for a name/purpose, create it, and display the key to the user (it is only shown once).
  3. If listing keys: fetch and display in a table with keyId, name, createdAt, and status.
  4. If revoking: confirm the keyId with the user, then delete.
  5. Plugins connect to the Edith WebSocket relay with ?linkCode=...&apiKey=... — the relay verifies the key via Unkey automatically when UNKEY_API_ID is set on the server.

Example

User: "Create an API key for my demo plugin"

curl -s -X POST https://api.unkey.dev/v1/keys.createKey \
  -H "Authorization: Bearer $UNKEY_ROOT_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "apiId": "'"$UNKEY_API_ID"'",
    "name": "demo-plugin",
    "prefix": "edith",
    "meta": { "purpose": "demo plugin" },
    "ratelimit": { "async": true, "limit": 10, "duration": 1000 }
  }'

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-07 10:01 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

communication-collaboration

ChatGPT Import

samdickson22
导入并嵌入ChatGPT对话记录至OpenClaw记忆搜索库,便于归档和检索历史聊天。
★ 2 📥 1,159

Edith Senso Ingest

samdickson22
通过Edith智能眼镜将文档导入Senso.ai知识库,在用户想要添加内容时触发。
★ 0 📥 353

Edith

samdickson22
将 Edith 智能眼镜设置为 OpenClaw 渠道。当用户想要将智能眼镜连接到 OpenClaw、提到 "Edith 眼镜",或提供...
★ 0 📥 368