x402-payai-setup

x402-payai-setup is a skill for Claude Code from GeckoVision/gecko-surf. It costs 122 tokens per session (1,186 once invoked), scanned A, original, Apache-2.0.

A setup guide for adding pay-per-call charging to an API that agents already use. It connects the provider’s own x402 endpoint to PayAI, so an unpaid request receives a payment challenge and a paid retry returns the data.

In plain words
What is it for?
Use it to connect agent-facing API tools to priced operations, handle HTTP 402 payment challenges, and settle micropayments through PayAI on Solana.
Why use it?
It removes the need to build the payment handshake from scratch or route customer money through another marketplace. The provider keeps the call revenue, while PayAI verifies and settles payments.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Do [`api-agent-ready`](../api-agent-ready/SKILL.md) first.** This skill assumes.

Part of the gecko-surf plugin — 6 skills, 2 commands, 2 agents shipped together

Good fit Use it to connect agent-facing API tools to priced operations, handle HTTP 402 payment challenges, and settle micropayments through PayAI on Solana.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/GeckoVision/gecko-surf
agentmods
npx agentmods add skills/geckovision/gecko-surf/x402-payai-setup

Made for: Claude Code.

Or install gecko-surf, the plugin that ships this one along with the rest of its 6 skills, 2 commands, 2 agents.

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 x402-payai-setup

README.md
[![agentmods](https://agentmods.dev/badge/skills/geckovision/gecko-surf/x402-payai-setup/github.svg)](https://agentmods.dev/skills/geckovision/gecko-surf/x402-payai-setup)
Your own site
<a href="https://agentmods.dev/skills/geckovision/gecko-surf/x402-payai-setup"><img src="https://agentmods.dev/badge/skills/geckovision/gecko-surf/x402-payai-setup/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 x402-payai-setup

Your own site · 80×15
<a href="https://agentmods.dev/skills/geckovision/gecko-surf/x402-payai-setup"><img src="https://agentmods.dev/badge/skills/geckovision/gecko-surf/x402-payai-setup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 122 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,186 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.00122 $0.01186
Opus 5 $0.00061 $0.00593
Sonnet 5 $0.00024 $0.00237
Haiku 4.5 $0.00012 $0.00119

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

Security

Grade A, and why

x402-payai-setup 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.

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-payai-setup/SKILL.md · 87 lines

How it starts

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

x402 + PayAI Setup Skill

Do api-agent-ready first. This skill assumes the API is already comprehended and served over MCP. It adds pay-per-call on top — the provider charging agents for priced operations, settled over the x402 rail via PayAI.

What this skill is for

Some operations are worth money. A provider who wants agents to pay for calls needs the payment handshake wired into the tools the agent already uses — without Gecko ever holding funds or taking a cut.

The mechanism is x402: an HTTP-native micropayment flow. A priced endpoint answers an unpaid request with 402 Payment Required and a challenge; the agent attaches a payment and retries; a facilitator (PayAI, on Solana) verifies and settles; the endpoint returns 200 + the data. Gecko's only job is comprehension: point the agent-facing tool at the provider's own x402 endpoint and surface the handshake so the agent knows to pay.

The line we never cross

Provider-pays for comprehension; provider keeps 100% of call revenue; Gecko is never the rail.

  • The money flows agent → provider, settled by PayAI. Gecko is not in the money path and takes no take-rate.
  • We compose the rail (PayAI / Metera / pay.sh) — we do not build one and do not become a marketplace.
  • We never custody, never sign, never broadcast. Live settlement is founder-gated and defaults to X402_MODE=stub.

If any step routes money through Gecko or adds a cut, stop — re-read rules/aggregate-not-rail.md.

The three-step spine

# Step Read Status
1 Map priced ops — which operations sit behind x402 vs stay free this file, below provider's toggle
2 Wire x402 via PayAI — point tools at the provider's x402 endpoint wire-x402-payai.md Building / founder-gated
3 Verify offline first — prove the paid-call shape before live settlement verify-paid-call.md Building — offline stub (X402_MODE=stub)

Read the full file on GitHub · 87 lines

Files

What ships with it

2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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 · 87 lines · 122 tokens per session scan A facef9460502

Subscribe to this mod's changes

x402-payai-setup is a skill published in the GitHub repository GeckoVision/gecko-surf (6 stars, last pushed today), licensed Apache-2.0. It adds 122 tokens to every session and 1,186 once invoked, about $0.0006 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-31.

Related

Other skills, from other repositories

aomi-build

Scaffold new Aomi apps and plugins from API docs, OpenAPI/Swagger specs, or SDK references. aomi-build generates production-ready Rust SDK crates (lib.rs, client.rs, tool.rs) with tool schemas, preambles, host-interop flows, and validation — turning a vendor's API surface into AI-agent-callable tools. It covers the…

aomi-labs/skills · 244 tokens

potpie-infra-architecture

Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.

potpie-ai/potpie · 43 tokens

potpie-project-preferences

Use before writing, modifying, reviewing, refactoring, or testing code so repo/project preferences surface: error handling, file structure, frameworks, logging, dependency choices, testing, security, API style, and naming. Also use after code work when a reusable project preference should be recorded.

potpie-ai/potpie · 63 tokens

web3-fullstack-packaged-build

Systematic full-stack Web3 build with mandatory packaging and delivery phase.

HKUDS/OpenSpace · 21 tokens

walkeros-create-destination

Use when creating a new walkerOS destination to send events to a vendor or API (GA4/gtag, Meta/Facebook Pixel, Mixpanel, Amplitude, a custom HTTP API, Measurement Protocol), web or server-side. Example-driven workflow: research the vendor SDK and define step examples before implementing the destination interface, env…

elbwalker/walkerOS · 77 tokens

walkeros-create-source

Use when creating a new walkerOS source to capture events (browser source, dataLayer interception, server/HTTP source, webhook receiver, event capture), web or server-side. Example-driven workflow: research the input format and define step examples before implementing the push interface, createTrigger, and env pattern.

elbwalker/walkerOS · 65 tokens