WalletPilot
by @andreolf
Universal browser wallet automation for AI agents. Supports 10 wallets including MetaMask, Rabby, Phantom, Trust Wallet, OKX, Coinbase, and more. EVM + Solana. Configurable guardrails with spend limits, chain allowlists, and approval thresholds.
1. Install Dependencies
cd wallet-pilot
npm install
npx playwright install chromium
2. Configure Wallet Provider
Edit config.json to select your wallet:
{
"wallet": {
"provider": "metamask", // or: rabby, coinbase, rainbow, phantom
"extensionPath": null // auto-detect from Chrome, or provide path
}
}
3. Create Agent Wallet Profile
npm run setup
This opens a browser where you:
4. Fund the Wallet
Transfer a small amount to your agent wallet:
5. Configure Permissions
Edit permissions.json:
{
"constraints": {
"spendLimit": {
"daily": "50000000",
"perTx": "10000000"
},
"allowedChains": [1, 137, 42161, 8453],
"allowedProtocols": ["0x...uniswap", "0x...1inch"]
}
}
| Constraint | Description |
|------------|-------------|
| spendLimit.daily | Max USD value per 24h period |
| spendLimit.perTx | Max USD value per transaction |
| allowedChains | Whitelisted chain IDs |
| allowedProtocols | Whitelisted contract addresses |
| blockedMethods | Forbidden function selectors |
| requireApproval.above | Threshold requiring user confirmation |
clawhub install wallet-pilot