Skip to content
affaan-m avatar

Agent Payment X402

Agent payment execution via x402 with per-task budgets, spending policies, and non-custodial wallets.

CCM score
75 of 100
skills.sh installs
10.9K
GitHub stars
312.6K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers agent-side payments for 402-gated APIs across Base, X Layer, Solana, and multi-network EVM through several integration paths
  • Includes agentwallet-sdk as a pinned MCP server with get_balance, send_payment, check_spending, and list_transactions tools
  • Enforces per-task and per-session budgets, allowlisted recipients, and rate limits, with policy set by the orchestrator rather than the agent
  • Designed for agents that must pay for services themselves and need confirmation before any payment is signed or submitted

Install

$ npx -y skills add affaan-m/ecc --skill agent-payment-x402 -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Agent Payment Execution (x402)

Enable AI agents to make policy-gated payments with built-in spending controls. Uses the x402 HTTP payment protocol and MCP tools so agents can pay for external services, APIs, or other agents without custodial risk.

When to Use

Use when: your agent needs to pay for an API call, purchase a service, settle with another agent, enforce per-task spending limits, or manage a non-custodial wallet. Pairs naturally with cost-aware-llm-pipeline and security-review skills.

Decision Tree

Choose the integration path based on whether your agent is buying access to a paid API or charging others for one:

Details

Repository
github.com/affaan-m/ecc
Categories
Web3 & Crypto, AI Agents & LLM Apps
First seen
Jul 14, 2026

Questions

What does the agent-payment-x402 skill do?

It adds x402 payment execution to AI agents, letting them pay for APIs and services themselves under per-task budgets, spending controls, and a non-custodial wallet. Agents can pay on Base through agentwallet-sdk, on X Layer through OKX Agent Payments Protocol, and on Solana or other networks through the upstream x402 packages.

How do I install the agent-payment-x402 skill?

Run npx -y skills add affaan-m/ecc --skill agent-payment-x402 -y in your project. Once installed, the agent can make policy-gated payments for external services, APIs, or other agents.

Where does agent-payment-x402 rank among Web3 and crypto skills?

It ranks in the top 25 on the Web3 and Crypto category page on Claude Marketplaces. It sits alongside skills such as solana-dev and binance-agentic-wallet, and it stands apart by letting agents pay for x402-gated services with spending limits enforced at each payment call.

Is agent-payment-x402 safe to use with real funds?

The skill manages private keys, so its docs say to pin the package version, since unpinned npx installs add supply-chain risk. Spending policy is set by the orchestrator before delegation, and the skill requires explicit user confirmation before payment actions.

More from affaan-m/ecc

All 257

Similar to Agent Payment X402

More Web3 & Crypto