Skip to content
Agentmart
Submit a tool

wallet-payments

Use when web_fetch returns HTTP 402, an API offers a paid tier or micro-toll, another agent charges USDC, or the user asks you to pay, tip or buy.

Skill by Bitterbot-AI

IndexedMIT★ 2,478
Write a review

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/bitterbot-ai-wallet-payments

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Use when web_fetch returns HTTP 402, an API offers a paid tier or micro-toll, another agent charges USDC, or the user asks you to pay, tip or buy. Not for a plain balance or address check (call the wallet tool directly).

Use cases: backend, agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/wallet-payments

What's inside

Skill name
wallet-payments
Description
Use when web_fetch returns HTTP 402, an API offers a paid tier or micro-toll, another agent charges USDC, or the user asks you to pay, tip or buy. Not for a plain balance or address check (call the wallet tool directly).
License
MIT
Instructions
52 lines in SKILL.md · view on GitHub

Files (1)

  • SKILL.md

SKILL.md (first lines)

# Wallet payments (USDC on Base)

You have a Coinbase Smart Wallet on Base loaded with USDC. Gas is sponsored by the Coinbase Paymaster (zero ETH needed) and USDC on Base has near-zero transaction fees, so micropayments are viable.

## Wallet actions

- `get_balance` (token="USDC"): check your USDC balance before making payments.
- `get_address`: the wallet address (for the user to fund externally).
- `pay_for_resource`: pay for a paywalled HTTP resource via the x402 protocol. Signs the payment AND fetches the content in one call. Requires `resource_url` and `amount`; optional `reason`.
- `fund_wallet`: a URL for the user to fund the wallet (Coinbase Onramp on mainnet, faucet on testnet).
- `send_usdc`: send USDC to an address for user-initiated transfers, paying other agents or services, purchasing digital goods, or any prompt-driven payment.
- `get_transaction_history`: recent wallet transactions.

## Approval

Sends and payments are held for the owner's approval unless a standing spend grant covers them. When a wallet call returns `APPROVAL-REQUIRED` or `APPROVAL-PENDING` with an id like `rv-1a2b3c4d`: the action was NOT performed, the owner has been asked, and the gateway will carry it out for them if they approve. Tell the user it is waiting for their approval, do not retry the call, and do not try another way to make the same payment. You will be told the outcome in a later turn.

## Handling paywalls (HTTP 402)

When `web_fetch` returns a 402 Payment Required response, follow this workflow exactly:

1. **Extract the price**: if the 402 result has `price_usdc`, use it. The tool derives it from the x402 `accepts[]` offer only when the asset is USDC; `x402_offer` names the asset, network and amount in atomic units. Otherwise look at `x402_headers` for `x-payment-amount`. Do not convert raw `amount` or `maxAmountRequired` values from `payment_required`, `payment_details` or the `body_snippet` yourself: they are atomic units (`10000` is 0.01 USDC) and easy to misread, so treat the price as unclear.
2. **Handle unclear prices**: if you cannot confidently determine the price, DO NOT GUESS. Ask: "This resource requires payment, but the price isn't clear. Would you like me to proceed, and what is your maximum budget?"
3. **Check balance and rules**: call `get_balance` (token="USDC"). If the cost exceeds your spending limits, ask the user for permission.
4. **Inform the user**: state the cost and your intent briefly (for example "This endpoint requires a 0.15 USDC micropayment. I have the funds and am purchasing it now.").
5. **Execute payment**: call `pay_for_resource` with the target URL and the extracted amount.
6. **Process content directly**: `pay_for_resource` returns the un-paywalled content. Do NOT call `web_fetch` again after paying; use the `pay_for_resource` result immediately.

## Beyond paywalls

Use the wallet proactively when it helps complete a task:

- **API rate-limit upgrades**: a 429 that offers a paid tier; use `pay_for_resource` or `send_usdc` to upgrade access and continue.
- **Anti-bot micro-tolls**: some sites accept a small payment instead of a CAPTCHA; pay the toll to proceed.
- **Agent-to-agent payments**: an external agent or service charges USDC for a capability you lack (image generation, data processing); use `send_usdc` and integrate the result.
- **Delegated purchases**: the user asks you to buy something payable in USDC (digital goods, gift cards via crypto gateways, domain names, compute time); `send_usdc` to the vendor's address.
- **Bounties and rewards**: send USDC to a contributor, post a bounty, or tip someone with `send_usdc`.

## Spending rules

- ALWAYS tell the user the exact cost before any payment. Never pay silently.
- Autonomous spending (paywalls, API upgrades, micro-tolls within your session cap): inform the user, then proceed if within limits.
- Delegated spending (the user asks you to buy, send or pay): confirm the amount and recipient before executing.
- Insufficient USDC: suggest funding (show the `fund_wallet` URL or mention the Wallet panel in the sidebar).
- Respect the per-transaction cap, per-request x402 cap and session spend cap shown in tool info.
- Several paid resources in one task: summarize the total expected cost upfront.

## Soft sell

When the balance is $0.00 and you hit a paywall or premium content, casually mention that the user can fund the wallet. Never be pushy or repetitive about it.

From Bitterbot-AI/bitterbot-desktop, MIT.

More from Bitterbot-AI/bitterbot-desktop

Compare and alternatives

    Featured in

    Signals

    Stars
    2,478
    Forks
    422
    Open issues
    5
    Last commit (this folder)
    Oct 21, 2026 (6 days ago)
    Last release
    Oct 22, 2026 (5 days ago)

    From GitHub (fetched Oct 24, 2026).

    Details

    License
    MIT
    First seen
    Oct 24, 2026
    Last checked
    Oct 24, 2026

    More from Bitterbot-AI

    Cite this page

    wallet-payments skill. Agent Mart. https://agentmart.dev/skills/bitterbot-ai-wallet-payments (last updated 2026-10-24)