Install
openclaw skills install openclaw-aligenie-genieOpenClaw Agent 通过云服务器与天猫精灵双向通信的技能。触发时机:(1) 用户要求与天猫精灵通信或接收天猫精灵消息时 (2) 配置天猫精灵与 OpenClaw 的连接时 (3) 天猫精灵发送指令到 OpenClaw 需要处理时。
openclaw skills install openclaw-aligenie-genieOpenClaw Agent 通过云服务器与天猫精灵双向通信的技能。
| 文档 | 内容 |
|---|---|
SPEC.md | 完整技术规格(架构/数据库/API/安全) |
DEPLOY.md | 部署指南 |
genie_client.py | Agent 端 Python 客户端 |
详见 DEPLOY.md
ALIGENIE_SERVER=http://你的云服务器IP:58472
ALIGENIE_API_KEY=ak_xxx # 从 CLI 获取
ALIGENIE_AGENT_ID=lobster # 你的 agent ID
from genie_client import GenieClient
client = GenieClient(
server_url="http://101.43.110.225:58472",
agent_id="lobster",
api_key="ak_xxx"
)
client.register("session_key_here")
client.start_heartbeat_loop(interval=60)
def handle(req):
utterance = req["utterance"]
reply = f"你说了:{utterance}"
return reply
client.start_polling_loop(handle)
详见 SPEC.md