← 返回 Skills 市场
Agent Wallet (Lobster)
作者
chengtang05-hash
· GitHub ↗
· v0.1.0
· MIT-0
21
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install lobster-agent-wallet
功能描述
Manage a USDC wallet for AI agents on Base, supporting balance checks and secure x402 payments with configurable network and key settings.
使用说明 (SKILL.md)
🦞 Agent Wallet Skill
USDC wallet for AI agents on Base with x402 payment protocol support.
⚠️ Security
This skill interacts with real blockchain assets. Every precaution is taken.
| Rule | Status |
|---|---|
| Private key from env var only | ✅ WALLET_PRIVATE_KEY / .env |
| Private key never logged | ✅ Zero logging of key material |
| Payments need explicit --confirm | ✅ Double security gate |
| Address separate from key | ✅ WALLET_ADDRESS for read-only mode |
Phase 1 — Read-Only (Zero Dependencies)
export WALLET_ADDRESS=0x...
export WALLET_NETWORK=base-sepolia
node wallet.mjs balance
Phase 2 — x402 Payments (Requires viem)
npm install viem
export WALLET_PRIVATE_KEY=0x... # your wallet key (keep secret!)
export WALLET_ADDRESS=0x... # derived from key, or set manually
export WALLET_NETWORK=base-sepolia # or "base" for mainnet
node wallet.mjs pay \x3Curl> --confirm
CLI Reference
| Command | Requires | Description |
|---|---|---|
balance |
WALLET_ADDRESS | Check USDC + ETH balance |
status |
WALLET_ADDRESS | Show wallet config (safe) |
pay \x3Curl> |
+ PRIVATE_KEY + --confirm | Pay x402 resource |
Architecture
agent-wallet/
├── SKILL.md ← Usage docs
├── package.json ← Zero deps (viem optional for Phase 2)
├── .env.example ← Config template
├── wallet.mjs ← CLI entry point
└── lib/
├── core.mjs ← Core wallet (native fetch RPC, no deps)
├── crypto.mjs ← EIP-3009 signing (viem-powered)
└── x402-client.mjs ← x402 payment protocol client
Networks
| Network | Chain ID | RPC | Explorer |
|---|---|---|---|
| Base | 8453 | mainnet.base.org | basescan.org |
| Base Sepolia | 84532 | sepolia.base.org | sepolia.basescan.org |
Integration (for agents/skills)
import { getWallet, getBalances } from './lib/core.mjs';
// Read-only — safe
const wallet = await getWallet();
const { eth, usdc } = await getBalances(wallet);
// Payments (requires viem)
const { payX402 } = await import('./lib/x402-client.mjs');
const result = await payX402(url, privateKey, { confirm: true });
License MIT-0
能力标签
如何使用
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install lobster-agent-wallet - 安装完成后,直接呼叫该 Skill 的名称或使用
/lobster-agent-wallet触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Phase 2: Zero-dep balance queries + x402 payment via viem. Dual security gate (private key check + --confirm flag).
元数据
常见问题
Agent Wallet (Lobster) 是什么?
Manage a USDC wallet for AI agents on Base, supporting balance checks and secure x402 payments with configurable network and key settings. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 21 次。
如何安装 Agent Wallet (Lobster)?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install lobster-agent-wallet」即可一键安装,无需额外配置。
Agent Wallet (Lobster) 是免费的吗?
是的,Agent Wallet (Lobster) 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Agent Wallet (Lobster) 支持哪些平台?
Agent Wallet (Lobster) 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Agent Wallet (Lobster)?
由 chengtang05-hash(@chengtang05-hash)开发并维护,当前版本 v0.1.0。
推荐 Skills