An OpenClaw skill that enables AI agents to perform cross-chain token swaps, bridges, route comparison, transfer tracking, and DeFi zap composition via the LI.FI protocol.
clawhub install lifi-crosschain- Swap & Bridge tokens across 35+ blockchains with a single command
- Compare routes across dozens of bridges (Stargate, Hop, Across) and DEXes (Uniswap, SushiSwap, 1inch)
- Track transfers — monitor cross-chain bridge progress in real-time
- Zaps — compose multi-step DeFi operations (bridge + swap + deposit) in one transaction
- Discovery — look up supported chains, tokens, and available routes
Once installed, invoke the skill in your OpenClaw agent:
/lifi swap 1 ETH to USDC on Polygon
/lifi bridge 100 USDC from Ethereum to Arbitrum
/lifi track 0xabc123...
/lifi routes 1 ETH to USDC on Base
/lifi zap bridge ETH to Polygon and deposit into Aave
The skill teaches agents to interact with the LI.FI REST API. It provides:
- API reference with ready-to-use curl commands for every endpoint
- Step-by-step workflows for common operations (swap, bridge, compare, track, zap)
- Safety protocol — mandatory validation rules for addresses, amounts, slippage, and token approvals
- Error handling guidance for rate limits, failed routes, and partial completions
The API returns transactionRequest objects ready to sign — agents provide these to their wallet for execution.
curl(used for HTTP calls to the LI.FI API)LIFI_API_KEY(optional — for higher rate limits)