
Pay With Any Token
This lets Claude handle HTTP 402 payment challenges by swapping any ERC-20 token you have into whatever the API wants, using Tempo CLI and Uniswap's trading API under the hood. When an API throws a payment required response, it parses the challenge, checks your Tempo wallet balance, and if you're short it bridges funds from your holdings on any EVM chain. The whole flow is automated but gates every transaction behind an explicit confirmation prompt, which is the right call given it's moving real money. Uniswap built this at version 2.0.0, and it maintains a 0.10 USDC reserve threshold to avoid triggering the full swap and bridge dance for small purchases. Useful if you're calling paid APIs programmatically and don't want to manually fund a dozen different payment rails.
- skills.sh installs
- 842
- GitHub stars
- 236
- last updated
- Aug 21, 2026
Install
$ npx -y skills add uniswap/uniswap-ai --skill pay-with-any-token --agent claude-codeInstalls into .claude/skills of the current project.
Files
Pay With Tokens
Use the Tempo CLI to call paid APIs and handle 402 challenges automatically. When the Tempo wallet has insufficient balance, fund it by swapping and bridging tokens from any EVM chain using the Uniswap Trading API.
Tempo CLI Setup
Run these commands in order. Do not skip steps.
Step 1 — Install:
mkdir -p "$HOME/.local/bin" \
&& curl -fsSL https://tempo.xyz/install -o /tmp/tempo_install.sh \
&& TEMPO_BIN_DIR="$HOME/.local/bin" bash /tmp/tempo_install.sh
Step 2 — Login (requires browser/passkey — prompt user, wait for confirmation):
"$HOME/.local/bin/tempo" wallet login
When run by agents, use a long command timeout (at least 16 minutes).
Step 3 — Confirm readiness:
"$HOME/.local/bin/tempo" wallet -t whoami
Rules: Do not use
sudo. Use full absolute paths ($HOME/.local/bin/tempo) — do not rely onexport PATH. If$HOMEdoes not expand, use the literal absolute path.
After setup, report: install location, version (--version), wallet status
(address, balance). If balance is 0, direct user to tempo wallet fund.
Sponsors
Details
- Repository
- github.com/uniswap/uniswap-ai
- Categories
- Backend & APIs, CLI & Terminal, Finance & Trading, Web3 & Blockchain
- First seen
- Jun 3, 2026