solana-agent-payments — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited solana-agent-payments (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
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.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:
// 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 lamportOne 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.
Use this skill when the user asks for any of:
SOLANA_PRIVATE_KEY with something safe" → spending-controls.mdAgent payments in 2026 are three layers, often conflated. Keep them separate:
| Layer | Question it answers | Standard / tool | This skill's file |
|---|---|---|---|
| Authorization | Is this agent allowed to spend this money? | AP2 mandates (Google, Sept 2025) | mandates-ap2.md |
| Settlement | How does value actually move? | x402 v2 (Coinbase CDP) over USDC | pay-x402-client.md · monetize-x402-server.md |
| Custody + policy | What holds the keys and enforces limits? | Squads v4 / Privy / Turnkey / CDP / Crossmint | agent-wallets.md · spending-controls.md |
x402 is the stablecoin settlement extension of AP2 — the A2A x402 extension carries an AP2 mandate into on-chain settlement, so crypto payments get the same audit trail card payments get. You can adopt x402 alone (most common today), or pair it with AP2 mandates when an agent spends a user's money rather than its own.
@x402/* packages (@x402/core, @x402/svm, @x402/fetch, @x402/express|next|hono|fastify). v2 uses the PAYMENT-REQUIRED / PAYMENT-SIGNATURE / PAYMENT-RESPONSE headers and CAIP-2 networks. Treat the older single X-Payment + x402Version: 1 shape as legacy (see resources.md).EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v (6 decimals). x402 settles in USDC, not SOL.ExactSvmScheme) for Solana. upto and batch-settlement are EVM-only as of 2026 — do not promise them on Solana.https://x402.org/facilitator (testnet), Coinbase CDP or PayAI (prod), or self-host Kora for a Solana-native, fee-abstracted facilitator. See monetize-x402-server.md.| If the user wants to… | Route to | Primary tool |
|---|---|---|
| Have an agent pay for an API / MCP / service | pay-x402-client.md | @x402/fetch |
| Monetize / paywall their own API or MCP | monetize-x402-server.md | @x402/express + facilitator |
| Choose where the agent's keys live | agent-wallets.md | Squads v4 / Privy / Turnkey / CDP / Crossmint |
| Enforce caps, allowlists, budgets, kill switch | spending-controls.md | @sqds/multisig spending limits |
| Authorize agent spend / human approval / audit | mandates-ap2.md | AP2 mandate + A2A x402 extension |
| Get USDC/ATA/gasless/receipt details right | usdc-settlement.md | @solana/spl-token, Kora |
| Look up a package, version, mint, or endpoint | resources.md | — |
| Task type | Agent | Suggested model |
|---|---|---|
| Implement x402 client/server + wallet wiring | agent-payments-engineer | sonnet |
| Review spending controls, threat-model an agent's money path, find god-mode footguns | payment-safety-auditor | opus |
Before any agent goes near mainnet funds, confirm all of these — the payment-safety-auditor checks them, and rules/payments.md enforces the code-level ones:
payTo; arbitrary transfers are the dangerous path.)PAYMENT-RESPONSE receipt for audit.A runnable, offline model of this baseline — the pay→settle loop with the per-tx cap, session budget, allowlist, and kill switch enforced — is in examples/devnet-x402/ (node --test, 12 passing tests).
| Command | Purpose |
|---|---|
| /add-x402-paywall | Wrap an existing API route behind an x402 paywall to charge per call |
| /setup-agent-wallet | Scaffold a non-custodial agent wallet with caps + allowlist + kill switch |
| /audit-agent-spending | Audit an agent's payment code for god-mode keys and missing limits |
This skill is the payments + controls layer; it routes to (does not duplicate) the protocol skills:
solana-dev skill and token-2022.md.~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.