← 返回 Skills 市场
yukikm

Subly pay

作者 0xyuki3 · GitHub ↗ · v0.1.1 · MIT-0
cross-platform ✓ 安全检测通过
36
总下载
0
收藏
1
当前安装
2
版本数
在 OpenClaw 中安装
/install subly-pay
功能描述
Fetch a paywalled (HTTP 402) URL and pay for it automatically from the agent wallet's Kamino vault yield, without spending the principal. Use when a request...
使用说明 (SKILL.md)

Subly pay (yield-funded x402)

This skill lets you fetch a paid HTTP resource and settle its x402 (subly-yield-exact) 402 challenge automatically. Payment comes from the agent wallet's Kamino vault yield — the deposited principal is never spent, and the facilitator refuses any payment the spendable yield cannot cover.

When to use

  • A request to a URL returns HTTP 402, or the user asks you to buy / access a paywalled API or resource served via Subly / x402.
  • Only pay for URLs the user actually intends to purchase. Treat the per-payment cap as a hard limit.

One-time wallet setup (if not done yet)

Subly does NOT create wallets — bring your own Solana keypair. If SUBLY_DEMO_AGENT_KEYPAIR_PATH is not set or the wallet has no vault balance, guide the user through this once:

  1. Create a keypair (or export one from an existing wallet): solana-keygen new --no-bip39-passphrase -o ~/.subly/agent.json The printed public key is the agent wallet address. The private key stays in that file — never share or print it.
  2. Point the skill at it: export SUBLY_DEMO_AGENT_KEYPAIR_PATH=~/.subly/agent.json
  3. Send USDC (Solana mainnet) to that address. No SOL is needed — fees are sponsored. Then deposit into the vault (minimum 1 USDC): npx -y @subly_fi/pay deposit 1000000 (deposit also self-registers the wallet).
  4. Yield accrues over time; a payment needs the price plus a fixed overhead (~0.0024 USDC) of spendable yield.

How to run

Run the one-shot pay command (no clone — uses the published package via npx) with the resource URL:

npx -y @subly_fi/pay fetch "\x3Curl>"

To set a tighter per-call cap (raw USDC, 6 decimals — e.g. 100 = 0.0001 USDC):

npx -y @subly_fi/pay fetch "\x3Curl>" 100

The command prints a single JSON object on stdout. On success it contains "paid": true plus a payment object with amountUsdc, payTo, paymentId, and solscanUrl (the on-chain receipt). Report the delivered body and the receipt to the user.

Reading the result

  • paid: true with a payment block → the resource was delivered and paid. Show the content and the Solscan link.
  • refused: true with a reason:
    • insufficient_yield → not enough vault yield accrued yet. This is normal; tell the user to wait (yield accrues over time) — do NOT retry in a loop.
    • amount_exceeds_client_cap → the price exceeds the cap. Only re-run with a higher cap if the user confirms the price is expected.
    • delivery_failed_payment_pending → the payment was signed but delivery failed. Run the exact same command again — it retries the same payment and does NOT pay twice. Do not treat this as unpaid.
    • payment_already_settled / payment_outcome_unknown → a previous payment is unresolved. Do not blindly re-pay; report the paymentId to the user.

Guardrails

  • Never read, print, or transmit the contents of the keypair file in SUBLY_DEMO_AGENT_KEYPAIR_PATH. Only the public receipt is shared.
  • Do not raise the payment cap on your own initiative.
安全使用建议
Install only if you want these repo-maintenance workflows. Before using moderation, email, production migration, deploy, or autoreview commands, verify the target, auth context, confirmation gates, and whether the autoreview helper should be run with --no-yolo for tighter containment.
能力标签
cryptorequires-walletrequires-sensitive-credentials
能力评估
Purpose & Capability
The local artifacts cover ClawHub moderation, PR maintenance, Convex setup/migration/performance workflows, and code review; the high-impact capabilities match those stated purposes.
Instruction Scope
Moderation writes require explicit targets, reasons, confirmation, auth, and audit logging; production migrations require dry runs, manual backup confirmation, and explicit apply/cleanup approval.
Install Mechanism
No package install hooks or hidden installer behavior were found in the inspected skill artifacts; they consist of skill markdown, references, small metadata YAML, icons, and one local autoreview helper script.
Credentials
The skills use powerful local and service CLIs such as bun, gh, convex, npm, and codex in ways aligned with their workflows; the autoreview helper’s default nested Codex danger-full-access mode is disclosed and opt-out but should be used deliberately.
Persistence & Privilege
No stealth persistence, credential harvesting, or hidden background execution was found; persistent effects are expected workflow outputs such as admin moderation state, production migrations, PR comments, proof artifacts, or temporary migration code.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install subly-pay
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /subly-pay 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.1
Default to public RPC and production facilitator; only a keypair is required.
v0.1.0
Initial release: pay x402 resources from Kamino vault yield.
元数据
Slug subly-pay
版本 0.1.1
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 2
常见问题

Subly pay 是什么?

Fetch a paywalled (HTTP 402) URL and pay for it automatically from the agent wallet's Kamino vault yield, without spending the principal. Use when a request... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 36 次。

如何安装 Subly pay?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install subly-pay」即可一键安装,无需额外配置。

Subly pay 是免费的吗?

是的,Subly pay 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Subly pay 支持哪些平台?

Subly pay 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Subly pay?

由 0xyuki3(@yukikm)开发并维护,当前版本 v0.1.1。

💬 留言讨论