WalletPilot
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.
- License 许可
- AGPL-3.0
- 最近更新
- 2026-11-15
- Stars
- ★ 81
- Forks
- 17
01 前言 Front Matter
- name
- WalletPilot
- tags
- [ "crypto", "wallet", "ethereum", "solana", "defi", "web3", "blockchain", "automation", "browser", "metamask", "rabby", "coinbase", "rainbow", "phantom", "trust-wallet", "zerion", "exodus", "okx", "backpack" ]
- description
- 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.
02 资源文件 4
- 参考文档_meta.json131 B
- 参考文档skill-card.md2.0 KB
- 参考文档SOURCE.md248 B
- 参考文档TRUST.auto.yaml2.0 KB
03 SKILL.md 正文
WalletPilot
Universal browser wallet automation for AI agents. Control any browser-based crypto wallet with configurable permission guardrails.
Supported Wallets
| Wallet | EVM | Solana | Users |
|---|---|---|---|
| MetaMask | ✅ | - | 100M+ |
| Rabby | ✅ | - | 1M+ |
| Coinbase Wallet | ✅ | - | 1M+ |
| Rainbow | ✅ | - | 500K+ |
| Phantom | ✅ | ✅ | 3M+ |
| Trust Wallet | ✅ | ✅ | 1M+ |
| Zerion | ✅ | ✅ | 100K+ |
| Exodus | ✅ | ✅ | 100K+ |
| OKX Wallet | ✅ | ✅ | 1M+ |
| Backpack | ✅ | ✅ | 500K+ |
Overview
WalletPilot allows AI agents to interact with dapps and execute transactions through any supported browser wallet. All operations are subject to user-defined constraints.
Security Model: The agent controls a separate wallet in an isolated browser profile. Never use your main wallet.
Setup
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:
- Install/setup your chosen wallet extension
- Create a NEW wallet (fresh seed phrase)
- The profile is saved for future automation
4. Fund the Wallet
Transfer a small amount to your agent wallet:
- Native token for gas (0.01-0.05 ETH/SOL recommended)
- Tokens for operations (start small, e.g., $50 USDC)
5. Configure Permissions
Edit permissions.json:
{
"constraints": {
"spendLimit": {
"daily": "50000000",
"perTx": "10000000"
},
"allowedChains": [1, 137, 42161, 8453],
"allowedProtocols": ["0x...uniswap", "0x...1inch"]
}
}
Available Actions
Connect to Dapp
connect <dapp-url>
Navigates to dapp and connects the agent wallet.
Execute Swap
swap <amount> <token-in> for <token-out> [on <dex>]
Executes a token swap on an allowed DEX.
Send Tokens
send <amount> <token> to <address>
Sends tokens to an address (within spend limits).
Sign Message
sign <message>
Signs an arbitrary message.
Check Balance
balance [token]
Returns wallet balances.
View History
history [count]
Shows recent agent transactions.
Constraints
| 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 |
Adding New Wallets
WalletPilot uses a plugin architecture. To add a new wallet:
- Create a new adapter in
src/wallets/ - Implement the
WalletAdapterinterface - Add selectors for the wallet's UI elements
- Register in
src/wallets/index.ts
See src/wallets/metamask.ts for reference implementation.
Safety
- Isolated Profile: Agent uses separate browser profile
- Separate Wallet: Completely separate from your main wallet
- Spend Caps: Hard limits prevent runaway spending
- Protocol Allowlist: Only whitelisted contracts can be called
- Full Logging: Every transaction is logged
- Revocation: Set
"revoked": trueto disable all actions
Architecture
src/
├── index.ts # Main entry point
├── browser.ts # Playwright browser management
├── guard.ts # Permission enforcement
├── logger.ts # Transaction logging
├── price.ts # USD price estimation
├── types.ts # TypeScript types
├── config.ts # Configuration loading
└── wallets/
├── index.ts # Wallet adapter registry
├── adapter.ts # Base adapter interface
├── metamask.ts # MetaMask
├── rabby.ts # Rabby
├── coinbase.ts # Coinbase Wallet
├── rainbow.ts # Rainbow
├── phantom.ts # Phantom
├── trust.ts # Trust Wallet
├── zerion.ts # Zerion
├── exodus.ts # Exodus
├── okx.ts # OKX Wallet
└── backpack.ts # Backpack
Comparison: WalletPilot vs MetaMask-only
| Feature | WalletPilot | MetaMask Agent Wallet |
|---|---|---|
| Wallets | 5+ supported | MetaMask only |
| Chains | EVM + Solana | EVM only |
| Setup | Choose your wallet | MetaMask required |
| Complexity | Higher | Lower |
| Use case | Multi-wallet orgs | MM-only users |
Choose WalletPilot if you need flexibility across wallets or Solana support. Choose MetaMask Agent Wallet for simpler MetaMask-only setup.
04 同仓库更多 Skills
troves
Deposit and withdraw from Troves DeFi yield vault strategies on Starknet. View available strategies, check positions, and manage vault deposits. Use this skill when the user mentions Troves, vault, yield vault, DeFi vault, strategy, yield farming, vault deposit, vault withdraw, earning yield through vaults, passive yield strategies, or wants to deposit into or withdraw from a yield strategy — even if they don't say "Troves" explicitly.
trade
Swap tokens on Starknet via Fibrous DEX aggregator. Supports per-provider selection (avnu, ekubo, or auto to race all). Use this skill when the user wants to swap, exchange, trade, convert, buy, or sell one token for another on Starknet. Also use when the user asks about token prices, exchange rates, DEX routing, best swap route, or wants to check how much they would receive for a given amount — even if they don't explicitly say "swap".
staking
Stake, unstake, claim, and compound rewards for STRK, WBTC, tBTC, SolvBTC, and LBTC on Starknet. View validators, pools, and staking positions. Use this skill when the user mentions staking, delegating, validators, staking pools, rewards, compounding, unstaking, earning yield, passive income on crypto, or wants to earn on their STRK or BTC tokens — even if they don't say "stake" explicitly.
send
Send STRK, ETH, or any ERC-20 token to a Starknet address. Supports simulation (dry-run) before execution. Use this skill when the user wants to send, transfer, pay, tip, or move tokens to another wallet address on Starknet. Also trigger when the user mentions sending funds to someone, making a payment, transferring assets, or moving crypto to a specific address — even if they just say "pay 10 STRK to 0x...".
portfolio
View a comprehensive DeFi portfolio dashboard and optimize portfolio allocation via automated rebalancing. Use this skill when the user wants an overview, summary, dashboard, total value, net worth, portfolio rebalancing, target allocation, or wants to see all their DeFi positions across Starknet at once. Also trigger when the user asks "what do I have", "show me everything", "how much am I worth", "my positions", "my investments", "rebalance my portfolio", "I want 50% ETH", "optimize my holdings", or any request for a holistic view of their Starknet holdings — even if they don't explicitly say "portfolio".
multi-swap
Execute multiple token swaps in a single Starknet transaction via Fibrous (default). Supports per-provider selection (avnu, ekubo, or auto to race all). Supports 2-3 swap pairs bundled into one multicall. Use this skill when the user wants to swap multiple token pairs at once, do batch swaps, execute several trades simultaneously, perform parallel swaps, or do bulk trading in one transaction. Also trigger when the user mentions "two swaps", "three swaps", "swap X and Y at the same time", or wants to convert multiple tokens in a single call.