Skip to content
Skill

Pay with any token

Pays HTTP 402 payment challenges with Tempo CLI, funding the wallet via token swaps

Pay with any token is an open-source agent skill for finance and payments. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
236
Last commit
License
MIT
Listing updated

Similar skills

About Pay with any token

This skill lets an agent call paid HTTP APIs that answer with a 402 Payment Required challenge. It drives the Tempo CLI to install and log in to a Tempo wallet, discover paid services, and make requests that settle automatically when the wallet holds enough funds.

When the Tempo wallet is short, the skill walks through a funding path: it checks ERC-20 balances on supported source chains, swaps the source token to USDC through the Uniswap Trading API, bridges USDC to the Tempo wallet, and swaps to the required payment token on Tempo if needed. It also covers x402 challenges using EIP-3009 signed authorizations. Every transaction and signature is preceded by a confirmation step that shows the amount, token and destination.

It expects the Tempo CLI, cast from Foundry, jq, and a Uniswap API key. Signing uses either a cast keystore account or a private key in an environment variable, and the skill warns against committing keys.

When your agent uses it

Pay HTTP 402 payment challenges using tokens via the Tempo CLI and Uniswap Trading API. Use when the user encounters a 402 Payment Required response, needs to fulfill a machine payment, mentions "MPP", "Tempo payment", "pay for API access", "HTTP 402", "x402", "machine payment protocol", "pay-with-any-token", "use tempo", "tempo request", or "tempo wallet".

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 3 files (59 KB) on GitHub on 3 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

This skill ships in the uniswap-trading plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

/plugin marketplace add Uniswap/uniswap-ai
/plugin install uniswap-trading@uniswap-ai

Or copy only this skill to ~/.claude/skills/pay-with-any-token:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/pay-with-any-token &&
cp -R "$tmp/packages/plugins/uniswap-trading/skills/pay-with-any-token" ~/.claude/skills/pay-with-any-token &&
rm -rf "$tmp"

For one project only, put the folder in .claude/skills/pay-with-any-token inside it instead.

Claude Code docs on skills

Copy the skill folder to ~/.agents/skills/pay-with-any-token to use it in every repository:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/pay-with-any-token &&
cp -R "$tmp/packages/plugins/uniswap-trading/skills/pay-with-any-token" ~/.agents/skills/pay-with-any-token &&
rm -rf "$tmp"

For one repository only, put the folder in .agents/skills/pay-with-any-token inside it instead.

Codex docs on skills

Copy the skill folder to ~/.cursor/skills/pay-with-any-token to use it in every project:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/pay-with-any-token &&
cp -R "$tmp/packages/plugins/uniswap-trading/skills/pay-with-any-token" ~/.cursor/skills/pay-with-any-token &&
rm -rf "$tmp"

For one project only, put the folder in .cursor/skills/pay-with-any-token inside it instead.

Cursor docs on skills

Run in a terminal (add --scope workspace to install it for the current workspace only):

gemini skills install https://github.com/Uniswap/uniswap-ai.git --path packages/plugins/uniswap-trading/skills/pay-with-any-token

Or copy the folder to ~/.gemini/skills/pay-with-any-token yourself.

Gemini CLI docs on skills

For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/pay-with-any-token:

tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/pay-with-any-token &&
cp -R "$tmp/packages/plugins/uniswap-trading/skills/pay-with-any-token" ~/.copilot/skills/pay-with-any-token &&
rm -rf "$tmp"

For one project only, put the folder in .github/skills/pay-with-any-token inside it instead.

VS Code docs on skills

Get the folder:

git clone --depth 1 https://github.com/Uniswap/uniswap-ai.git

Then copy uniswap-ai/packages/plugins/uniswap-trading/skills/pay-with-any-token into your agent's skills folder as pay-with-any-token. Agents that support SKILL.md read one folder per skill.

The SKILL.md format

What it does

Tempo CLI setup
Installs the Tempo CLI, guides passkey login and confirms the wallet status and balance.
402 challenge loop
Retries paid requests after parsing MPP challenges and falls back to funding when balance is low.
Token funding via Trading API
Swaps and bridges ERC-20 holdings from supported chains into the Tempo wallet.
On-Tempo stablecoin swap
Swaps a Tempo stablecoin into the required payment token through the Stablecoin DEX.
x402 EIP-3009 payments
Signs TransferWithAuthorization payloads and sends them in an X-PAYMENT header.
Confirmation gates
Requires explicit user approval before each approval, swap, bridge or signature.

Good for

  • Call a paid API that returns a 402 response using funds in my Tempo wallet
  • Top up my Tempo wallet by swapping and bridging USDC from Base
  • Check my Tempo wallet address and balance before making paid requests
  • Find paid services in the Tempo catalog and call one with a JSON body
  • Pay an x402 challenge by signing an EIP-3009 authorization

Pay with any token FAQ

What does the skill need before Pay with any token can pay?

It needs the Tempo CLI installed and logged in with a passkey, a Uniswap API key for the Trading API, and cast and jq installed. For funding, it also needs a source wallet with ERC-20 tokens on a supported chain.

When does the skill trigger?

It triggers when the user hits an HTTP 402 Payment Required response or mentions MPP, Tempo payments, x402, machine payments or the Tempo wallet.

Does Pay with any token move funds without asking?

No. Each approval, swap, bridge and signed authorization requires an explicit user confirmation first.

Which chains can Pay with any token fund from?

The Trading API flow covers USDC on Base, Ethereum and Arbitrum, and swaps from other liquid tokens on supported chains. Balance checks reference Base and Ethereum.

How do I install Pay with any token in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/pay-with-any-token to use it in all your projects, or to .claude/skills/pay-with-any-token in one project. Or install the uniswap-trading plugin, which includes it: /plugin marketplace add Uniswap/uniswap-ai, then /plugin install uniswap-trading@uniswap-ai.

Does Pay with any token run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

Which AI agents can use Pay with any token?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

What are the best alternatives to Pay with any token?

The closest alternatives to Pay with any token are Pay with app, Agent payment x402, Pay via agent wallet, Accept agent payments and Use circle CLI.

Where this comes from

  • Description: from the skill's own SKILL.md.

More from Uniswap/uniswap-ai

  1. Guides your agent through configuring Uniswap CCA token auction contract parameters

    • Open source
    • 236 GitHub stars
    • Finance and payments
  2. Guides an agent through deploying Uniswap CCA auction contracts via the factory

    • Open source
    • 236 GitHub stars
    • Developer tools
  3. Plans Uniswap liquidity positions and generates pre-filled position deep links

    • Open source
    • 236 GitHub stars
    • Finance and payments
  4. Plans token swaps on Uniswap across chains and builds pre-filled swap links

    • Open source
    • 236 GitHub stars
    • Finance and payments
  5. Guides an agent to scaffold Uniswap v4 hook contracts via the OpenZeppelin Wizard MCP

    • Open source
    • 236 GitHub stars
    • Developer tools
  6. Security checklists and vulnerability patterns for building Uniswap v4 hooks safely

    • Open source
    • 236 GitHub stars
    • Developer tools