返回顶部
l

logicx-skillLogicX前端代理

Call LogicX frontend proxy APIs for health checks, browser binding, password login, user info, orders, payments, and account actions.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.0.8
安全检测
已通过
240
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

logicx-skill

LogicX 技能

代表用户与 LogicX 平台进行交互。所有 API 调用均通过前端代理(/api/proxy/*)进行。每次请求都使用 scripts/logicx_api.sh——切勿编写临时的 curl 命令。

规则

  • - 仅调用 /api/proxy/(或 /api/health)。切勿直接调用后端 /v1/
  • 默认使用浏览器绑定。仅当用户明确选择密码登录时才询问邮箱和密码。
  • 在执行任何变更操作前需确认:payment/create、payment/cancel、auth/change-password、agent/unlink。
  • 切勿完整输出 LOGICXAGENTSERVICEKEY 或 LOGICXUSER_TOKEN。
  • 切勿推断绑定、会员、订单或支付状态——仅报告 API 响应。
  • 除非用户要求原始 JSON,否则以自然语言总结结果。

认证

无需用户令牌:

  • - GET /api/health
  • POST agent/link/start
  • POST agent/link/status
  • POST agent/auth/login

所有其他调用都需要以下两个请求头:

Authorization: Bearer AGENTSERVICE_KEY>
X-LogicX-User-Token: USERTOKEN>

脚本会自动处理请求头。内置默认值:LOGICXBASEURL=http://43.139.104.95:8070、LOGICXAGENTSERVICE_KEY=openclaw-public。

默认流程

  1. 1. 如果连接状态不确定,运行 GET /api/health。
  2. 如果需要用户令牌但不存在,则启动浏览器绑定(见下文)。
  3. 登录后,通过 GET user/ 进行验证。
  4. 执行请求的操作。

登录:浏览器绑定(默认)

bash
{baseDir}/scripts/logicxapi.sh POST agent/link/start {installid:openclaw-main}

脚本会自动将 linkcode 和 installid 保存到 ~/.config/logicx/skill-state.json。

回复用户:

你可以点击以下链接登录并完成授权:

登录完成后请回来告诉我一声,比如直接回复我登录好了。

如果你不想跳转浏览器,也可以直接把用户名和密码告诉我,我可以直接帮你登录。

当用户表示已完成时,运行:

bash
{baseDir}/scripts/checklinkstatus.sh

解读响应:

  • - pending——浏览器授权尚未完成;请用户确认后重试
  • expired——询问是否重新启动绑定
  • confirmed——令牌已自动保存;通过 GET user/ 进行验证

如果脚本返回未找到绑定状态,则使用 agent/link/start 重新启动。

登录:密码(备用)

仅当用户明确选择不使用浏览器流程时使用。

bash
{baseDir}/scripts/logicx_api.sh POST agent/auth/login \
{email:user@example.com,password:secret,install_id:openclaw-main}

速率限制:每 15 分钟每个 IP 和邮箱组合最多 5 次尝试。如果收到 429,请告知用户等待后重试。

成功后,进行验证:

bash
{baseDir}/scripts/logicx_api.sh GET user/

常用调用

bash

健康检查


{baseDir}/scripts/logicx_api.sh GET /api/health

账户

{baseDir}/scripts/logicx_api.sh GET user/

订单

{baseDir}/scripts/logicx_api.sh GET payment/orders {baseDir}/scripts/logicxapi.sh GET payment/orders/ORDERNO

支付(调用前需确认)

{baseDir}/scripts/logicxapi.sh POST payment/create {plan:promonthly,gateway:mock} {baseDir}/scripts/logicxapi.sh POST payment/cancel {orderNo:ORDERNO}

修改密码(调用前需确认)

{baseDir}/scripts/logicx_api.sh POST auth/change-password {currentPassword:old,newPassword:new-min-8}

解绑设备(调用前需确认)

{baseDir}/scripts/logicxapi.sh POST agent/unlink {installid:INSTALL_ID}

错误处理

  • - 需要代理服务密钥 / 未授权——后端可能尚未启用公钥;请用户稍后重试或联系 LogicX 支持
  • 登录时出现 429——触发速率限制;等待 15 分钟
  • 用户相关调用认证失败——清除已保存的令牌并重新启动绑定

参考资料

  • - references/api-reference.md——完整端点规范
  • examples.md——示例对话

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 logicx-skill-test-1776372962 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 logicx-skill-test-1776372962 技能

通过命令行安装

skillhub install logicx-skill-test-1776372962

下载

⬇ 下载 logicx-skill v0.0.8(免费)

文件大小: 8.94 KB | 发布时间: 2026-4-17 15:15

v0.0.8 最新 2026-4-17 15:15
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.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部