Skip to content
Back to skills

Wallet

ASecurity

Pay x402 endpoints in USDC from the sandbox wallet via the `wallet` CLI, under the owner's spending policy. Use when an API answers 402 Payment Required with an x402 challenge.

  • 104 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 3, 2026
developmentrustgoapi

Works with

  • cli
  • api

Security analysis

A100/100

Scanned December 4, 2026

npx -y skills add intentic/intentic --skill wallet --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Wallet?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Wallet
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/intentic-wallet/badge)](https://www.skillsdirectory.com/skills/intentic-wallet)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: wallet
description: Pay x402 endpoints in USDC from the sandbox wallet via the `wallet` CLI, under the owner's spending policy. Use when an API answers 402 Payment Required with an x402 challenge.
---

# The sandbox wallet

This sandbox can hold a USDC balance and spend it on the open web: any endpoint that charges per request
over the x402 protocol (HTTP 402 + a machine-readable price). You reach it with the `wallet` command. The
wallet's signing key lives with the platform, never in this container: you can ask for a payment, and
nothing you can read or run can move money without the owner's policy allowing it.

## Commands

```sh
wallet status                                # address, network, balance, today's budget
wallet fetch <url> \
    --method POST --body '{"q":"…"}' \
    --max 0.50 \
    --why "one line on why this is worth paying for"
wallet history                               # what was paid, to whom, with tx hashes
```

`fetch` is an ordinary HTTP fetch that can pay: a free endpoint passes through untouched, and a 402 with an
x402 challenge starts the payment flow. The response body prints on stdout (composable); the receipt
("paid $0.10, tx 0x…") prints on stderr. Hold the command open: the owner's answer, ~2s of onchain
settlement, and the endpoint's real work all happen inside it. `--max` is your own ceiling for the one
call; use it whenever you have an expectation of what the price should be.

## How consent works: enforced, not promised

`fetch` does not spend on your say-so. The daemon makes the request itself, parses the endpoint's own
challenge, and checks the owner's policy: a hard per-payment ceiling, a daily cap, and host lists. Then
their guardrail for payments decides: under Comfort a payment up to their payment cap goes through unasked;
one above it, or to a host off the wallet's allow list, is queued for the owner: `fetch` answers at once
that nothing was paid and the payment waits for them as a need (price, recipient and host on it, none of it
quotable by you). Carry on with other work or end your turn; their yes wakes this conversation to make
exactly the same request again, which pays once at the price they saw. Under Secure every payment raises
an **approval card in the owner's chat**, which the call waits on, and only their click releases it.
One click covers exactly one payment. Every payment is signed as a
one-transfer authorization that expires within minutes: a failed or refused payment spends nothing.

What that leaves you:

1. **Ask when it genuinely helps.** Your judgment is the URL, the request body, `--max`, and the one-line
   `--why` the card shows. Prefer free tools when they answer just as well.
2. **Never loop payments.** A declined or expired card answers with a sentence: act on it, don't re-ask.
   Offer the same payment again only when the owner asked you to continue.
3. **Quote prices from the wallet, not from memory.** `wallet status` and the refusal sentences carry the
   real numbers (price, caps, what's left today).
4. **Trust is yours to weigh.** x402 is pay-then-serve with no refunds: a paid endpoint that answers
   garbage keeps the money. Prefer endpoints the task named or well-known providers; say what you paid and
   what came back.

One thing happens automatically and is worth knowing rather than working around. A turn that has read
anything from outside (a fetched page, a stranger's message) pays nothing unasked for the rest of that turn,
so every payment asks in chat however small: content you read must not be able to spend the owner's money
quietly.

## Refusals you will meet

- `no_wallet`: no wallet is connected; ask with `capabilities request wallet --why "…"`.
- `over_payment_cap` / `over_daily_cap`: the owner's numbers said no; the sentence names them. Relay it,
  don't work around it.
- `no_matching_rail`: the endpoint charges on a network or token this wallet doesn't hold (it pays USDC on
  one configured network).
- `unsupported_protocol`: the endpoint charges over MPP (a different 402 dialect); this wallet speaks x402
  only.

Nothing was spent in any of these cases; each refusal says so explicitly.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.