# Pay with any token

> Pay with any token is an open-source agent skill for finance and payments. Pays HTTP 402 payment challenges with Tempo CLI, funding the wallet via token swaps. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Uniswap/uniswap-ai/tree/main/packages/plugins/uniswap-trading/skills/pay-with-any-token
- **Repository:** https://github.com/uniswap/uniswap-ai
- **GitHub stars:** 236
- **License:** MIT
- **Skill name:** pay-with-any-token
- **Collection:** https://github.com/Uniswap/uniswap-ai
- **Categories:** [finance and payments](https://ai-powered.com/categories/finance-and-payments)
- **Listing updated:** 2026-12-02

## About

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

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Uniswap/uniswap-ai/tree/HEAD/packages/plugins/uniswap-trading/skills/pay-with-any-token)
- [Asks for: Read, Glob, Grep, Bash(curl:*), Bash(jq:*), Bash(cast:*), Bash(tempo:*), Bash(*/.local/bin/tempo:*)…](https://github.com/Uniswap/uniswap-ai/blob/HEAD/packages/plugins/uniswap-trading/skills/pay-with-any-token/SKILL.md)
- [License: MIT](https://github.com/Uniswap/uniswap-ai/tree/HEAD/packages/plugins/uniswap-trading/skills/pay-with-any-token)

## Features

- **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

## Install

### Claude Code

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

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

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

```sh
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.

### Codex

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

```sh
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.

### Cursor

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

```sh
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.

### Gemini CLI

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

```sh
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.

### VS Code

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

```sh
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.

### Other agents

Get the folder:

```sh
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.

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

## Alternatives

- [Pay with app](https://ai-powered.com/skills/pay-with-app): Pay with app is an open-source agent skill for finance and payments.
- [Agent payment x402](https://ai-powered.com/skills/agent-payment-x402): Agent payment x402 is an open-source agent skill for finance and payments.
- [Pay via agent wallet](https://ai-powered.com/skills/pay-via-agent-wallet): Pay via agent wallet is an open-source agent skill for finance and payments.
- [Accept agent payments](https://ai-powered.com/skills/accept-agent-payments): Accept agent payments is an open-source agent skill for finance and payments.
- [Use circle CLI](https://ai-powered.com/skills/use-circle-cli): Use circle CLI is an open-source agent skill for finance and payments.
- [Use agent wallet](https://ai-powered.com/skills/use-agent-wallet): Use agent wallet is an open-source agent skill for finance and payments.
- [Fund agent wallet](https://ai-powered.com/skills/fund-agent-wallet): Fund agent wallet is an open-source agent skill for finance and payments.
- [Use user controlled wallets](https://ai-powered.com/skills/use-user-controlled-wallets): Use user controlled wallets is an open-source agent skill for finance and payments.

---
Source: https://ai-powered.com/skills/pay-with-any-token
