openclaw-x402-gate

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

A payment gate for an OpenClaw skill or API using x402 on Solana, a blockchain network. It creates a payment challenge, verifies the caller's payment, and sends funds directly to your wallet.

In plain words
What is it for?
Use it to charge other agents or API callers in USDC, create 402 challenges, verify payment headers, and optionally check settlement on the blockchain.
Why use it?
It lets you charge per request without holding customer funds or giving the tool access to signing keys. On-chain verification can confirm that payment actually settled on Solana.

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 charge other agents or API callers in USDC, create 402 challenges, verify payment headers, and optionally check settlement on the blockchain.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/parad0x-labs/openclaw-skills/x402-gate
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-gate
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-gate

README.md
[![agentmods](https://agentmods.dev/badge/skills/parad0x-labs/openclaw-skills/x402-gate/github.svg)](https://agentmods.dev/skills/parad0x-labs/openclaw-skills/x402-gate)
Your own site
<a href="https://agentmods.dev/skills/parad0x-labs/openclaw-skills/x402-gate"><img src="https://agentmods.dev/badge/skills/parad0x-labs/openclaw-skills/x402-gate/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-gate

Your own site · 80×15
<a href="https://agentmods.dev/skills/parad0x-labs/openclaw-skills/x402-gate"><img src="https://agentmods.dev/badge/skills/parad0x-labs/openclaw-skills/x402-gate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 708 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.
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.00054 $0.00708
Opus 5 $0.00027 $0.00354
Sonnet 5 $0.00011 $0.00142
Haiku 4.5 $0.00005 $0.00071

Measured 11d ago against content hash b37145ad07e7, 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-gate 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 11d ago.

The scan reads SKILL.md. This mod also ships 13 executable files (src/auth.ts, src/constants.ts, src/gate.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-gate/SKILL.md · 68 lines

How it starts

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

x402 Gate

Charge other agents for your OpenClaw skill or API. Mint a 402 challenge, verify the payment, then serve — funds settle straight to your own Solana wallet.

No custody. Your wallet address is config; the skill signs nothing and holds no keys.

When to use

  • You want to monetize a skill, tool, or API by charging per-call in USDC.
  • You want payments to land directly in your wallet with no intermediary custody.

When NOT to use

  • You're serving something valuable but left requireOnChain off — structural checks alone don't prove settlement. Turn it on for revenue-grade gating.
  • You expected the skill to hold a balance for you. It doesn't, by design.

Tools

  • x402_challenge({ resource, description? }) → a 402 challenge body to send an unpaid caller. The price is seller config (priceUsdc), never a caller input.
  • x402_verify({ header, resource }) → validates the payment; with requireOnChain: true, confirms the transaction settled on Solana first.
  • x402_rep_challenge() → the reputation bar a caller must prove (see below).
  • x402_rep_verify({ proof, publicSignals, expectedAgentCommitment? }) → verifies a private reputation proof against your policy.

Gate on private reputation (zk-rep)

Instead of (or alongside) charging per call, gate on proven track record: admit a caller who proves it holds >= repMinCount settled receipts totalling >= repMinVolume within repWindowSeconds, in an anchored receipt tree — learning no individual amount, counterparty, or wallet. Set the bar in config (repMinCount, repMinVolume, repWindowSeconds, repTrustedRoots); the caller answers with a Groth16 proof from x402-pay's prove_reputation.

Verification is fail-closed on every seam: the proof must cryptographically verify, clear your policy floor, build on a trusted anchored root, carry a single-use nullifier, and (when you pass expectedAgentCommitment) match the caller's bound identity. Runs off-chain today; a multi-party ceremony and on-chain trustless verification are next.

Read the full file on GitHub · 68 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. 11d ago First seen · 68 lines · 54 tokens per session scan A b37145ad07e7

Subscribe to this mod's changes

openclaw-x402-gate is a skill published in the GitHub repository Parad0x-Labs/openclaw-skills (22 stars, last pushed 8d ago), licensed MIT. It adds 54 tokens to every session and 708 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.