Install
openclaw skills install pocket-moneyGive your AI agent crypto wallets on Base. Create purpose-specific wallets, ask your human to fund each one, check balances, and manage budgets. No accounts, no KYC — just wallet addresses and USDC on Base.
openclaw skills install pocket-moneyYou have a tool that lets you create and manage crypto wallets (USDC on Base). Each wallet is a separate keypair with its own balance — create one per purpose or budget.
Package: @auteng/pocket-money — published by AutEng (source on GitHub).
Install the pocket-money library:
npm install @auteng/pocket-money
Create a named wallet for each purpose or budget:
import { wallet } from '@auteng/pocket-money';
const w = await wallet.create({ name: "feb-2026" });
console.log(w.address); // 0xABC123...
If a wallet with that name already exists on disk, it loads it. Each wallet is stored at .auteng/wallets/<name>.json.
You can also create a quick default wallet:
const w = await wallet.create();
// Base mainnet (default)
const w = await wallet.create({ name: "prod" });
// Base Sepolia testnet
const w = await wallet.create({ name: "test", network: "base-sepolia" });
When you need money, ask your human to fund a specific wallet:
I need $12 in USDC for today's tasks.
Please send USDC on **Base** to this address:
`0xABC123...` (wallet: "feb-2026")
You can send from Coinbase, an exchange, or any wallet that supports Base.
Be specific about:
After asking, wait for the USDC to arrive:
await w.waitForFunding(12_000000n);
// Polls Base every 10s until >= 12 USDC is available
With a timeout:
await w.waitForFunding(12_000000n, { timeout: 120_000 });
// Throws after 2 minutes if balance < $12
Tell your human you're waiting — they may need a minute to complete the transfer.
IMPORTANT: Before making any payment, you MUST:
Example:
I'd like to call an x402 API endpoint.
Service: api.example.com/generate
Cost: ~$0.05 per request
Wallet: "feb-2026" ($0.98 remaining)
OK to proceed?
Never batch multiple paid operations without listing them first. If running a loop of paid calls, present the total estimated cost upfront and get approval for the batch.
// Retrieve an existing wallet by name
const w = wallet.get("feb-2026");
// List all wallets
const all = wallet.list();
for (const w of all) {
const bal = await w.checkBalance();
console.log(`${w.name}: ${w.address} — ${bal} USDC`);
}
// Check balance
const balance = await w.checkBalance();
// Returns USDC in minor units (6 decimals)
// e.g., 12_000000n = $12.00
If running low, ask your human for more funding before expensive operations.
Private keys: Wallet private keys are stored as unencrypted JSON at .auteng/wallets/<name>.json with restricted file permissions (0600). These keys can sign USDC payment authorizations. If the file is leaked or the machine is compromised, funds in that wallet can be stolen. Treat wallet files like passwords.
Network access: This skill makes outbound HTTPS requests to:
mainnet.base.org) — to check USDC balancesMitigations: