uniswap avatar

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

Installs 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 on export PATH. If $HOME does 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

More from uniswap/uniswap-ai

All 10
1netresearch avatarsecurity-auditnetresearch/security-audit-skillUse when conducting security assessments — OWASP Top 10 / API / LLM, CWE Top 25, CVSS scoring — auditing PHP/TYPO3, APIs, frontend, Terraform/K8s/Docker IaC, AW839skills.sh installs
2steipete avatarbrave-searchsteipete/agent-scriptsWeb search and content extraction via Brave Search API. Use for searching documentation, facts, or any web content. Lightweight, no browser required.831skills.sh installs
3nvidia avatarnemoclaw-user-manage-policynvidia/skillsAdds, removes, or modifies allowed endpoints in the sandbox policy. Use when customizing network policy, changing egress rules, or configuring sandbox endpoint 828skills.sh installs
4riba2534 avatarfeishu-cli-importriba2534/feishu-cli从 Markdown 文件导入创建飞书文档。支持嵌套列表、Mermaid/PlantUML 图表自动转画板、 大表格智能处理(超过 9 行用 insert_table_row API 追加保持单 block,超过 9 列拆分保留首列)、公式、Callout 高亮块。 内置飞书侧渲染规范(`references/doc-826skills.sh installs
5mindrally avatarionicmindrally/skillsIonic development guidelines for building cross-platform mobile applications with Angular, Cordova, and Firebase integration.822skills.sh installs
6mindrally avatarsql-best-practicesmindrally/skillsSQL development best practices for writing efficient, secure, and maintainable database queries819skills.sh installs