技能详情(站内镜像,无评论)
许可证:MIT-0
MIT-0 ·免费使用、修改和重新分发。无需归因。
版本:v1.0.3
统计:⭐ 0 · 329 · 0 current installs · 0 all-time installs
⭐ 0
安装量(当前) 0
🛡 VirusTotal :良性 · OpenClaw :良性
Package:adambrainai/payspawn
安全扫描(ClawHub)
- VirusTotal :良性
- OpenClaw :良性
OpenClaw 评估
The skill's instructions, required credential, and install step are consistent with a tool that enforces on-chain spending limits for agents, but you should verify the npm package, smart contract, and dashboard before trusting real funds.
目的
The SKILL.md describes an on-chain spend-permission workflow and an SDK for enforcing limits on Base/USDC. The declared behaviors (daily cap, per-tx cap, whitelist, fleet provisioning) match the SDK usage examples and the provided contract address, so the requested capabilities are coherent with the stated purpose.
说明范围
Runtime instructions are limited to installing the @payspawn/sdk, creating a credential via the payspawn dashboard, setting the PAYSPAWN_CREDENTIAL env var, and calling SDK methods (pay, fetch, check, pause/unpause). The instructions do not ask the agent to read unrelated files or credentials, nor to exfiltrate data to unexpected endpoints.
安装机制
This is an instruction-only skill that recommends installing @payspawn/sdk from npm (>=5.3.0). Using an npm package is expected for this functionality, but the package and its repository should be audited by the user: npm packages can contain arbitrary code, so verify the package name, author, and source repo before installing or running with real funds.
证书
Only one optional environment credential (PAYSPAWN_CREDENTIAL) is referenced in the SKILL.md and it is appropriate for an on-chain spend-permission system. This credential is described as a scoped spend permission (not a private key) and scope/expiry controls are sensible. Note: granting such a credential and approving the on-chain USDC allowance does enable on-chain transfers up to the configured limits, so verifying the contract and using mi…
持久
Skill metadata does not force permanent inclusion (always: false) and it does not request system-wide config or other skills' credentials. The skill is instruction-only and does not claim to modify other skills or agent infrastructure.
综合结论
This skill appears internally consistent for enforcing on-chain spending limits, but you should not hand it real funds without verification. Before installing or using it: (1) verify the npm package (@payspawn/sdk) and its maintainer (check the package page, author, and GitHub repo source code and commit history); (2) verify the smart contract address and source on Base (review verified contract code on a block explorer); (3) confirm the paysp…
安装(复制给龙虾 AI)
将下方整段复制到龙虾中文库对话中,由龙虾按 SKILL.md 完成安装。
请把本段交给龙虾中文库(龙虾 AI)执行:为本机安装 OpenClaw 技能「PaySpawn — On-Chain Spending Limits for AI Agents」。简介:Add spending controls to any AI agent that makes API payments. Supports x402 au…。
请 fetch 以下地址读取 SKILL.md 并按文档完成安装:https://raw.githubusercontent.com/openclaw/skills/refs/heads/main/skills/adambrainai/payspawn/SKILL.md
(来源:yingzhi8.cn 技能库)
SKILL.md
---
name: payspawn
description: "Add spending controls to any AI agent that makes API payments. Supports x402 auto-pay, daily limits, per-transaction limits, address allowlists, and fleet provisioning. Use when your agent calls paid APIs or sends payments autonomously. Works on Base with USDC."
requires:
env:
- name: PAYSPAWN_CREDENTIAL
description: "Scoped spending credential issued from payspawn.ai/dashboard. This is NOT a private key — it is a base64-encoded spend permission authorizing the PaySpawn V5 contract to transfer USDC up to the limits you set. The credential encodes: daily cap, per-transaction limit, optional address whitelist, and expiry. Revocable on-chain at any time via dashboard or ps.agent.pause(). Set the lowest limits sufficient for your use case."
secret: true
required: false
lifetime: "Up to 1 year from creation (set at credential creation time). Revocable immediately on-chain — revocation takes effect on the next transaction attempt."
minPrivilege: "Set daily cap to the minimum USDC needed per day. Use allowedTo address whitelist to restrict payment destinations. Use per-tx cap to limit single-payment exposure."
install:
- package: "@payspawn/sdk"
registry: "npm"
version: ">=5.3.0"
source: "https://www.npmjs.com/package/@payspawn/sdk"
audit: "https://github.com/adambrainai/payspawn"
metadata:
{
"openclaw": {
"emoji": "🔐",
"color": "#F65B1A"
}
}
---
# PaySpawn — Agent Payment Controls
Set spending limits for AI agents that make payments autonomously. Limits are enforced at the smart contract level on Base — not in software, not on a server. The contract cannot be overridden.
## Install
```bash
npm install @payspawn/sdk
```
## Credential Setup (One Human Step)
Before the agent can make payments, the wallet owner must create a credential:
1. Go to [payspawn.ai/dashboard](https://payspawn.ai/dashboard)
2. Connect your wallet (MetaMask, Coinbase Wallet, or any USDC wallet on Base)
3. Approve a USDC spending ceiling (one on-chain transaction, ~$0.005 gas)
4. Set limits: daily cap, per-transaction cap, optional address whitelist
5. Sign the credential (EIP-712 signature — no gas, no transaction)
6. Copy the credential string and set it as `PAYSPAWN_CREDENTIAL` in your environment
The credential is not a private key. Your wallet key never leaves your control. The agent can only spend within the limits you set — the contract enforces this and cannot be bypassed.
## Usage
```typescript
import { PaySpawn } from "@payspawn/sdk";
const ps = new PaySpawn(process.env.PAYSPAWN_CREDENTIAL);
// Auto-pay x402 APIs within your set limits
const res = await ps.fetch("https://api.example.com/endpoint");
// Send a payment
await ps.pay("0xRecipientAddress", 1.00);
// Check balance and remaining daily allowance
const { balance, remaining } = await ps.check();
// Pause all payments instantly (on-chain, immediate effect)
await ps.agent.pause();
// Resume payments
await ps.agent.unpause();
```
## Fleet Mode
Provision multiple agent credentials from one shared pool. One wallet funds the pool; each agent gets its own credential with its own daily limit.
```typescript
// Create a shared budget pool
const pool = await ps.pool.create({ totalBudget: 100, agentDailyLimit: 10 });
// Fund the pool: send USDC to pool.address from your wallet
// Provision credentials for each agent
const fleet = await ps.fleet.provision({ poolAddress: pool.address, count: 10 });
// fleet[0], fleet[1], ... → credential strings, one per agent
```
## Contract Enforcement
Every payment is checked by the PaySpawn V5 contract on Base before any USDC moves:
- Daily allowance exceeded → transaction reverts
- Amount exceeds per-tx cap → transaction reverts
- Recipient not on whitelist → transaction reverts
No API override. No config flag. Math runs first, every time.
**Contract address (Base Mainnet):** `0xaa8e6815b0E8a3006DEe0c3171Cf9CA165fd862e`
**USDC (Base):** `0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913`
## Links
- [payspawn.ai](https://payspawn.ai)
- [payspawn.ai/dashboard](https://payspawn.ai/dashboard)
- [@payspawn](https://x.com/payspawn)
- [npm: @payspawn/sdk](https://www.npmjs.com/package/@payspawn/sdk)