# Payment Session

> Streaming + recurring billing for OpenClaw agents over x402 — meter pay-as-you-go usage or run a subscription, settle in batches through pay_x402, with a hard per-session spend cap. Non-custodial.

- **Type:** Skill
- **Install:** `agentstack add skill-parad0x-labs-openclaw-skills-payment-session`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [Parad0x-Labs](https://agentstack.voostack.com/s/parad0x-labs)
- **Installs:** 0
- **Category:** [Finance & Payments](https://agentstack.voostack.com/c/finance-and-payments)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [Parad0x-Labs](https://github.com/Parad0x-Labs)
- **Source:** https://github.com/Parad0x-Labs/openclaw-skills/tree/main/plugins/payment-session

## Install

```sh
agentstack add skill-parad0x-labs-openclaw-skills-payment-session
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Payment Session

x402 is discrete per-call. This adds the two billing shapes it lacks, **settled in
batches through x402** so you pay one transaction per settlement (not per tick —
the only economical way to bill micro-usage given fees + ATA rent):

- **metered** (pay-as-you-go): accrue per-use charges, settle when they cross a
  threshold.
- **subscription** (streaming): charge a fixed amount every period.

Pure accounting — it never moves money or holds a key. It tells the agent **when**
and **how much** to settle; the agent pays via `x402-pay`'s `pay_x402`. A hard
`maxTotalUsdc` lifetime cap bounds every session, so a runaway stream can't drain
past it.

## Tools

| Tool | Does |
|---|---|
| `open_payment_session` | start a `metered` or `subscription` session with a `maxTotalUsdc` cap |
| `meter_usage` | accrue pay-as-you-go usage (metered sessions) |
| `check_settlement_due` | is a payment due, and for how much? (amount is capped at remaining budget) |
| `record_settled` | record a paid settlement after `pay_x402` succeeds |
| `close_payment_session` | close; returns any final remainder to settle |

## The loop

```
open_payment_session(payee, mode, cap)
  metered:      meter_usage(...)  → check_settlement_due → if due: pay_x402(payee, amount) → record_settled
  subscription: (time passes)     → check_settlement_due → if due: pay_x402(payee, amount) → record_settled
close_payment_session  → settle any remainder
```

## Trust model

- **Non-custodial.** This plugin only does accounting; the actual USDC settlement
  is `pay_x402` (your own wallet signs). It never holds a key or moves funds.
- **Capped.** Every session carries a hard `maxTotalUsdc`; `check_settlement_due`
  never returns an amount above the remaining budget.

Pairs with [`x402-pay`](../../skills/x402-pay) (settlement) and
[`web0-onboard`](../web0-onboard) (identity + endpoint).

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [Parad0x-Labs](https://github.com/Parad0x-Labs)
- **Source:** [Parad0x-Labs/openclaw-skills](https://github.com/Parad0x-Labs/openclaw-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-parad0x-labs-openclaw-skills-payment-session
- Seller: https://agentstack.voostack.com/s/parad0x-labs
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
