Skip to main content

agent-payment-x402

Enables AI agents to execute payments with spending controls and non-custodial wallets using the x402 payment protocol.

Install this skill

or
63/100

Security score

The agent-payment-x402 skill was audited on May 18, 2026 and we found 13 security issues across 3 threat categories. Review the findings below before installing.

Categories Tested

Security Issues

medium line 148

Template literal with variable interpolation in command context

SourceSKILL.md
148`Failed to set spending policy — do not delegate: ${JSON.stringify(policyResult.content)}`
medium line 160

Template literal with variable interpolation in command context

SourceSKILL.md
160throw new Error(`Invalid apiCost: ${apiCost} — action blocked`);
medium line 168

Template literal with variable interpolation in command context

SourceSKILL.md
168throw new Error(`Payment service unreachable — action blocked: ${err}`);
medium line 174

Template literal with variable interpolation in command context

SourceSKILL.md
174`check_spending failed — action blocked: ${JSON.stringify(result.content)}`
medium line 190

Template literal with variable interpolation in command context

SourceSKILL.md
190`check_spending returned unexpected format — action blocked: ${err}`
medium line 197

Template literal with variable interpolation in command context

SourceSKILL.md
197`Budget exceeded: need $${apiCost} but only $${remaining} remaining`
low line 116

Access to .env file

SourceSKILL.md
116const walletKey = process.env.WALLET_PRIVATE_KEY;
low line 122

Access to .env file

SourceSKILL.md
122// Whitelist only the env vars the server needs — never forward all of process.env
low line 128

Access to .env file

SourceSKILL.md
128PATH: process.env.PATH ?? "",
low line 129

Access to .env file

SourceSKILL.md
129NODE_ENV: process.env.NODE_ENV ?? "production",
low line 219

External URL reference

SourceSKILL.md
219- **npm**: [`agentwallet-sdk`](https://www.npmjs.com/package/agentwallet-sdk)
low line 221

External URL reference

SourceSKILL.md
221- **Protocol spec**: [x402.org](https://x402.org)
low line 224

External URL reference

SourceSKILL.md
224- **OKX Payments overview**: [web3.okx.com/onchainos/dev-docs/payments/overview](https://web3.okx.com/onchainos/dev-docs/payments/overview)
Scanned on May 18, 2026
View Security Dashboard
Installation guide →