Skip to content

About

Claude Code skill for safe x402 agent payments with task budgets, spend limits, and non-custodial wallets. Built on affaan-m/ECC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

agent-payments-plus

hero

License: MIT Claude Code skill Skill v1.0 GitHub stars

Built on affaan-m/ECC by @affaan-m (239,635 stars, MIT). All credit for the original idea to them. This fork improves and repackages it; upstream license preserved in UPSTREAM_LICENSE.

A Claude Code skill for safe x402 agent payments with clear budgets, spend limits, and non-custial wallets.

For developers who want an AI agent to pay for APIs or services without letting it control its own money rules.

💡 Why

Paid agent tools need hard limits.

This skill helps you set a task budget, session budget, approved payees, and payment rate limit.

It covers Base with agentwallet-sdk and X Layer with OKX Payments. It also makes one rule clear: no wallet check or payment without human approval.

⚡ Install

mkdir -p ~/.claude/skills/agent-payment-x402 && curl -fsSL https://raw.githubusercontent.com/your-org/agent-payments-plus/main/SKILL.md -o ~/.claude/skills/agent-payment-x402/SKILL.md

Restart Claude Code after installing.

🧭 Usage

Ask Claude Code to use the skill before you add payment tools:

Use the agent-payment-x402 skill. I need a paid data API with a $0.50 task budget, a $5 session budget, api.example.com as the only approved recipient, and no more than 20 payments per hour.

Expected result:

Payment policy set:
- Task budget: $0.50
- Session budget: $5.00
- Approved recipient: api.example.com
- Rate limit: 20 payments per hour

Paid actions stay blocked until you give clear approval.

Before every paid call, check the price, budget, recipient, and tool result. Stop on missing, bad, or unclear payment data. Never put private keys in prompts, logs, code, or chat.

🔒 Core rules

  1. A human sets every spending limit.
  2. The agent must never set or raise a limit.
  3. Use a non-custodial wallet.
  4. Test on Base Sepolia before mainnet.
  5. Check installed tool names and docs before production use.
  6. Do not use payment tools without human approval.

🛠️ What we changed vs upstream

  • Translated and simplified the skill from Japanese into clearer English.
  • Added community/open-source attribution and a requirement to preserve it.
  • Strengthened explicit payment, wallet, private-key, recipient, and error-handling safeguards.
  • Reorganized the x402 and spending-policy guidance into shorter step-by-step sections.
  • Added a clear “do not use without human approval” rule and caveats to verify installed tool details.

📄 License

MIT. The upstream license is preserved in UPSTREAM_LICENSE.

About

Claude Code skill for safe x402 agent payments with task budgets, spend limits, and non-custodial wallets. Built on affaan-m/ECC.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors