ag402 — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited ag402 (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.
Use exec to run ag402 CLI commands. This skill provides autonomous payment capabilities for AI agents via the x402 protocol on Solana (USDC).
ag402 --versionIf not installed:
pip install ag402-coreag402 initCreates a test wallet with $100 USDC. No prompts, no human input needed.
ag402 balanceExpected: $100.00 test balance.
ag402 pay <url>Sends a request to <url>. If the server returns 402 Payment Required with an x402 challenge, ag402 automatically pays and retries. Returns the API response.
Example:
ag402 pay https://api.example.com/premium/dataWith options:
ag402 pay https://api.example.com/generate \
--method POST \
--data '{"prompt": "hello"}' \
--amount 2.50ag402 balanceag402 history
ag402 history --limit 20 --type paymentag402 statusag402 doctorag402 serve --target http://localhost:8000 --price 0.01 --port 4020 &Kill the background process or use Ctrl+C in the terminal.
For real on-chain payments, set environment variables before running:
X402_MODE=production \
X402_NETWORK=mainnet \
SOLANA_RPC_URL=<your_rpc_url> \
AG402_UNLOCK_PASSWORD=<wallet_password> \
ag402 pay <url>Or configure persistently:
ag402 env set X402_MODE production
ag402 env set X402_NETWORK mainnet
ag402 env set SOLANA_RPC_URL <your_rpc_url>Then run ag402 pay <url> normally.
| Variable | Description | Default |
|---|---|---|
X402_MODE | test or production | Must be set explicitly |
X402_NETWORK | mainnet, devnet, localnet | devnet |
SOLANA_RPC_URL | Solana RPC endpoint | Public devnet |
AG402_UNLOCK_PASSWORD | Wallet unlock password | — |
X402_DAILY_LIMIT | Max spend per day (USD) | 10 |
X402_PER_MINUTE_LIMIT | Max spend per minute (USD) | 2 |
ag402 history| Error | Fix |
|---|---|
ag402: command not found | pip install ag402-core |
Insufficient balance | ag402 init (test) or deposit real USDC (production) |
Non-standard 402 response | Server is not x402-compatible |
On-chain payment failed | Check network: ag402 doctor |
Request timed out | Retry; check RPC connectivity |
Agent (exec) → ag402 CLI → x402 protocol → Solana USDC payment → API responseThe agent uses exec to invoke ag402 pay <url>. The CLI handles the full 402 → negotiate → pay → retry → return flow transparently.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.