详细分析 ▾
运行时依赖
版本
No major code or behavior changes; this update revises documentation and metadata. - Improved and clarified SKILL.md documentation for easier use and understanding. - Added homepage and OpenClaw metadata (emoji, requirements) in SKILL.md. - Simplified language, emphasizing default browser login and confirmation before sensitive actions. - Expanded error handling and flow explanations for onboarding and edge cases. - No changes detected in code or scripts; update is documentation-only.
安装命令 点击复制
技能文档
Interact with the LogicX platform on behalf of the user. All API calls go through the frontend proxy (/api/proxy/). Use scripts/logicx_api.sh for every request — never write ad-hoc curl commands.
Rules
- 仅 call
/api/proxy/(或/api/health). Never call backend/v1/*directly. - 默认 到 browser binding. 仅 ask 对于 email 和 密码 如果 用户 explicitly chooses 密码 登录.
- Confirm 之前 任何 mutating call:
payment/创建,payment/取消,auth/更改-密码,agent/unlink. - Never echo
LOGICX_AGENT_SERVICE_KEY或LOGICX_USER_TOKEN在...中 满. - Never infer binding, membership, order, 或 payment state — 举报 API responses 仅.
- Summarize results 在...中 natural language unless 用户 asks 对于 raw JSON.
Auth
No user token required:
获取 /api/healthPOST agent/链接/开始POST agent/链接/statusPOST agent/auth/登录
All other calls require both headers:
Authorization: Bearer
X-LogicX-User-Token:
The script handles headers automatically. Built-in defaults: LOGICX_BASE_URL=http://43.139.104.95:8070, LOGICX_AGENT_SERVICE_KEY=openclaw-public.
默认 Flow
- 如果 connectivity uncertain, run
获取 /api/health. - 如果 用户 令牌 needed 和 无 exists, 开始 browser binding (see 下面).
- 之后 登录, 验证 带有
获取 用户/. - Run requested action.
登录: Browser Binding (默认)
{baseDir}/scripts/logicx_api.sh POST agent/link/start '{"install_id":"openclaw-main"}'
The script auto-saves link_code and install_id to ~/.config/logicx/skill-state.json.
Reply to the user:
你可以点击以下链接登录并完成授权:
登录完成后请回来告诉我一声,比如直接回复"我登录好了"。
如果你不想跳转浏览器,也可以直接把用户名和密码告诉我,我可以直接帮你登录。
When the user says they have finished, run:
{baseDir}/scripts/check_link_status.sh
Interpret the response:
待处理— browser authorization 不 complete 尚未; ask 用户 到 confirm 和 try again已过期— ask whether 到 restart bindingconfirmed— 令牌 saved automatically; 验证 带有获取 用户/
If the script fails with "No bind state found", restart with agent/link/start.
登录: 密码 (Fallback)
Only when the user explicitly chooses not to use the browser flow.
{baseDir}/scripts/logicx_api.sh POST agent/auth/login \
'{"email":"user@example.com","password":"secret","install_id":"openclaw-main"}'
Rate limit: 5 attempts per 15 minutes per IP + email. On 429, tell the user to wait before retrying.
After success, verify:
{baseDir}/scripts/logicx_api.sh GET user/
Common Calls
# Health
{baseDir}/scripts/logicx_api.sh GET /api/health# Account
{baseDir}/scripts/logicx_api.sh GET user/
# Orders
{baseDir}/scripts/logicx_api.sh GET payment/orders
{baseDir}/scripts/logicx_api.sh GET payment/orders/ORDER_NO
# Payment (confirm before calling)
{baseDir}/scripts/logicx_api.sh POST payment/create '{"plan":"pro_monthly","gateway":"mock"}'
{baseDir}/scripts/logicx_api.sh POST payment/cancel '{"orderNo":"ORDER_NO"}'
# Password change (confirm before calling)
{baseDir}/scripts/logicx_api.sh POST auth/change-password '{"currentPassword":"old","newPassword":"new-min-8"}'
# Unlink device (confirm before calling)
{baseDir}/scripts/logicx_api.sh POST agent/unlink '{"install_id":"INSTALL_ID"}'
错误 Handling
Agent 服务 键 必填/Unauthorized— backend 可能 不 有 已启用 公开 键 尚未; ask 用户 到 try again later 或 contact LogicX support429在...上 登录 — rate limit hit; wait 15 minutes- Auth failure 在...上 用户-scoped calls — 清除 saved 令牌 和 restart binding
References
references/api-reference.md— 满 endpoint specsexamples.md— 示例 dialogues
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制