solana-agent-paymentslisted
Install: claude install-skill Azzaraell/agent-payments-x402
# Solana Agent Payments Skill
> **The missing money layer for autonomous agents.** `solana-agent-kit` and friends give an agent the ability to *act*. This skill gives it the ability to **pay, get paid, and spend safely** — without ever handing it an uncapped private key.
## The problem this solves
AI agents increasingly need to move money: pay per-call for data/compute, settle with other agents, and charge for their own services. The pattern almost everyone ships today is a **footgun**:
```ts
// The god-mode default — seen in most agent kits, including solana-agent-kit quickstarts
const keypair = Keypair.fromSecretKey(bs58.decode(process.env.SOLANA_PRIVATE_KEY!));
const wallet = new KeypairWallet(keypair); // unlimited authority over every lamport
```
One prompt injection, one hallucinated tool call, one loop bug — and the agent can drain the wallet to any address. There is **no budget, no per-transaction cap, no destination allowlist, no audit trail, and no kill switch.** This skill replaces that default with enforced, non-custodial spending controls, and wires up the two sides of agent commerce (paying and getting paid) the way the 2026 stack actually does it.
## What this skill is for
Use this skill when the user asks for any of:
### 1. Pay — agent consumes paid resources
- "Let my agent pay for this API without an API key" / "pay per request in USDC"
- Consume x402-paywalled endpoints, MCP servers, or another agent's service
- Budget-tracked autonomous spend → [p