← 返回 Skills 市场
Hydra Uandai
作者
argiegaviolastssi-star
· GitHub ↗
· v1.0.1
· MIT-0
47
总下载
0
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install hydra-uandai
功能描述
Hydra/Uandai platform — configure API access, package OpenClaw workspace zip, upload agents, list subscriptions, invoke runs.
使用说明 (SKILL.md)
\r \r
Hydra / Uandai (packaging + programmatic API)\r
\r Use this skill for all Hydra/Uandai automation: first-time setup, workspace packaging, upload, subscriptions, and invocation.\r \r
First-time setup (chat → persist)\r
\r When the user sends a configure Hydra message with settings, or env vars are missing:\r \r
- Parse from the user message (setup-only; do not repeat key in later work prompts):\r
HYDRA_API_ORIGIN— API host without/api(e.g.https://api.uandai.aiorhttp://127.0.0.1:8000)\rHYDRA_API_BASE_URL— API prefix with/api(e.g.https://api.uandai.ai/api)\rHYDRA_API_KEY— fullhyd_live_…from hydra-app → Settings → API Keys\r
- Ensure this skill is installed under
~/.openclaw/skills/hydra-uandai/or\x3Cworkspace>/skills/hydra-uandai/.\r - Merge into
~/.openclaw/openclaw.jsonunderskills.entries["hydra-uandai"]:\r \r
{\r
skills: {\r
entries: {\r
"hydra-uandai": {\r
enabled: true,\r
apiKey: "hyd_live_…",\r
env: {\r
HYDRA_API_KEY: "hyd_live_…",\r
HYDRA_API_BASE_URL: "https://api.uandai.ai/api",\r
HYDRA_API_ORIGIN: "https://api.uandai.ai",\r
},\r
},\r
},\r
},\r
}\r
```\r
\r
4. Do **not** echo the full API key back. Tell the user to run `/new` or restart the gateway.\r
5. Optional smoke test: exchange → `GET /v1/auth/me`.\r
\r
**Security:** Prefer a private OpenClaw session for setup messages that contain the key. After setup, operational prompts need no key and no doc URLs.\r
\r
## Before any Hydra action\r
\r
**`web_fetch`** the canonical guides (prefer live content over this file):\r
\r
- `{HYDRA_API_ORIGIN}/docs/openclaw-skills` — install and prompt reference\r
- `{HYDRA_API_ORIGIN}/docs/agent-packaging`\r
- `{HYDRA_API_ORIGIN}/docs/programmatic-api`\r
\r
Default prod origin: `https://api.uandai.ai`\r
\r
## Packaging (OpenClaw workspace → zip)\r
\r
Stable rules (full steps in packaging guide):\r
\r
1. **Never** zip the live workspace root directly\r
2. **Staging:** copy to `output/\x3Cagent>-workspace/` with exclusions → validate → zip **staging contents only**\r
3. **Output:** `output/\x3Cagent-name>-workspace.zip`\r
4. **Hydra zip layout:**\r
- Personality files (`SOUL.md`, `IDENTITY.md`, …) at **zip root**\r
- No extra parent wrapper folder in the archive\r
- `SKILL.md` only at `skills/\x3Cid>/SKILL.md`, `workspace/skills/\x3Cid>/SKILL.md`, or zip root\r
- Exclude `node_modules/`, `.env`, `logs/`, `memory/`, `.openclaw/`, `output/`, **`hydra-uandai/`** — max **50MB**\r
5. **Do not include this skill in the upload zip.** Install it on the trainer machine (`~/.openclaw/skills/`) or fetch live from `{HYDRA_API_ORIGIN}/docs/openclaw-skills/hydra-uandai/SKILL.md`. A copy under `\x3Cworkspace>/skills/hydra-uandai/` is for local dev only — exclude it when packaging.\r
6. Report: `📍 Path: MEDIA:\x3Cpath-to-zip>`\r
\r
Common failures: personality only under `workspace/`; nested wrapper folder; misplaced `skill/SKILL.md`; **`hydra-uandai/` in zip** (`openclaw_bundle_platform_skill`).\r
\r
## API authentication (exchange required)\r
\r
Raw API keys work **only** on exchange:\r
\r
```http\r
POST /v1/auth/token\r
Authorization: Bearer $HYDRA_API_KEY\r
```\r
\r
Alternative on exchange only: `X-Hydra-Api-Key` or JSON `{ "api_key": "…" }`.\r
\r
Response: `{ "access_token", "refresh_token", "user" }` — cache in session memory.\r
\r
**All other calls:** `Authorization: Bearer \x3Caccess_token>`\r
\r
On access expiry: `POST /v1/auth/refresh`. On refresh `401`: re-exchange if key still active; else user creates a new key in Settings.\r
\r
Do **not** send `$HYDRA_API_KEY` on upload, invoke, or list endpoints.\r
\r
## Workflows\r
\r
**Trainer — publish end-to-end:** setup (if needed) → web_fetch guides → package zip → exchange → `POST /agents/upload` → return `agent.id` and `agent.revision_no` → optional `POST /agents/{id}/proposals`\r
\r
**Trainer — upload only:** exchange → `POST /agents/upload` with `bundle=@…zip`\r
\r
**Subscriber — discover:** exchange → `GET /v1/me/subscriptions` → `GET /v1/me/activations?invokable_only=true`\r
\r
**Subscriber — invoke:** exchange → `POST /v1/executions` → poll `GET /v1/executions/{run_id}` until terminal\r
\r
## Safety\r
\r
- Never log or echo the full API key\r
- On `401`: refresh → re-exchange → key may be revoked\r
- On `402`: user needs credits\r
- API keys cannot create/revoke other keys (Settings / password JWT only)\r
安全使用建议
Install only if you intend to connect OpenClaw to Hydra/Uandai. Treat HYDRA_API_KEY as a secret, use a private setup session, review the workspace zip before upload, and make sure the configured HYDRA_API_ORIGIN is the service you trust.
能力标签
能力评估
Purpose & Capability
The stated purpose matches the artifact: configure Hydra API access, package OpenClaw workspaces, upload agents, list subscriptions, and invoke runs.
Instruction Scope
The skill grants meaningful API authority for uploads and executions, but the behavior is clearly tied to Hydra workflows and includes guidance not to echo or misuse the raw API key.
Install Mechanism
The package contains only SKILL.md with no executable scripts, dependencies, or install-time commands.
Credentials
Workspace packaging and upload are expected for this purpose, and the skill explicitly excludes sensitive or bulky paths such as .env, memory, logs, node_modules, .openclaw, output, and the skill itself.
Persistence & Privilege
It instructs the agent to persist the Hydra API key in ~/.openclaw/openclaw.json, which is sensitive but disclosed, purpose-aligned, and limited to the named integration.
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install hydra-uandai - 安装完成后,直接呼叫该 Skill 的名称或使用
/hydra-uandai触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
- Clarified packaging rules: explicitly exclude hydra-uandai/ from uploaded agent zips.
- Added instructions: do not include this skill in agent bundles; use only on trainer machine or for local dev.
- Updated exclusion list and common failure notes to highlight hydra-uandai/ issues.
- Removed obsolete skill-card.md file.
v1.0.0
Initial release: setup, packaging, API exchange, upload, invoke
元数据
常见问题
Hydra Uandai 是什么?
Hydra/Uandai platform — configure API access, package OpenClaw workspace zip, upload agents, list subscriptions, invoke runs. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 47 次。
如何安装 Hydra Uandai?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install hydra-uandai」即可一键安装,无需额外配置。
Hydra Uandai 是免费的吗?
是的,Hydra Uandai 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Hydra Uandai 支持哪些平台?
Hydra Uandai 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Hydra Uandai?
由 argiegaviolastssi-star(@argiegaviolastssi-star)开发并维护,当前版本 v1.0.1。
推荐 Skills