Install
openclaw skills install logicx-skill-testCall LogicX frontend proxy APIs for health checks, browser binding, password login, user info, orders, payments, and account actions.
openclaw skills install logicx-skill-testInteract 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.
/api/proxy/* (or /api/health). Never call backend /v1/* directly.payment/create, payment/cancel, auth/change-password, agent/unlink.LOGICX_AGENT_SERVICE_KEY or LOGICX_USER_TOKEN in full.No user token required:
GET /api/healthPOST agent/link/startPOST agent/link/statusPOST agent/auth/loginAll other calls require both headers:
Authorization: Bearer <LOGICX_AGENT_SERVICE_KEY>
X-LogicX-User-Token: <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.
GET /api/health.GET user/.{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:
你可以点击以下链接登录并完成授权:
<login_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 with GET user/If the script fails with "No bind state found", restart with agent/link/start.
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/
# 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"}'
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 support429 on login — rate limit hit; wait 15 minutesreferences/api-reference.md — full endpoint specsexamples.md — example dialogues