agent-payment-x402

Enable autonomous AI agent payments with x402 protocol and spending controls.

2|Updated Apr 14, 2026
One-click install
npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill agent-payment-x402-klu-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-payment-x402
Source: https://github.com/klu-dev/porting-ecc-to-vscode/tree/main/.github/skills/agent-payment-x402
Command: npx skills add https://github.com/klu-dev/porting-ecc-to-vscode --skill agent-payment-x402-klu-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires agentwallet-sdk, and includes scripts (resource) components.

What problem does it solve?

This Skill addresses the challenge of enabling AI agents to autonomously execute payments while enforcing spending controls and utilizing non-custodial wallets.

Core Features & Use Cases

  • Autonomous Payments: Facilitates payment execution for AI agents with built-in spending controls.
  • Spending Controls: Implements per-task and per-session budgets, rate limits, and allowlisted recipients.
  • Non-Custodial Wallets: Employs ERC-4337 smart accounts for agents to hold their own keys.
  • MCP Integration: Seamlessly integrates with Model Context Protocol tools.
  • Use Case: Ideal for agents that need to pay for APIs, services, or other agents without custodial risk.

Quick Start

Deploy the payment tool with npx [email protected] and set spending policy using set_policy.

Frequently Asked Questions about agent-payment-x402

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enable autonomous payments for AI agents with spending controls?

Enable autonomous AI payments by deploying the agentwallet-sdk to set per-task and per-session budgets, rate limits, and allowlisted recipients for non-custodial wallet transactions. This enforces strict spending controls using the x402 protocol.

Can I use non-custodial wallets with ERC-4337 for AI agents to hold their own keys?

Yes, AI agents can hold their own keys using ERC-4337 smart accounts for non-custodial wallet management. This approach removes custodial risk while allowing agents to autonomously execute payment transactions for APIs or services.

How do I set spending policy and budgets for AI agent transactions?

Set spending policy by deploying the payment tool with `npx [email protected]` and configuring rules via `set_policy`. This defines per-task and per-session budgets, enforceable rate limits, and allowlisted recipients for the agent's transactions.

Does the x402 protocol integrate with Model Context Protocol tools for AI payments?

Yes, the x402 protocol seamlessly integrates with Model Context Protocol (MCP) tools to facilitate autonomous payments. This integration allows AI agents to pay for APIs, services, or other agents directly within their MCP-driven workflows.

What are the limitations of using non-custodial wallets for autonomous AI agent payments?

Limitations include managing strict per-task and per-session budgets, enforcing rate limits, and restricting transactions to allowlisted recipients. You must configure these spending controls via the agentwallet-sdk to prevent unbounded autonomous transactions.

Do I need the agentwallet-sdk to manage autonomous AI payments and budgets with x402?

Yes, the agentwallet-sdk is a required dependency to manage autonomous AI payments with the x402 protocol. It provides the necessary tools to deploy smart accounts and enforce budget controls for your AI agents.