Wallet Payments logo

Wallet Payments

OrganizationPopular
Bitterbot-AI
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. Not for a plain balance or address check (call the wallet tool directly).

Overview

PublisherBitterbot-AI
Repositorybitterbot-desktop
Skill namewallet-payments
Stars
2.5K
Forks
417
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by Bitterbot-AI on GitHub. Read the source before you install it.

Installation

Install the Wallet Payments AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/Bitterbot-AI/bitterbot-desktop/tree/main/skills/wallet-payments
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Bitterbot-AI/bitterbot-desktop.git /tmp/bitterbot-desktop
mkdir -p .claude/skills
cp -r /tmp/bitterbot-desktop/skills/wallet-payments .claude/skills/wallet-payments
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Wallet Payments in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Wallet Payments on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Wallet Payments is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

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: look at the x402_headers object in the 402 response and find the amount in x-payment-amount. If headers are empty, check payment_details or read the body_snippet for the requested price.
  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.

Frequently asked questions

What does the Wallet Payments AI skill do?

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).

Why use Wallet Payments on TypingMind?

Because you install it once and use it with any model. Wallet Payments is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Wallet Payments in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/Bitterbot-AI/bitterbot-desktop/tree/main/skills/wallet-payments. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Wallet Payments?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Wallet Payments?

As many as you like. As long as a model supports skills, you can use Wallet Payments with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Wallet Payments AI skill free?

Yes. It is published on GitHub by Bitterbot-AI under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇