agent-payment-x402

Automate autonomous agent payments with per-task and per-session budgets.

Updated Mar 26, 2026
One-click install
npx skills add https://github.com/cescrafli/compyrasion --skill agent-payment-x402-cescrafli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: agent-payment-x402
Source: https://github.com/cescrafli/compyrasion/tree/main/skills/agent-payment-x402
Command: npx skills add https://github.com/cescrafli/compyrasion --skill agent-payment-x402-cescrafli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill enables AI agents to make autonomous payments with built-in spending controls, reducing custodial risk and manual intervention when paying APIs, services, or other agents.

Core Features & Use Cases

  • Spending policies: enforce per-task and per-session budgets, with allowlisted recipients and rate limits.
  • Non-custodial wallets: agents hold their keys via ERC-4337-style accounts; orchestration enforces policy before delegation.
  • MCP integration: exposes standard MCP tools for seamless integration with Claude Code or agent harnesses.

Quick Start

Configure a sample policy and simulate a payment check with a mock MCP server.

Frequently Asked Questions about agent-payment-x402

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

FAQPage Schema
How do I enforce spending limits on autonomous agent payments?

To enforce spending limits on autonomous agent payments, configure explicit per-task and per-session budgets within a spending policy. The system blocks transactions that exceed these defined limits, preventing overspending when agents pay for external API calls or services.

How do non-custodial wallets secure autonomous agent transactions?

Non-custodial wallets secure autonomous agent transactions by letting agents hold their own keys via ERC-4337-style accounts. The orchestration layer enforces spending policies before delegating transactions, reducing custodial risk and preventing unauthorized key access.

What happens to agent payments if the payment service is unreachable?

If the payment service is unreachable, the agent payment system uses a fail-closed approach. This means the system automatically blocks pending transactions and halts payment processing to prevent uncontrolled spending or unauthorized transfers during connectivity loss.

Can I restrict which external services my AI agent is allowed to pay?

Yes, you can restrict which external services your AI agent pays by configuring recipient allowlists within the spending policy. The system enforces these allowlists alongside rate limits and budget caps before approving any outbound transaction.

Why do I need explicit spending policies for AI agent automation?

Explicit spending policies are required for AI agent automation to define strict per-task budgets, recipient allowlists, and rate limits. These policies ensure the orchestration layer can validate and enforce transaction rules before delegating non-custodial wallet payments.