Xpersona
O

Openclaw Skill

CLAWHUB · Unverified

Spending guardrails for AI agents — budget limits, category restrictions, approval workflows, audit trails, and x402 crypto-micropayment authorization. Skill: Openclaw Skill Owner: maximberg Summary: Spending guardrails for AI agents — budget limits, category restrictions, approval workflows, audit trails, and x402 crypto-micropayment authorization. Tags: latest:1.2.0 Version history: v1.2.0 | 2026-05-18T09:51:54.404Z | auto letagentpay 1.2.0 - Policy engine now enforces 9 rules (was 8) for each purchase request. - Updated SKILL.md documentation to reflect the addit

62
Rank
84
Safety
958
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 958 downloads reported by the source. Last updated 10/12/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17c0e8yd8a77cx2d2qb8xfpr184fzxe:letagentpay
  1. Setup complexity is LOW. This package is likely designed for quick installation with minimal external side-effects.
  2. Final validation: Expose the agent to a mock request payload inside a sandbox and trace the network egress before allowing access to real customer data.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-maximberg-letagentpay/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

32,782 characters of source documentation, loaded on request.

Extracted files

4 files captured from the source.

SKILL.md

---
name: letagentpay
description: Spending guardrails for AI agents — budget limits, category restrictions, approval workflows, audit trails, and x402 crypto-micropayment authorization.
version: 1.2.0
homepage: https://github.com/LetAgentPay/letagentpay-openclaw
metadata:
  clawdbot:
    emoji: "💰"
    requires:
      env:
        - LETAGENTPAY_TOKEN
      bins:
        - node
      anyBins:
        - npx
        - bunx
    primaryEnv: LETAGENTPAY_TOKEN
---

# LetAgentPay — Spending Policy Middleware

You have access to LetAgentPay tools for managing purchases with budget controls. Every purchase request goes through a deterministic policy engine that checks 9 rules before approving.

## When to use these tools

Use LetAgentPay tools whenever the user asks you to:
- Buy, purchase, subscribe, order, or pay for anything
- Check remaining budget or spending limits
- Review past purchase requests
- Confirm that a purchase was completed
- Pay for an API or resource using crypto (x402/USDC)
- Check x402 wallet or on-chain payment budget

## Available tools

### `request_purchase`
Submit a purchase request for policy evaluation. Always call this BEFORE making any purchase.

**Required fields:**
- `amount` — the price (positive number in account currency)
- `category` — purchase category (call `list_categories` first if unsure)

**Optional fields:**
- `merchant_name` — store or service name
- `description` — what is being purchased
- `agent_comment` — explain WHY this purchase is needed (shown to the human reviewer)

**Response statuses:**
- `auto_approved` — purchase approved automatically, proceed with buying
- `pending` — sent to human for manual review, do NOT proceed yet
- `rejected` — policy denied this purchase, do NOT proceed

### `check_budget`
View current budget breakdown: total budget, amount spent, held (pending), and remaining.

### `list_categories`
Get all valid purchase categories. Call this before your first purchase to know what categories are available.

### `my_requests`
Check the status of a specific purchase request by its ID. Use this to check if a pending request has been approved.

### `list_requests`
List your purchase requests with optional filters: `status` (pending, approved, rejected, etc.), `limit`, `offset`.

### `confirm_purchase`
After completing an approved purchase, confirm the result:
- `success: true` — purchase completed (optionally provide `actual_amount` if different from requested, and `receipt_url`)
- `success: false` — purchase failed (budget is refunded)

### `x402_authorize`
Request authorization for an on-chain crypto-micropayment (USDC on Base). Call this when accessing an x402-enabled API that returns HTTP 402.

**Required fields:**
- `amount_usd` — payment amount in USD
- `pay_to` — recipient wallet address

**Optional fields:**
- `asset` — token symbol (default: USDC)
- `network` — CAIP-2 network ID (default: eip155:84532 for Base Sepolia)
- `resource_url` — URL of the resource being paid for
- `categ

README.md

# LetAgentPay Skill for OpenClaw

Spending guardrails for your OpenClaw agent. Set budgets, restrict categories, enforce per-request limits, and require human approval for large purchases — all through a deterministic policy engine, not prompt-based rules.

## What it does

Every time your agent wants to spend money, the request goes through 9 policy checks:

1. Agent status (active/paused)
2. Velocity (requests per minute / hour — runaway-loop guard)
3. Category (allowed/blocked)
4. Per-request limit
5. Schedule (time-of-day, day-of-week)
6. Daily spending limit
7. Weekly spending limit
8. Monthly spending limit
9. Total budget

If all checks pass and auto-approve criteria are met, the purchase proceeds instantly. Otherwise, you get a notification in your chat to approve or reject.

## Quick Start

### 1. Get a token

Sign up at [letagentpay.com](https://letagentpay.com) and create an agent to get your `agt_xxx` token.

Or self-host: see [self-hosting docs](https://github.com/LetAgentPay/letagentpay).

### 2. Set environment variable

```bash
export LETAGENTPAY_TOKEN=agt_xxx
```

### 3. Add MCP server to OpenClaw config

Edit `~/.openclaw/config.json`:

```json
{
  "mcpServers": {
    "letagentpay": {
      "command": "npx",
      "args": ["-y", "letagentpay-mcp"],
      "env": {
        "LETAGENTPAY_TOKEN": "${LETAGENTPAY_TOKEN}"
      }
    }
  }
}
```

### 4. Install the skill

```bash
cp -r . ~/.openclaw/workspace/skills/letagentpay
```

### 5. Try it

Tell your agent: "Buy me a Notion subscription for $10/month"

The agent will:
1. Call `request_purchase` with amount, category, and description
2. If auto-approved: confirm the purchase was made
3. If pending: notify you to approve via your chat channel

## Self-Hosted

Replace the MCP server config with your instance URL:

```json
{
  "mcpServers": {
    "letagentpay": {
      "command": "npx",
      "args": ["-y", "letagentpay-mcp"],
      "env": {
        "LETAGENTPAY_TOKEN": "${LETAGENTPAY_TOKEN}",
        "LETAGENTPAY_API_URL": "http://your-server:8000/api/v1"
      }
    }
  }
}
```

## Security Model

Policy enforcement happens **on the LetAgentPay server**, not on the agent's machine. The agent token (`agt_`) only grants access to submit purchase requests and check status — it cannot modify policies or approve its own requests.

This is a **cooperative enforcement** model: it protects against budget overruns, category violations, and scheduling mistakes. It does not sandbox a malicious agent with direct access to payment APIs.

> **Important:** Don't store payment API keys (Stripe, PayPal, etc.) in environment variables accessible to OpenClaw. LetAgentPay should be the only channel for agent spending. Use `pending` + manual approval for high-value purchases.

## Also works with

The same MCP server works with any MCP-compatible client:

- **Claude Desktop** / **Claude Code**
- **Cursor**
- **Any MCP client**

See [MCP server docs](https://github.com/LetAgentPay/letagentpay-mcp).

## S

_meta.json

{
  "ownerId": "kn72z1jw9w6y8jfdknn7vzyn1984etxm",
  "slug": "letagentpay",
  "version": "1.2.0",
  "publishedAt": 1779097914404
}

skill-card.md

## Description:

Spending guardrails for AI agents: budget limits, category restrictions, approval workflows, audit trails, and x402 crypto-micropayment authorization.

This skill is ready for commercial/non-commercial use.

## Publisher:

[maximberg](https://clawhub.ai/user/maximberg)

### License/Terms of Use:

MIT-0

## Use Case:

External developers and agent operators use this skill to route agent purchase requests through LetAgentPay policy checks before spending money or authorizing x402 micropayments.

### Deployment Geography for Use:

Global

## Known Risks and Mitigations:

Risk: Policy-approved purchases or x402 payments can proceed without a fresh confirmation prompt.

Mitigation: Use very small budgets, disable or tightly limit auto-approval for valuable transactions, and prefer manual approval for high-value purchases.

Risk: The MCP server package is installed without a pinned version and receives a payment token.

Mitigation: Pin and review the MCP package version before deployment, keep payment credentials outside the agent environment, and rotate LETAGENTPAY_TOKEN after suspected package or host compromise.

Risk: The guardrail model is cooperative and does not sandbox a malicious agent that can access payment APIs directly.

Mitigation: Do not expose direct payment credentials such as Stripe or PayPal keys to the agent; route spending only through LetAgentPay.

## Reference(s):

- [ClawHub Skill Page](https://clawhub.ai/maximberg/skills/letagentpay)
- [LetAgentPay](https://letagentpay.com)
- [LetAgentPay Agent API Reference](https://letagentpay.com/developers)
- [LetAgentPay MCP Server](https://github.com/LetAgentPay/letagentpay-mcp)
- [LetAgentPay Self-Hosting](https://github.com/LetAgentPay/letagentpay)

## Skill Output:

**Output Type(s):** [Guidance, API Calls, Configuration]

**Output Format:** [Markdown guidance with structured MCP tool invocations and JSON configuration examples]

**Output Parameters:** [1D]

**Other Properties Related to Output:** [Requires LETAGENTPAY_TOKEN, node, and either npx or bunx.]

## Skill Version(s):

1.2.0 (source: frontmatter and server release evidence)

## Ethical Considerations:

Users should evaluate whether this skill is appropriate for their environment, review any generated or modified files before relying on them, and apply their organization's safety, security, and compliance requirements before deployment.

Sponsored

Ads related to Openclaw Skill and adjacent AI workflows.