affaan-m avatar

Agent Payment X402

Adds x402 HTTP payment protocol to AI agents so they can pay for APIs, services, or other agents without holding your keys. Ships with per-task and per-session budget enforcement, recipient allowlists, and rate limits that you set in the orchestrator before the agent runs. Supports Base through agentwallet-sdk and X Layer through OKX's payment protocol. The MCP tools let agents check balance, send payments, and query spend history, but policy configuration stays in your orchestration layer so agents can't escalate their own limits. Useful when you need an agent to purchase external services or settle with other agents under strict spending controls. The source includes detailed budget enforcement examples and current seller SDK paths for TypeScript, Go, Rust, and Java.

skills.sh installs
5.5K
GitHub stars
300.3K
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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:

Sponsors

Details

Repository
github.com/affaan-m/ecc
Categories
AI & Agent Building, Finance & Trading
First seen
Jul 14, 2026

More from affaan-m/ecc

All 263
1affaan-m avatarcost-aware-llm-pipelineaffaan-m/everything-claude-codecost aware llm pipeline5.4Kskills.sh installs
2starchild-ai-agent avatarproject-builderstarchild-ai-agent/official-skillsEnd-to-end project engineering: design, incremental build, verify, debug systematically. Use when building software, dashboards, scheduled jobs, or web apps the5.2Kskills.sh installs
3skills-collective avatarai-musicskills-collective/skillsai music5.2Kskills.sh installs
4langchain-ai avatarlangsmith-evaluatorlangchain-ai/langsmith-skillsINVOKE THIS SKILL when building evaluation pipelines for LangSmith. Covers three core components: (1) Creating Evaluators - LLM-as-Judge, custom code; (2) Defin5.1Kskills.sh installs
5claude-office-skills avatarai-slidesclaude-office-skills/skillsGenerate complete presentations with AI - from outline to polished slides5Kskills.sh installs
6skills-collective avatarai-image-generationskills-collective/skillsai image generation5Kskills.sh installs