Wallet & Billing
All RickyData authentication and payments are wallet-based. Your wallet address is your identity — it scopes your secrets, sessions, budgets, and transaction history.
First 100 requests a day are on us. Tool calls count as 0.25 each, so you can burn through 400 tool calls before the free tier runs out. No credit card required — just sign in with a wallet.
Payment flow at a glance
Authentication via Privy
Sign in through any of these methods:
| Method | How |
|---|---|
| Magic link via Privy | |
| OAuth | Google, GitHub, Discord |
| Web3 wallet | MetaMask, WalletConnect, or any EIP-1193 wallet |
All methods produce a wallet address that becomes your RickyData identity. Behind the scenes, Privy creates or links to a wallet.
Wallet tokens
After authentication, you receive a mcpwt_ wallet token:
- Self-verifying — the gateway recovers your wallet address via
ecrecover - Zero server storage — no session state stored on the gateway
- Long-lived — valid up to 30 days (configurable up to years)
- Survives restarts — unlike session JWTs
# Create a wallet token
rickydata auth login
# Token is stored at ~/.rickydata/credentials.json (mode 0600)
Payment model
All payments use USDC on Base mainnet (chain ID 8453).
| Action | Cost |
|---|---|
| MCP tool call (managed wallet flow) | $0.0005 USDC |
| MCP tool call (self-custody x402 signing) | $0.0005 USDC |
| Agent chat (BYOK) | 10% markup on LLM cost + $0.0005 per tool call |
Browsing, searching, tools/list | Free |
| Free tier | 100 requests/day (tool calls count as 0.25 each) |
Unified wallet ledger
The Agent Gateway maintains a unified ledger per wallet:
- One deposit address per wallet
- On-chain balance cache + off-chain spend accounting
- Pending withdrawal tracking
- Per-agent budget limits (daily, weekly, monthly)
- Full transaction history for audit
Check your balance
rickydata wallet balance
# API
curl -s https://agents.rickydata.org/wallet/balance \
-H "Authorization: Bearer mcpwt_..." | jq .
x402 payment protocol
For MCP tool calls, the gateway uses the x402 protocol:
- You call a tool endpoint
- Gateway returns HTTP 402 with payment requirements
- Your client signs an EIP-3009
TransferWithAuthorizationfor USDC - Client retries with the
X-Paymentheader - Gateway verifies, executes the tool
- On success only: USDC transfer settles on-chain
- Response includes
txHashfor verification
Failed tool calls are never charged.
Next steps
- Funding — depositing USDC and managing balance
- Spending Policy — budgets and limits
- Self-Improvement — automatic learning system