设备直播地址

v1.0.1

调用 ai-open-gateway 的设备直播接口 POST /api/device/live,获取指定设备的 H5 播放器直播链接。Use when: 需要远程查看设备实时画面、获取直播链接分享给他人。⚠️ 需设置 AI_GATEWAY_API_KEY。

0· 84·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
Name/description: fetch device live H5 URL. Requested binary (python3), primary environment variable (AI_GATEWAY_API_KEY), and the two API endpoints (/api/device/list and /api/device/live) all match that purpose. The script also documents optional host and TLS flags which are expected for an API client.
Instruction Scope
SKILL.md instructs the agent to run the script, parse its JSON output, and present a formatted Markdown link. The bundled Python script prints only the declared JSON response and calls only the two described endpoints. There is no instruction to read unrelated system files or to exfiltrate data to other endpoints. The SKILL.md's requirement that the agent reformat JSON into a user-friendly link is consistent with the script output.
Install Mechanism
No install spec; this is instruction + single script. The only runtime dependency is the widely used Python package httpx (the script prompts to install it). There are no downloads from arbitrary URLs or archive extraction steps.
Credentials
The skill requires a single primary credential AI_GATEWAY_API_KEY, which is appropriate. However, the script supports a fallback of reading ~/.openclaw/.env (declared in SKILL.md and metadata) — that file is shared by other skills and could contain additional secrets. SKILL.md warns about this and provides AI_GATEWAY_NO_ENV_FILE to disable fallback; users should prefer environment variables and not rely on the shared .env in production. The optional AI_GATEWAY_VERIFY_SSL flag can disable TLS verification (documented as for development only) — avoid disabling in production.
Persistence & Privilege
Skill is user-invocable, not always-enabled, and does not request persistent system-wide privileges or modify other skills. It does not require elevated OS permissions.
Assessment
This skill appears to do exactly what it says: call your ai-open-gateway to get a device's H5 live-player URL. Before installing or running, ensure you: (1) provide a least-privilege AI_GATEWAY_API_KEY via environment variable (not a shared file); (2) avoid leaving AI_GATEWAY_NO_ENV_FILE unset in production if your ~/.openclaw/.env is shared with other skills; (3) do not disable TLS verification (AI_GATEWAY_VERIFY_SSL) in production; and (4) verify AI_GATEWAY_HOST points to a trusted domain. If any of those are concerns in your environment, address them before use.

Like a lobster shell, security has layers — review code before you run it.

latestvk97c9es9a8pq4q6sqrv41t3fvn83h9kq

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

Binspython3
EnvAI_GATEWAY_API_KEY
Primary envAI_GATEWAY_API_KEY

Comments