Uniswap Token Swap Agent Skill for Openclaw

An autonomous DeFi skill that enables AI agents to execute, simulate, and validate token swaps across Uniswap V2, V3, V4, and UniswapX.

wpank
v0.1.0
Feb 11, 2026
0
1.7k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install execute-swap

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install execute-swap using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Uniswap Token Swap Agent Skill?

The Uniswap Execute Swap skill is a sophisticated technical module designed for AI agents operating within the Openclaw Skills ecosystem. It allows developers and users to bridge the gap between natural language commands and complex decentralized finance operations. By handling the heavy lifting of token address resolution, liquidity routing, and transaction simulation, it transforms simple requests like "Swap USDC for ETH" into secure, on-chain executions.

This skill is built with a security-first mindset, incorporating pre-flight safety validations that check spending limits and circuit breakers before any assets are moved. Whether you are building a personal trading assistant or a complex automated treasury manager, this component of Openclaw Skills provides the necessary infrastructure for reliable multi-chain token exchanges.

Uniswap Token Swap Agent Skill Use Cases

  • Swapping assets between USDC, WETH, and thousands of other tokens across supported chains.
  • Executing automated trades based on specific price triggers or rebalancing strategies.
  • Performing safe cross-chain routing using UniswapX and native protocols.
  • Integrating professional-grade DeFi trading capabilities into custom AI agent workflows using Openclaw Skills.

How Uniswap Token Swap Agent Skill Works

  1. Input Resolution: The skill extracts token symbols and chain data, resolving them into precise contract addresses using the search_tokens tool.
  2. Safety Validation: It performs a mandatory check against spending limits, rate limits, and the global circuit breaker status.
  3. Simulation: The trade is simulated to ensure sufficient liquidity exists and that the price impact is within acceptable bounds.
  4. Execution Delegation: The request is passed to a specialized trade-executor subagent that manages the specific routing logic (V2/V3/V4/UniswapX).
  5. Final Reporting: The skill returns a comprehensive breakdown including gas costs, price impact, and a transaction hash link.

Uniswap Token Swap Agent Skill Setup

To integrate this capability into your agent, you must have the Agentic Uniswap MCP server running. Install it via npm:

npm install -g @agentic-uniswap/mcp-server

Ensure your environment variables are configured with the appropriate RPC providers and wallet credentials required by the Openclaw Skills framework.

Uniswap Token Swap Agent Skill Data Schema & Taxonomy

The skill organizes swap data using the following parameter structure:

Parameter Description Requirement
tokenIn Symbol or address of the source asset Required
tokenOut Symbol or address of the target asset Required
amount The numeric quantity to be swapped Required
chain The target blockchain (default: ethereum) Optional
slippage Maximum price deviation in percentage Optional
routing Preference for V2, V3, V4, or UniswapX Optional

Uniswap Token Swap Agent Skill Advanced Features

  • Autonomous routing optimization to find the best price across all Uniswap versions.
  • Multi-chain support for Ethereum, Base, Polygon, Arbitrum, and more.
  • Granular safety protocols including SAFETY_SPENDING_LIMIT_EXCEEDED and SAFETY_SIMULATION_FAILED errors.
  • Seamless integration with other Openclaw Skills for complex multi-step financial workflows.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*