openclaw-x402-pay

openclaw-x402-pay is a skill for Claude Code, Codex from Parad0x-Labs/openclaw-skills. It costs 53 tokens per session (887 once invoked), scanned A, original, MIT.

A payment tool for calling APIs or other agents that require an x402 payment on Solana, a blockchain network. It creates an unsigned transaction, checks settlement, and returns a receipt while leaving signing to your wallet.

In plain words
What is it for?
Use it to pay for x402-protected APIs, data, or agent services in USDC on Solana, with a hard spending cap and your own signer.
Why use it?
It lets an agent make controlled payments without giving the tool a private key or hosted wallet. A maximum USDC amount is checked before any transaction is built.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: built for openclaw.

Good fit Use it to pay for x402-protected APIs, data, or agent services in USDC on Solana, with a hard spending cap and your own signer.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parad0x-labs/openclaw-skills/x402-pay
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Parad0x-Labs/openclaw-skills --skill x402-pay
Clone the repo
git clone --depth 1 https://github.com/Parad0x-Labs/openclaw-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for openclaw-x402-pay

README.md
[![agentmods](https://agentmods.dev/badge/skills/parad0x-labs/openclaw-skills/x402-pay/github.svg)](https://agentmods.dev/skills/parad0x-labs/openclaw-skills/x402-pay)
Your own site
<a href="https://agentmods.dev/skills/parad0x-labs/openclaw-skills/x402-pay"><img src="https://agentmods.dev/badge/skills/parad0x-labs/openclaw-skills/x402-pay/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for openclaw-x402-pay

Your own site · 80×15
<a href="https://agentmods.dev/skills/parad0x-labs/openclaw-skills/x402-pay"><img src="https://agentmods.dev/badge/skills/parad0x-labs/openclaw-skills/x402-pay.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 887 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00053 $0.00887
Opus 5 $0.00026 $0.00443
Sonnet 5 $0.00011 $0.00177
Haiku 4.5 $0.00005 $0.00089

Measured 12d ago against content hash c7872565b444, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

openclaw-x402-pay scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.

The scan reads SKILL.md. This mod also ships 15 executable files (src/client.ts, src/constants.ts, src/index.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/x402-pay/SKILL.md · 76 lines

How it starts

The opening of the file, as written. The whole thing — 76 lines — stays where its author put it; the contents beside it link to each section on GitHub.

x402 Pay

Let your OpenClaw agent pay for x402-gated APIs, data, and other agents on Solana — without ever handing the skill a private key.

Bring your own signer. The skill builds an unsigned transaction and hands it to a wallet/signer you control. It never holds, requests, or reads a key.

When to use

  • Your agent needs to call a paid (x402 / HTTP 402) API or buy a resource from another agent, and you want it to settle in USDC on Solana automatically.
  • You want a hard spend cap and self-custody, not a hosted wallet.

When NOT to use

  • You haven't set a sensible maxAmountUsdc cap — the skill enforces one before any payment and will (correctly) refuse anything above it.
  • You want the skill to custody keys for you. It won't, by design.

Safety rails

  • Install with --ignore-scripts (required): this skill runs where the payment key lives; never let a transitive native addon run install-time code on that host.
  • Real-money is opt-in; set allowMainnet: true to enable mainnet (also needs rpcUrl).
  • Hard maxAmountUsdc cap, enforced before any transaction is built.
  • Minimal network: your Solana RPC + the target URL only. No telemetry.

Non-custodial and spend-capped by design — your agent signs with its own wallet; no single payment exceeds your cap.

Tools

  • pay_x402({ url, method? }) → fetches the URL; on HTTP 402, pays within your cap and network, then returns the resource plus { paymentSignature, receiptHash, amountUsdc }. url may be a name.null to pay by name.
  • rep_identity() → your agent's public reputation commitment, to bind a proof to this agent (hand it to a gate as expectedAgentCommitment). Reveals nothing secret.
  • prove_reputation({ root, minCount, minVolume, windowStart, epoch, receipts }) → a private proof of track record (see below).

Private reputation (zk-rep)

Prove you hold enough settled receipts to clear a gate>= minCount receipts totalling >= minVolume since windowStart, in an anchored receipt tree — without revealing any individual amount, counterparty, or wallet. A Groth16 proof (track_record.circom, BN254) the gate verifies with x402_rep_verify.

Read the full file on GitHub · 76 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 12d ago First seen · 76 lines · 53 tokens per session scan A c7872565b444

Subscribe to this mod's changes

openclaw-x402-pay is a skill published in the GitHub repository Parad0x-Labs/openclaw-skills (22 stars, last pushed 8d ago), licensed MIT. It adds 53 tokens to every session and 887 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.