微算力 · API 导航与自营网关
API 接入 EN
未登录登录
✨

lobstercash

lobstercash · v0.0.16
安全 A 级 作者 manu-xmint 公开目录收录
1.1k 下载 1 安装 2.2k 收藏 20 浏览

简介

lobstercash

原始描述

Use this skill when the user wants to spend money, make purchases, send crypto, pay for APIs, browse websites for shopping, complete checkout, or manage an A...

通过你的 Agent 添加

安装目录:lobstercash/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。

点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。

或者手动安装

Claude Code~/.claude/skills/lobstercash/
Codex CLI~/.codex/skills/lobstercash/
DeepSeek Harness~/.agents/skills/lobstercash/

包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可; 目录名不用换,也不要把包直接解压到 skills 根目录。 技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。

中文使用说明 来自收录源

核心用法

Lobster Cash CLI Skill 是专为 AI 代理设计的金融支付工具集,通过 lobstercash 命令行接口实现三大核心场景:在线购物支付(支持浏览器自动化或 BYO 浏览器模式)、加密货币操作(USDC 转账、余额查询、交易签名)以及 x402 协议 API 付费。使用前需完成代理注册与激活,通过 lobstercash agents register 和 set-active 建立身份,随后根据 browser-enabled 配置选择适合的购物流程。

对于在线购物,Skill 提供两种模式:内置浏览器自动化(purchase explore/purchase run)或外部浏览器工具驱动(cards reveal 获取虚拟卡凭证)。加密货币路径涵盖 crypto balance 查余额、crypto send 转账、crypto x402 fetch 支付 API 以及 crypto tx create 交易签名。所有资金操作均强制嵌入人工确认环节(Human-in-the-Loop),通过 crypto request 或 cards request 生成审批链接,待用户明确授权后继续执行。

显著优点

金融级安全架构:采用"人工在环"设计,关键操作(发卡、转账、交易签名)均需用户主动审批,避免未经授权的资金流动。虚拟卡单次使用机制(订阅功能即将上线)降低盗刷风险,USDC 加密支付利用区块链不可篡改特性确保透明可追溯。

双轨支付能力:同时支持法币通道(虚拟信用卡)与加密货币通道(USDC on Base/Solana),覆盖电商平台购物与 Web3 原生场景。x402 协议支持实现 HTTP 402 付费墙的无缝穿透,为 AI 代理调用付费 API 提供标准化解决方案。

灵活部署模式:内置浏览器自动化与 BYO(Bring Your Own)浏览器双模式适配不同运行环境,Agent 可根据自身工具链(MCP 服务器、IDE 浏览器工具等)自主选择驱动方式。

开发者友好:纯 Markdown 文档型 Skill 无隐藏可执行代码,MIT-0 开源许可,18 个参考文件提供详尽决策树与反模式指南,降低集成认知负担。

潜在缺点与局限性

来源可信度约束:维护者 manu-xmint 为 ClawHub 个人开发者,来源分级 T3,虽经安全扫描无威胁发现,但缺乏企业级背书,需用户自行评估信任边界。

外部依赖风险:核心功能依赖 @crossmint/lobster-cli 私有包及 Lobster Cash 云服务,存在供应商锁定与 API 变更风险。网络分析显示威胁情报评分 70 分(警告级),需持续关注平台运营状态。

功能成熟度差距:订阅支付、周期扣费等电商常见功能标注"即将上线",当前虚拟卡仅限单次使用,自动化退款、争议处理等消费者保护机制未在文档中体现。

链上确认延迟:加密货币操作需等待区块确认,默认行为已改为等待终态,但在网络拥堵场景可能影响实时性体验。

适合的目标群体

  • AI 代理开发者:需为智能体赋予自主支付能力的构建者,尤其是自动化采购、API 服务结算场景
  • Web3 自动化运营:DAO 财库管理、空投自动化、程序化交易等链上操作需求方
  • 跨境数字工作者:需匿名虚拟卡进行国际服务订阅、域名购买、云资源付费的隐私敏感用户
  • AI 服务集成商:通过 x402 协议实现"按调用付费"商业模式的基础设施需求方

常规使用风险

资金权限管理:Skill 本身无代码执行风险,但指导 Agent 操作的金融属性要求严格的权限隔离。建议:1) 设置低额度钱包与卡片限额;2) 定期审查交易记录;3) 验证商家域名防钓鱼。

CLI 版本漂移:自动更新机制可能引入破坏性变更,需关注 npm update 提示,强制更新时务必同步更新 Skill 定义。

链选择固化:代理注册时默认 Base 网络,切换至 Solana 需重建代理身份,多链策略需提前规划。

隐私泄露面:cards reveal 操作输出完整卡号、CVV、有效期等敏感信息,需确保执行环境日志安全,避免凭证残留。

技能正文


name: lobstercash description: 'Use this skill when the user wants to spend money, make purchases, send crypto, pay for APIs, browse websites for shopping, complete checkout, or manage an AI agent''s payment wallet. Covers buying products online with credit cards (with browser-automated checkout when available, or driven by the agent''s own browser tooling otherwise), sending tokens, paying for x402 protocol APIs, checking balances, depositing funds, browsing available services, and signing on-chain transactions — all with secure guardrails, and appropriate human controls. Trigger on any spending, wallet, or shopping intent: "buy this", "pay for that", "send tokens", "how much do I have", "what can I buy", "top up my wallet", "get a card", "set up payments", "find me something to buy", "complete the checkout", or "browse that site" — even if the user doesn''t mention "lobster", "crypto", or "Solana" directly.' metadata: version: "0.0.16"

Lobster Cash CLI Skill

The Lobster Cash CLI (lobstercash) gives AI agents payment tools — a blockchain wallet, virtual cards for buying anything online, optional cloud browser automation for browsing sites and completing checkout, and x402 protocol support for paying APIs — all with human approval in the loop. Use lobstercash <command> --help for full flag details on any command.

Installation

Install globally:

npm install -g @crossmint/lobster-cli

After installation, all commands are available via the lobstercash binary.

Steps to use this skill

1. Version check (automatic)

The CLI automatically checks for updates on every API call. If an update notice appears in the command output, tell the user and offer to run npm update -g @crossmint/lobster-cli. If the notice says the update is required, you must also update the skill from https://www.lobster.cash/install before continuing. Do not run separate version-check commands.

2. Select lobstercash agent to use

Every lobstercash command operates on the active agent. Before doing anything else, make sure the right agent is selected.

lobstercash agents list

Then follow this decision tree:

  1. You see yourself in the list and it says (active) → You're good. Move on.
  2. You see yourself in the list but it's NOT active → Run lobstercash agents set-active <agentId> with the matching ID, then move on.
  3. No agent matches you (or the list is empty) → Register a new one. Read the agents reference for how to register one.

How to recognize yourself: Match by name. If you are Claude Code, look for an agent named "Claude Code" or similar. Same for Cursor, Codex, Gemini, etc. If you aren't sure, ask the user which agent to use.

3. Route based on the user's intent

Determine which scenario applies and follow the corresponding section:

  • A) Buy something online (product, subscription, domain, service) → Buy something online
  • B) Pay for a paid API endpoint (x402 protocol) → Pay an API with x402
  • C) Anything else (check balance, send crypto, view status, link wallet, browse examples) → Other actions

A) Buy something online

Use when the user wants to purchase a product, subscription (not yet but comming soon), domain, or any item from an online store. The flow is the same either way: discover the product and price, size a virtual card, then drive checkout in a browser. What changes is who drives the browser for this install. Run:

lobstercash config get browser-enabled
  • browser-enabled: true → Lobster Cash's built-in browser automation (purchase explore / purchase run) drives the merchant site for you. Follow references/purchase-flow.md.
  • browser-enabled: false → Lobster Cash's built-in browser automation is not available for this install. Do not run purchase explore or purchase run. Follow references/purchase-flow-byo.md — the same flow, but you (the agent) drive the merchant site using whatever browser-automation tooling you already have available in this environment (your IDE's browser tool, an MCP browser server, OpenClaw, etc.), and use cards reveal to get the credentials to enter at checkout.

If browser-enabled: false and you have no browser-automation tooling available in this environment, tell the user you can't drive the browser yourself and offer to run the checkout manually: you'll get the card credentials with cards reveal and walk them through entering them at the merchant's checkout page themselves.


B) Pay an API with x402

Use when the user wants to call a paid API endpoint that uses the x402 payment protocol. The CLI handles the payment negotiation automatically: the server returns HTTP 402, the CLI pays with USDC from the agent wallet, and the server returns the content.

Step 1: Ensure the wallet has funds

lobstercash status

Route based on the result:

  • Wallet configured + has enough funds → proceed to step 2.
  • Wallet configured + insufficient funds → run lobstercash crypto request --amount <needed> --description "<description>" to top up, show the approval URL, wait for user confirmation, then proceed.
  • Wallet not configured → run lobstercash crypto request --amount <needed> --description "<description>" (bundles wallet creation + funding). Show the approval URL, wait for user confirmation, verify with lobstercash status, then proceed.

The --description must explain what the agent will spend the funds on — derive it from the user's task, not generic filler like "top up wallet".

See crypto request reference for the full crypto request flow.

Step 2: Fetch the paid endpoint

lobstercash crypto x402 fetch <url>

For POST requests add --json '{"key": "value"}'. For custom headers add --header "Authorization: Bearer <token>".

Step 3: Report the result

Report what the API returned (the body field), not the payment mechanics. Only mention the payment if the user asks.

If the fetch fails, add --debug and run again. See x402 reference for output format and common failures.


C) Other actions

For everything else — checking balances, sending crypto, viewing wallet status, linking a wallet, or browsing examples — use the matching command from the Quick Reference below and read the corresponding reference file for details.

Run the command, report its output. For read-only commands (crypto balance, status, examples), execute them directly and report what they say. Do not pre-check status and construct your own summary — the CLI output already handles unconfigured states with clear messaging. If a command fails with exit code 2 (wallet not set up), tell the user and offer to run lobstercash setup or the appropriate setup-bundling command.

Common actions:

  • Check balance: lobstercash crypto balance → balance reference
  • Send tokens: lobstercash crypto send --to <addr> --amount <n> --token usdc → send reference
  • View wallet status: lobstercash status → status reference
  • Browse examples: lobstercash examples → examples reference
  • Link wallet / configure agent (setup only): lobstercash setup → setup reference. Use when the user says "configure", "set up", "link wallet", or similar — and isn't trying to make a purchase.
  • Sign/submit a transaction: lobstercash crypto tx create → tx reference

For crypto operations (crypto send, crypto tx create), always run lobstercash status first to confirm the wallet is configured and has sufficient funds. If not, use lobstercash crypto request --amount <needed> --description "<description>" to fund it — see crypto request reference.

Quick Reference

lobstercash agents register --name "<name>" --description "<desc>" --image-url "<url>"  # register a new agent
lobstercash agents list                                          # list all agents
lobstercash agents set-active <agentId>                          # set active agent
lobstercash config get browser-enabled                           # check which browser drives online purchases (used in Section A)
lobstercash examples                                             # browse working examples
lobstercash status                                               # check status & readiness & wallet address
lobstercash setup                                                # link agent to wallet (no purchase needed)
lobstercash crypto balance                                       # check balances
lobstercash crypto send --to <addr> --amount <n> --token usdc    # send tokens
lobstercash crypto x402 fetch <url>                              # pay for API
lobstercash crypto request --amount <n> --description "<desc>"    # request crypto funding / top up (bundles wallet setup)
lobstercash crypto tx create|approve|status                      # low-level transaction management
lobstercash cards request --amount <n> --description "<desc>"     # request virtual card (single-use; subscriptions/--period coming soon)
lobstercash cards list                                           # list cards (includes card-id, phase, mandates) — used in both purchase flows to check for a reusable card
lobstercash cards reveal --card-id <id> --merchant-name "..." --merchant-url "https://..." --merchant-country US  # checkout credentials (used by the BYO browser flow, and for manual checkout)

The purchase explore and purchase run commands exist only when browser-enabled: true is configured — see the relevant purchase-flow reference for usage.

Output Contract

  • All commands produce human-readable output to stdout.
  • Errors go to stderr as plain text.
  • Exit 0 = success. Exit 1 = unexpected error. Exit 2 = wallet not set up (use cards request or crypto request to set up).

Decision Tree

  • Read examples if the user wants to browse working examples, or has no specific task yet
  • Read status if the user asks about agent status or payment readiness
  • Read balance if the user wants to check token balances
  • Read purchase-flow if the user wants to buy something online and browser-enabled: true — full flow using Lobster Cash's built-in browser automation
  • Read purchase-flow-byo if the user wants to buy something online and browser-enabled: false — same flow but the agent drives the browser with its own tooling
  • Read purchase if you need flag-level reference for purchase explore / purchase run (browser-enabled only)
  • Read cards request if the user wants to create a new virtual card for a purchase
  • Read crypto request if the user wants to request USDC, top up their wallet, or fund a crypto operation
  • Read cards if the user needs to list existing cards, reveal credentials, or check whether a card can be reused for a purchase
  • Read send if the user wants to send tokens to an address (Crypto Path)
  • Read x402 if the user wants to pay for an API via x402 protocol (Crypto Path)
  • Read tx if the user needs to sign or submit a transaction from an external tool (Crypto Path)
  • Read setup if the user wants to link the agent to a wallet without making a purchase
  • Read agents if the user wants to register, list, or set the active agent

Anti-Patterns

  • Skipping the browser availability check before an online purchase: Don't assume which purchase flow applies. When the user wants to buy something online, always run lobstercash config get browser-enabled first (Section A) before deciding which purchase-flow reference to load. The flag determines whether to use purchase explore / purchase run or to drive the browser yourself with cards reveal for credentials.
  • Calling purchase explore / purchase run when browser-enabled: false: Those commands require the built-in browser automation. If the flag is false, follow references/purchase-flow-byo.md instead.
  • Running crypto commands without checking status first: Always run lobstercash status before crypto send, crypto x402 fetch, or crypto tx create. If the wallet isn't configured or has insufficient funds, the command will fail with a confusing error. Check first, fund if needed, then execute.
  • Running setup when the user wants to buy something: If the user wants to make a purchase, don't run setup first — use cards request or crypto request which bundle setup automatically. Only use lobstercash setup when the user explicitly wants to link the agent to their wallet without buying anything.
  • Re-running setup when the agent is already configured: If lobstercash status shows the wallet is already configured, do not generate a new setup session. The existing configuration is valid. Only start a fresh setup if the user explicitly tells you their current configuration is broken and needs to be regenerated.
  • Asking the user for info the CLI can fetch: Check balance before sending. Check status before acting. Read command output before asking questions.
  • Running write commands in loops: One attempt, read the result, then decide. Read operations (crypto balance, status, examples) are idempotent and safe to repeat. Write operations (crypto send, cards request) are not.
  • Ignoring terminal status: A pending transaction is not a success. All write commands now wait for on-chain confirmation by default.
  • Polling for HITL approval: When a command returns an approval URL, the user must tell you they approved. Do not auto-poll.
  • Running commands before registering an agent: Always ensure an agent exists via lobstercash agents list before running any other command. If you need to work with a different agent, use lobstercash agents set-active.
  • Asking the user which chain to use: Agents default to Base silently. Do not ask "which chain do you want?" at registration — just register on Base. Only pass --network solana if the user has explicitly told you they need Solana, or when the context clearly implies the agent must operate on Solana (e.g. they already hold USDC on Solana, or the integration they want is Solana-only). Chain is fixed per agent; switching later means registering a new one.
  • Recommending cards for crypto-only integrations: If the integration only uses crypto, don't suggest a virtual card.
  • Requiring USDC for card-supported integrations: Virtual cards are backed by credit cards, not USDC. Don't tell the user to "add funds" when the integration accepts cards.
  • Treating x402/send/tx as separate user flows: They all go through the same Crypto Path. The only split is credit card vs crypto.
  • Suggesting crypto request or cards request when the user just wants to connect: If the user wants to check balance, run a crypto command, or simply link their wallet — without topping up or creating a card — guide them through lobstercash setup first. Don't jump to crypto request or cards request unless the user actually wants to fund the wallet or make a purchase.
  • Jumping to readiness checks before showing options: Show what's available first (via examples), then check payment readiness only when the user wants to try one.
  • Assuming an integration's payment method: Never guess whether a flow uses cards or crypto. Run lobstercash status and read the payment methods output before choosing a path.

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

没有标签

同类 Skill