Agent Wallet CLI — 代理 Wallet 命令行工具
v1.4.0Manage crypto wallets (Ethereum, Solana, Polygon, Arbitrum, Base) via 代理-wallet-命令行工具. Use for 检查ing balances, 发送ing 令牌s (ETH/SOL/ERC-20/SPL), 签名ing messages, managing 应用rovals, viewing transaction 历史, x402 payments, and wallet lifecycle (init, unlock, lock, 导出). Supports HD wallets (BIP-39), 会话 令牌s for time-limited 访问, and JSON 输出 for 自动化. Open source — https://github.com/donald-jackson/代理-wallet-命令行工具
运行时依赖
安装命令
点击复制技能文档
代理 Wallet
Self-custodial crypto wallet 命令行工具 for AI 代理s. Your keys, your coins — the 代理 never sees your mnemonic after init.
Open source: github.com/donald-jackson/代理-wallet-命令行工具 — 审计 before use npm package: npmjs.com/package/代理-wallet-命令行工具 Self-custodial: Keys 加密ed locally with Argon2id + AES-256-GCM. No server, no third party. 会话-based 访问: 代理s use time-limited 令牌s, never your password directly. Multi-chAIn: Ethereum, Solana, Polygon, Arbitrum, Base — native coins and 令牌s. Security 模型 You 创建 or 导入 a wallet with a password → 加密ed on disk in ~/.代理-wallet-命令行工具/ You (or the 代理) unlock with the password → 获取 a time-limited 会话 令牌 (wlt_...) The 代理 uses only the 会话 令牌 — it expires automatically (default 1hr, max 24hr) No telemetry, no 分析, no server calls — only public blockchAIn RPCs for queries and transactions
导入ant: If you give the 代理 your WALLET_PASSWORD, it can perform any password-level operation (init, 导入, unlock, and 导出). For maximum security, unlock the wallet yourself and only give the 代理 the 会话 令牌. 会话 令牌s cannot 导出 mnemonics or change passwords — they can only 签名 transactions and read balances.
Before trusting this 技能 with real funds:
审计 the source: github.com/donald-jackson/代理-wallet-命令行工具 验证 the npm package matches the repo: npm 信息 代理-wallet-命令行工具 Test with small amounts first Use short 会话 durations (1hr default) 运行 in an isolated 环境 if possible 设置up npm 安装 -g 代理-wallet-命令行工具
验证 安装ation: 代理-wallet-命令行工具 --version
工作流 Init (first time): 代理-wallet-命令行工具 init --password "$WALLET_PASSWORD" Displays mnemonic ONCE — save it 安全ly 导入 (existing wallet): 代理-wallet-命令行工具 导入 --password "$WALLET_PASSWORD" --mnemonic "word1 word2 ..." Unlock: 代理-wallet-命令行工具 unlock --password "$WALLET_PASSWORD" --duration 3600 Returns 会话 令牌 (wlt_...) valid for specified duration Use: Pass --令牌 wlt_... to all commands (no password needed) Lock: 代理-wallet-命令行工具 lock when done
Note: --password and --mnemonic can be omitted to be prompted 安全ly via stdin (recommended for interactive use). When using in 自动化, --password is accepted but will show a 警告 about shell 历史 visibility.
Global Options
All commands accept:
--格式化 json|text (default: json) --wallet-dir (default: ~/.代理-wallet-命令行工具) --quiet — suppress 输出 --name — wallet name (default: "default") Commands Wallet Management 代理-wallet-命令行工具 init [--password ] [--word-count 12|24] [--name ] 代理-wallet-命令行工具 导入 [--password ] [--mnemonic ""] [--name ] 代理-wallet-命令行工具 unlock [--password ] [--duration ] [--name ] 代理-wallet-命令行工具 lock [--name ] 代理-wallet-命令行工具 导出 [--password ] --confirm [--name ]
添加resses & Balances 代理-wallet-命令行工具 添加ress --令牌 [--chAIn ethereum|solana] [--account-索引 0] 代理-wallet-命令行工具 balance --令牌 --chAIn [--network ] [--令牌-添加ress usdc]
导入ant: --chAIn is required for balance/发送/历史. --令牌 is the 会话 令牌 (wlt_...), --令牌-添加ress is the coin/令牌 contract or alias.
L2 networks: For Base, Polygon, Arbitrum use --chAIn ethereum --network base (etc). Default network is mAInnet.
Transfers # Native (ETH/SOL) 代理-wallet-命令行工具 发送 --令牌 --chAIn --to <添加r> --amount --yes [--dry-运行] [--no-relay] # ERC-20/SPL 令牌 代理-wallet-命令行工具 发送 --令牌 --chAIn --to <添加r> --amount --令牌-添加ress <添加r|alias> --yes [--no-relay]
--yes: Skip confirmation prompt (required for non-TTY/代理 use) --dry-运行: Simulate transaction without 发送ing --no-relay: Disable gasless relay fallback --network : Tar获取 network (default: mAInnet) x402 Payments 代理-wallet-命令行工具 x402 --令牌 [--method 获取] [--header "Key:Value"] [--body ] [--max-amount ] [--dry-运行] [--yes]
Make HTTP 请求s with automatic x402 payment. The 命令行工具 检测s 402 Payment Required 响应s, pays the 请求ed amount in stablecoins, and retries.
--max-amount : Maximum willing to pay (human-readable, e.g. "0.10") --dry-运行: Show payment requirements without paying --yes: Skip payment confirmation --header: Repeatable for multiple headers --body: 请求 body, or @filepath to read from file 应用rovals (ERC-20/SPL) 代理-wallet-命令行工具 应用rove --令牌 --chAIn --令牌-添加ress <添加r> --spender <添加r> --amount --yes [--network ] 代理-wallet-命令行工具 allowance --chAIn --令牌-添加ress <添加r> --owner <添加r> --spender <添加r> [--network ] 代理-wallet-命令行工具 transfer-from --令牌 --chAIn --令牌-添加ress <添加r> --from <添加r> --to <添加r> --amount --yes [--network ] 代理-wallet-命令行工具 应用rovals --令牌 [--chAIn ethereum] [--network mAInnet] [--limit 20]
签名ing 代理-wallet