uniswap-pay-with-any-token

Settle HTTP 402 payment challenges via Uniswap token swaps and Tempo CLI.

12|64|Updated Mar 17, 2026
One-click install
npx skills add https://github.com/okx/plugin-store --skill uniswap-pay-with-any-token
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: uniswap-pay-with-any-token
Source: https://github.com/okx/plugin-store/tree/main/skills/uniswap-pay-with-any-token
Command: npx skills add https://github.com/okx/plugin-store --skill uniswap-pay-with-any-token

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

HTTP 402 Payment Required responses block API access until a token payment is made. Users must manually identify a suitable token, obtain a swap quote, execute the swap on Uniswap, and then settle the payment with Tempo, which is time‑consuming and error‑prone.

Core Features & Use Cases

  • Automatic Token Swap: Converts any ERC‑20 token in the user's wallet to the required payment token via the Uniswap Trading API.
  • Seamless Payment Execution: Uses the Tempo CLI to complete MPP or x402 payments after the swap, handling cross‑chain bridging when needed.
  • Use Case: An AI agent encounters a 402 response from a DeFi data service; the skill automatically swaps the agent’s native token and pays the fee, allowing the workflow to continue without manual intervention.

Quick Start

Ask the assistant to settle the pending HTTP 402 payment using any token from your wallet.

Frequently Asked Questions about uniswap-pay-with-any-token

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I settle an HTTP 402 payment required response using a different token?

To settle an HTTP 402 response using a different token, this skill automatically converts your available ERC-20 tokens into the required payment token via the Uniswap Trading API. It then executes the final settlement using the Tempo CLI.

What is the process for an AI agent to pay DeFi API fees automatically?

Paying DeFi API fees automatically involves detecting the 402 response, swapping a native wallet token for the required payment token on Uniswap, and settling the fee via Tempo. This allows the AI workflow to continue without manual intervention.

Do I need the Tempo CLI installed to process Uniswap token swaps for API access?

Yes, you need the Tempo CLI installed to complete the payment execution. While the Uniswap Trading API handles the automatic token conversion, the Tempo CLI is required to finalize the MPP or x402 payment settlement.

How does cross-chain bridging work when paying 402 challenges with any token?

When paying 402 challenges with any token, cross-chain bridging is handled automatically during the payment execution phase. The Tempo CLI manages this bridging if needed after the Uniswap token swap completes.

What prerequisites are required to automate token conversion for HTTP 402 responses?

To automate token conversion for HTTP 402 responses, you need a funded ERC-20 wallet, access to the Uniswap Trading API, and the Tempo CLI installed. These components enable the automatic swap and subsequent payment settlement.