/install logicx-skill-test
LogicX Skill
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
- Only call
/api/proxy/*(or/api/health). Never call backend/v1/*directly. - Default to browser binding. Only ask for email and password if the user explicitly chooses password login.
- Confirm before any mutating call:
payment/create,payment/cancel,auth/change-password,agent/unlink. - Never echo
LOGICX_AGENT_SERVICE_KEYorLOGICX_USER_TOKENin full. - Never infer binding, membership, order, or payment state — report API responses only.
- Summarize results in natural language unless the user asks for raw JSON.
Auth
No user token required:
GET /api/healthPOST agent/link/startPOST agent/link/statusPOST agent/auth/login
All other calls require both headers:
Authorization: Bearer \x3CLOGICX_AGENT_SERVICE_KEY>
X-LogicX-User-Token: \x3CLOGICX_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.
Default Flow
- If connectivity is uncertain, run
GET /api/health. - If a user token is needed and none exists, start browser binding (see below).
- After login, verify with
GET user/. - Run the requested action.
Login: Browser Binding (Default)
{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:
你可以点击以下链接登录并完成授权:
\x3Clogin_url>
登录完成后请回来告诉我一声,比如直接回复"我登录好了"。
如果你不想跳转浏览器,也可以直接把用户名和密码告诉我,我可以直接帮你登录。
When the user says they have finished, run:
{baseDir}/scripts/check_link_status.sh
Interpret the response:
pending— browser authorization not complete yet; ask the user to confirm and try againexpired— ask whether to restart bindingconfirmed— token saved automatically; verify withGET user/
If the script fails with "No bind state found", restart with agent/link/start.
Login: Password (Fallback)
Only when the user explicitly chooses not to use the browser flow.
{baseDir}/scripts/logicx_api.sh POST agent/auth/login \
'{"email":"[email protected]","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"}'
Error Handling
Agent service key required/Unauthorized— the backend may not have enabled the public key yet; ask the user to try again later or contact LogicX support429on login — rate limit hit; wait 15 minutes- Auth failure on user-scoped calls — clear the saved token and restart binding
References
references/api-reference.md— full endpoint specsexamples.md— example dialogues
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install logicx-skill-test - 安装完成后,直接呼叫该 Skill 的名称或使用
/logicx-skill-test触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
logicx-skill-test 是什么?
Call LogicX frontend proxy APIs for health checks, browser binding, password login, user info, orders, payments, and account actions. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 257 次。
如何安装 logicx-skill-test?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install logicx-skill-test」即可一键安装,无需额外配置。
logicx-skill-test 是免费的吗?
是的,logicx-skill-test 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
logicx-skill-test 支持哪些平台?
logicx-skill-test 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 logicx-skill-test?
由 Evan Yang(@qihangyang)开发并维护,当前版本 v0.0.8。