agentcash Wallet & Paid APIs
Call any x402-protected API with automatic payment. Payment is the authentication — no API keys or subscriptions needed.
Setup
If the agentcash CLI is not yet installed, see rules/getting-started.md for installation and wallet setup.
Wallet Management
Your wallet is auto-created on first use and stored at ~/.agentcash/wallet.json.
Check Balance
npx agentcash wallet info
Returns wallet address, USDC balance, and deposit link. Always check before expensive operations.
Redeem Invite Code
npx agentcash wallet redeem YOUR_CODE
One-time use per code. Credits added instantly. Run npx agentcash wallet info after to verify.
Deposit USDC
- Get your wallet address via
npx agentcash wallet info
- Send USDC on Base network (eip155:8453) to that address
- Or use the deposit UI:
https://x402scan.com/mcp/deposit/<wallet-address>
Important: Only Base network USDC. Other networks or tokens will be lost.
Calling Paid APIs
1. Discover endpoints
npx agentcash discover https://stableenrich.dev
Returns all endpoints, pricing, and usage instructions. Read the instructions field — it has critical endpoint-specific guidance.
2. Check schema (optional)
npx agentcash check https://stableenrich.dev/api/apollo/people-search
Returns full request/response JSON schemas and pricing for a specific endpoint.
3. Make a paid request
npx agentcash fetch https://stableenrich.dev/api/apollo/people-search -m POST -b '{"person_titles": ["CEO"], "person_locations": ["San Francisco"]}'
Payment is automatic: sends request, gets 402 challenge, signs USDC payment, retries with credential, returns result. Payments settle only on success (2xx) — failed requests cost nothing.
Available Services
| Origin |
Service |
What it does |
https://stableenrich.dev |
StableEnrich |
Research APIs: Apollo (people/org), Exa (web search), Firecrawl (scraping), Grok (X/Twitter), Google Maps, Clado (LinkedIn), Serper (news/shopping), WhitePages, Reddit, Hunter (email verification), Influencer enrichment |
https://stableupload.dev |
StableUpload |
Pay-per-upload file hosting. 10MB/$0.02, 100MB/$0.20, 1GB/$2.00. 6-month TTL |
https://stablestudio.dev |
StableStudio |
AI image/video generation: GPT Image, Flux, Grok, Nano Banana, Sora, Veo, Seedance, Wan |
https://stablesocial.dev |
StableSocial |
Social media data: TikTok, Instagram, X/Twitter, Facebook, Reddit, LinkedIn. $0.06/call, async two-step |
https://stableemail.dev |
StableEmail |
Send emails ($0.02), forwarding inboxes ($1/mo), custom subdomains ($5) |
https://stablephone.dev |
StablePhone |
AI phone calls ($0.54), phone numbers ($20), top-ups ($15) |
https://stablejobs.dev |
StableJobs |
Job search via Coresignal |
Run npx agentcash discover <origin> on any origin to see its full endpoint catalog.
Quick Reference
| Task |
Command |
| Check balance |
npx agentcash wallet info |
| Redeem code |
npx agentcash wallet redeem <code> |
| Discover endpoints |
npx agentcash discover <url> |
| Check pricing/schema |
npx agentcash check <url> |
| Paid POST request |
npx agentcash fetch <url> -m POST -b '{...}' |
| Paid GET request |
npx agentcash fetch <url> |
Tips
- Always discover first — the
instructions field has critical endpoint-specific patterns and required parameters.
- Payments settle only on success (2xx) — failed requests cost nothing.
- Use
npx agentcash check <url> when unsure about request/response format.
- Add
--format json for machine-readable output, --format pretty for human-readable.
- Add
-v for verbose output to see payment details.
- Network: Base (eip155:8453), Currency: USDC.
Troubleshooting
| Issue |
Solution |
| "Command not found" |
Run npm install -g agentcash |
| "Insufficient balance" |
Check balance, deposit USDC or redeem invite code |
| "Payment failed" |
Transient error — retry the request |
| "Invalid invite code" |
Code already used or doesn't exist |
| Balance not updating |
Wait for Base network confirmation (~2 sec) |
1---
2name: agentcash-wallet
3description: |
4 Manage your agentcash wallet and call any x402-protected API with automatic payment. No API keys, no subscriptions — just a funded wallet (USDC on Base).
5
6 USE FOR:
7 - Checking wallet balance before API calls
8 - Redeeming invite codes for free credits
9 - Getting deposit address for USDC
10 - Discovering endpoints and pricing on any x402-protected origin
11 - Making paid API requests via the agentcash CLI
12 - Troubleshooting payment failures
13
14 TRIGGERS:
15 - "balance", "wallet", "funds", "credits"
16 - "redeem", "invite code", "promo code"
17 - "deposit", "add funds", "top up"
18 - "discover", "endpoints", "what APIs", "pricing"
19 - "insufficient balance", "payment failed"
20metadata:
21 source: https://skillmd.com/skills/modbender/agentcash-wallet
22---
23
24# agentcash Wallet & Paid APIs
25
26Call any x402-protected API with automatic payment. Payment is the authentication — no API keys or subscriptions needed.
27
28## Setup
29
30If the agentcash CLI is not yet installed, see [rules/getting-started.md](rules/getting-started.md) for installation and wallet setup.
31
32## Wallet Management
33
34Your wallet is auto-created on first use and stored at `~/.agentcash/wallet.json`.
35
36### Check Balance
37
38```bash
39npx agentcash wallet info
40```
41
42Returns wallet address, USDC balance, and deposit link. Always check before expensive operations.
43
44### Redeem Invite Code
45
46```bash
47npx agentcash wallet redeem YOUR_CODE
48```
49
50One-time use per code. Credits added instantly. Run `npx agentcash wallet info` after to verify.
51
52### Deposit USDC
53
541. Get your wallet address via `npx agentcash wallet info`
552. Send USDC on **Base network** (eip155:8453) to that address
563. Or use the deposit UI: `https://x402scan.com/mcp/deposit/<wallet-address>`
57
58**Important**: Only Base network USDC. Other networks or tokens will be lost.
59
60## Calling Paid APIs
61
62### 1. Discover endpoints
63
64```bash
65npx agentcash discover https://stableenrich.dev
66```
67
68Returns all endpoints, pricing, and usage instructions. **Read the `instructions` field** — it has critical endpoint-specific guidance.
69
70### 2. Check schema (optional)
71
72```bash
73npx agentcash check https://stableenrich.dev/api/apollo/people-search
74```
75
76Returns full request/response JSON schemas and pricing for a specific endpoint.
77
78### 3. Make a paid request
79
80```bash
81npx agentcash fetch https://stableenrich.dev/api/apollo/people-search -m POST -b '{"person_titles": ["CEO"], "person_locations": ["San Francisco"]}'
82```
83
84Payment is automatic: sends request, gets 402 challenge, signs USDC payment, retries with credential, returns result. Payments settle only on success (2xx) — failed requests cost nothing.
85
86## Available Services
87
88| Origin | Service | What it does |
89|---|---|---|
90| `https://stableenrich.dev` | StableEnrich | Research APIs: Apollo (people/org), Exa (web search), Firecrawl (scraping), Grok (X/Twitter), Google Maps, Clado (LinkedIn), Serper (news/shopping), WhitePages, Reddit, Hunter (email verification), Influencer enrichment |
91| `https://stableupload.dev` | StableUpload | Pay-per-upload file hosting. 10MB/$0.02, 100MB/$0.20, 1GB/$2.00. 6-month TTL |
92| `https://stablestudio.dev` | StableStudio | AI image/video generation: GPT Image, Flux, Grok, Nano Banana, Sora, Veo, Seedance, Wan |
93| `https://stablesocial.dev` | StableSocial | Social media data: TikTok, Instagram, X/Twitter, Facebook, Reddit, LinkedIn. $0.06/call, async two-step |
94| `https://stableemail.dev` | StableEmail | Send emails ($0.02), forwarding inboxes ($1/mo), custom subdomains ($5) |
95| `https://stablephone.dev` | StablePhone | AI phone calls ($0.54), phone numbers ($20), top-ups ($15) |
96| `https://stablejobs.dev` | StableJobs | Job search via Coresignal |
97
98Run `npx agentcash discover <origin>` on any origin to see its full endpoint catalog.
99
100## Quick Reference
101
102| Task | Command |
103|------|---------|
104| Check balance | `npx agentcash wallet info` |
105| Redeem code | `npx agentcash wallet redeem <code>` |
106| Discover endpoints | `npx agentcash discover <url>` |
107| Check pricing/schema | `npx agentcash check <url>` |
108| Paid POST request | `npx agentcash fetch <url> -m POST -b '{...}'` |
109| Paid GET request | `npx agentcash fetch <url>` |
110
111## Tips
112
113- Always discover first — the `instructions` field has critical endpoint-specific patterns and required parameters.
114- Payments settle only on success (2xx) — failed requests cost nothing.
115- Use `npx agentcash check <url>` when unsure about request/response format.
116- Add `--format json` for machine-readable output, `--format pretty` for human-readable.
117- Add `-v` for verbose output to see payment details.
118- Network: Base (eip155:8453), Currency: USDC.
119
120## Troubleshooting
121
122| Issue | Solution |
123|-------|----------|
124| "Command not found" | Run `npm install -g agentcash` |
125| "Insufficient balance" | Check balance, deposit USDC or redeem invite code |
126| "Payment failed" | Transient error — retry the request |
127| "Invalid invite code" | Code already used or doesn't exist |
128| Balance not updating | Wait for Base network confirmation (~2 sec) |