安全可控的AI自主支付
简介
Z-Zero为AI Agent提供结构性安全支付能力,支持Gasless USDC和JIT虚拟卡双轨支付,卡号永不进入模型上下文,每笔交易需人工显式确认。
原始描述
Pay for things safely from your agent — gasless USDC on Base plus JIT single-use virtual cards via the Z-Zero MCP server. Card data never enters the model context, and no payment executes without explicit human approval.
通过你的 Agent 添加
安装目录:z-zero-payments/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
中文使用说明 来自收录源
核心用法
Z-Zero Payments是一个专为AI Agent设计的支付MCP服务器,赋予智能体购买SaaS订阅、API积分、实物商品的能力。其核心架构采用双轨支付系统:一是基于Base链的Gasless USDC支付,由Coinbase Paymaster赞助 gas 费用,用户钱包仅需持有USDC即可;二是JIT(即时生成)单次使用虚拟信用卡,针对仅支持传统卡支付的场景。每次支付前必须调用request_human_approval获取人工确认,且支持auto_pay_checkout自动识别支付类型并路由。
显著优点
安全性是Z-Zero的首要设计原则,而非事后补丁。其结构性安全特性包括:模型永远接触不到真实卡数据(PAN/CVV/有效期),仅处理一次性令牌;支付必须经过人工显式批准;令牌本身金额锁定、商户锁定,即使Agent被提示注入或幻觉攻击,最大损失也被限制在该令牌额度内。此外,密钥在首次连接时自动轮换(v1.5.0+),原始Passport Key立即失效,活钥仅存储于本地~/.z-zero/credentials(0600权限),且实现单机器单密钥的入侵检测机制。
潜在缺点与局限性
该技能对用户有较高的技术门槛:需要配置Node.js环境、处理API密钥轮换、理解MCP服务器架构。Gasless USDC依赖Coinbase Paymaster的赞助,若服务中断或策略调整可能影响体验。虚拟卡部分受限于Playwright浏览器的稳定性,Cloudflare防护的商户可能导致结账失败。此外,人工确认环节虽然保障了安全,但也牺牲了完全自动化的效率,不适合需要高频瞬时支付的场景。
适合的目标群体
主要面向:1) 需要为AI Agent赋予受控支付能力的开发者与高级用户;2) 企业自动化场景中的财务/运营团队,希望在效率与安全间取得平衡;3) 加密货币原生用户,希望利用USDC进行无gas体验的日常支付;4) 对支付安全有极高要求、无法接受传统"把卡交给AI"模式的敏感场景。
使用风险
依赖风险:运行时依赖npx和Node.js生态,版本漂移可能导致故障。密钥管理风险:虽然设计了自动轮换,但初始Z_ZERO_API_KEY的配置错误或泄露仍可能导致资金损失。网络智能局限:商户适配依赖共享的hints数据库,新平台或改版页面可能需要手动调试。合规风险:虚拟卡和加密货币支付在不同司法管辖区存在监管不确定性,跨境使用需自行评估。单点故障:Z-Zero服务器作为支付 orchestrator,若服务不可用则整个支付能力瘫痪。
技能正文
name: z-zero-payments
description: Pay for things safely from your agent — gasless USDC on Base plus JIT single-use virtual cards via the Z-Zero MCP server. Card data never enters the model context, and no payment executes without explicit human approval.
homepage: https://z-zero.xyz
user-invocable: true
metadata:
{
"openclaw":
{
"requires": { "bins": ["npx"], "env": ["Z_ZERO_API_KEY"] },
"primaryEnv": "Z_ZERO_API_KEY",
"emoji": "💳",
},
}
Z-Zero Payments
Give this agent the ability to buy things — SaaS subscriptions, API credits, physical goods — without ever seeing a card number.
Z-Zero is a payment MCP server with two rails behind one interface:
- Gasless USDC on Base for crypto-native checkouts (sponsored by Coinbase Paymaster — the wallet holds only USDC, no ETH, no gas UX).
- JIT single-use virtual cards for the 99% of the web that only takes cards: issued for one amount, one merchant, 1-hour TTL, burned after a single use.
The security model (read this first)
This skill is deliberately boring about money. Three properties are structural, not policy:
- The model never sees card data. No PAN, no CVV, no expiry ever enters your context. You only ever handle single-use tokens; the real card details are injected into the merchant's checkout form by a local Playwright process and wiped from RAM. If you ever think you need a card number, you are off the rails — stop.
- Humans approve money movement. Before any payment executes, call
request_human_approvalwith the exact final total and wait for confirmation. A purchase your operator didn't approve is a failed purchase, even if the checkout would have succeeded. - Blast radius is capped by design. Tokens are amount-locked and merchant-locked. A prompt-injected or hallucinating agent holding a Z-Zero token can lose at most that token's amount — not a wallet, not a card limit.
- Keys rotate on connect (v1.5.0+). Any Passport Key that was pasted into a conversation is treated as burned: on first connect the server swaps it for a fresh key stored only in
~/.z-zero/credentials(0600) — the live key never exists in any LLM context. One key = one machine; all agents on the machine share it, and a connect from a different machine disconnects this one (built-in intrusion alarm).
One-time setup
- Your operator gets a Passport Key (starts with
zk_live_) at z-zero.xyz/dashboard/agents and funds the wallet by sending USDC on Base to the deposit address shown there.
- Export it as
Z_ZERO_API_KEY in the agent environment. (This is only a bootstrap: on first connect the key auto-rotates and the live key moves to ~/.z-zero/credentials — the exported value goes stale by design.)
- Register the MCP server (OpenClaw runs MCP via mcporter). Add to
~/.openclaw/openclaw.json:
{
"mcpServers": {
"z-zero": {
"command": "npx",
"args": ["-y", "z-zero-mcp-server@latest"],
"env": { "Z_ZERO_API_KEY": "${Z_ZERO_API_KEY}" }
}
}
}
- Verify: list the server's tools (e.g.
mcporter list). You should see 12 tools including list_cards, auto_pay_checkout, and request_human_approval, plus the safe_checkout prompt.
Hard rules (non-negotiable)
- Always read the SOP resource first (
mcp://resources/sop) before your first payment in a session. It is the authoritative flow; this skill is the summary.
- Never call the REST endpoint
/api/tokens/resolve. It exists for the server-side injection process only. An agent calling it defeats the entire security model.
- Never proceed past a missing approval. No
request_human_approval confirmation → no payment. Do not interpret silence as consent.
- Respect the budget. If the operator set a cap and the final total (including shipping) exceeds it, abort and report — do not negotiate with yourself.
- Report honestly. "Filled the form" is not "paid". Read the result
status and relay it verbatim, including failures.
Buying something (the flow)
- Read
mcp://resources/sop (once per session).
get_merchant_hints for the target platform (Shopify, Etsy, WooCommerce…) and follow its pre_steps.
- Navigate the checkout until the final total including shipping is visible.
request_human_approval with item, merchant, and exact total. Wait.
- On approval:
auto_pay_checkout (it auto-detects crypto vs card checkout and routes — an EIP-681 crypto checkout settles as a gasless USDC transfer on Base; a card checkout uses a JIT single-use virtual card).
- Relay the result status. If a checkout failed for a technical reason, call
report_checkout_fail — failures feed the shared hints database, so the network gets smarter with every miss.
Wallet operations (read-only, no approval needed)
list_cards — card aliases and balances
check_balance — spendable USD for an alias
get_deposit_addresses — the Base USDC deposit address for top-ups
Troubleshooting
Z_ZERO_API_KEY is missing → key not exported or agent not restarted after config change.
401 Invalid API Key → key truncated on copy; re-copy the full zk_live_… value.
- Cloudflare-protected merchants may block the headless browser → tell the operator instead of retrying blindly.
Links
- Source: github.com/Dempty-glitch/Z-Zero-mcp (MIT)
- npm:
z-zero-mcp-server
- Official MCP Registry:
io.github.Dempty-glitch/z-zero-mcp
- Proof of a real gasless USDC transfer on Base mainnet:
0xdfd1f2f8…5d7a
zk_live_) at z-zero.xyz/dashboard/agents and funds the wallet by sending USDC on Base to the deposit address shown there.Z_ZERO_API_KEY in the agent environment. (This is only a bootstrap: on first connect the key auto-rotates and the live key moves to ~/.z-zero/credentials — the exported value goes stale by design.)~/.openclaw/openclaw.json:{
"mcpServers": {
"z-zero": {
"command": "npx",
"args": ["-y", "z-zero-mcp-server@latest"],
"env": { "Z_ZERO_API_KEY": "${Z_ZERO_API_KEY}" }
}
}
}
mcporter list). You should see 12 tools including list_cards, auto_pay_checkout, and request_human_approval, plus the safe_checkout prompt.- Always read the SOP resource first (
mcp://resources/sop) before your first payment in a session. It is the authoritative flow; this skill is the summary. - Never call the REST endpoint
/api/tokens/resolve. It exists for the server-side injection process only. An agent calling it defeats the entire security model. - Never proceed past a missing approval. No
request_human_approvalconfirmation → no payment. Do not interpret silence as consent. - Respect the budget. If the operator set a cap and the final total (including shipping) exceeds it, abort and report — do not negotiate with yourself.
- Report honestly. "Filled the form" is not "paid". Read the result
statusand relay it verbatim, including failures.
Buying something (the flow)
- Read
mcp://resources/sop (once per session).
get_merchant_hints for the target platform (Shopify, Etsy, WooCommerce…) and follow its pre_steps.
- Navigate the checkout until the final total including shipping is visible.
request_human_approval with item, merchant, and exact total. Wait.
- On approval:
auto_pay_checkout (it auto-detects crypto vs card checkout and routes — an EIP-681 crypto checkout settles as a gasless USDC transfer on Base; a card checkout uses a JIT single-use virtual card).
- Relay the result status. If a checkout failed for a technical reason, call
report_checkout_fail — failures feed the shared hints database, so the network gets smarter with every miss.
Wallet operations (read-only, no approval needed)
list_cards — card aliases and balances
check_balance — spendable USD for an alias
get_deposit_addresses — the Base USDC deposit address for top-ups
Troubleshooting
Z_ZERO_API_KEY is missing → key not exported or agent not restarted after config change.
401 Invalid API Key → key truncated on copy; re-copy the full zk_live_… value.
- Cloudflare-protected merchants may block the headless browser → tell the operator instead of retrying blindly.
Links
- Source: github.com/Dempty-glitch/Z-Zero-mcp (MIT)
- npm:
z-zero-mcp-server
- Official MCP Registry:
io.github.Dempty-glitch/z-zero-mcp
- Proof of a real gasless USDC transfer on Base mainnet:
0xdfd1f2f8…5d7a
mcp://resources/sop (once per session).get_merchant_hints for the target platform (Shopify, Etsy, WooCommerce…) and follow its pre_steps.request_human_approval with item, merchant, and exact total. Wait.auto_pay_checkout (it auto-detects crypto vs card checkout and routes — an EIP-681 crypto checkout settles as a gasless USDC transfer on Base; a card checkout uses a JIT single-use virtual card).report_checkout_fail — failures feed the shared hints database, so the network gets smarter with every miss.list_cards— card aliases and balancescheck_balance— spendable USD for an aliasget_deposit_addresses— the Base USDC deposit address for top-ups
Troubleshooting
Z_ZERO_API_KEY is missing → key not exported or agent not restarted after config change.
401 Invalid API Key → key truncated on copy; re-copy the full zk_live_… value.
- Cloudflare-protected merchants may block the headless browser → tell the operator instead of retrying blindly.
Links
- Source: github.com/Dempty-glitch/Z-Zero-mcp (MIT)
- npm:
z-zero-mcp-server
- Official MCP Registry:
io.github.Dempty-glitch/z-zero-mcp
- Proof of a real gasless USDC transfer on Base mainnet:
0xdfd1f2f8…5d7a
Z_ZERO_API_KEY is missing → key not exported or agent not restarted after config change.401 Invalid API Key → key truncated on copy; re-copy the full zk_live_… value.- Source: github.com/Dempty-glitch/Z-Zero-mcp (MIT)
- npm:
z-zero-mcp-server - Official MCP Registry:
io.github.Dempty-glitch/z-zero-mcp - Proof of a real gasless USDC transfer on Base mainnet:
0xdfd1f2f8…5d7a
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。