aethercore-dev/ag402/ag402-skill
Claude Code and agent skill by aethercore-dev/ag402
- community
Checking that the SKILL.md file is still in the repository.
AI Agent Payment Protocol — auto-pay x402 APIs with Solana USDC. Commands: setup, pay <url>, balance, history, doctor, serve. Use exec to run CLI commands.
Install
npx vskill@latest install aethercore-dev/ag402/ag402-skillSKILL.md
ag402 — AI Agent Payment Protocol
Use exec to run ag402 CLI commands. This skill provides autonomous payment capabilities for AI agents via the x402 protocol on Solana (USDC).
When to Use
- Agent needs to call a paid API (HTTP 402 response)
- Agent needs to check wallet balance or transaction history
- Agent needs to set up payment infrastructure
- Agent needs to start/stop a payment gateway
Quick Start
1. Check if ag402 is installed
If not installed:
2. Initialize wallet (non-interactive, agent-safe)
Creates a test wallet with $100 USDC. No prompts, no human input needed.
3. Verify setup
Expected: $100.00 test balance.
Commands
Pay for an API call
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:
With options:
Check balance
View transaction history
Full status dashboard
Health check
Start payment gateway (seller mode)
Stop gateway
Kill the background process or use Ctrl+C in the terminal.
Production Mode
For real on-chain payments, set environment variables before running:
Or configure persistently:
Then run ag402 pay <url> normally.
Environment Variables
| 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 |
Security
- Budget limits — daily and per-minute caps prevent runaway spending
- Test mode first — always test with virtual funds before production
- Wallet isolation — use a dedicated payment wallet, not your main wallet
- Transaction audit — all payments logged via
ag402 history
Error Recovery
| 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 |
Architecture
The agent uses exec to invoke ag402 pay <url>. The CLI handles the full 402 → negotiate → pay → retry → return flow transparently.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingadapters/openclaw/ag402-skill/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/aethercore-dev/ag402/ag402-skill)