lifi
v4 - Use LI.FI API for cross-chain and same-chain swaps, bridges, and contract calls. Use when quoting routes, validating chains/tokens, building transaction requests, and tracking status.
Why use this skill?
Integrate LI.FI into your OpenClaw agent to handle cross-chain swaps, bridging, and DeFi token management safely across EVM networks and Sui.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/fabriziogianni7/lifi-skillWhat This Skill Does
The LI.FI Agent Skill (v4) integrates the powerful LI.FI API into the OpenClaw ecosystem to facilitate seamless cross-chain and same-chain asset movement. This skill acts as a bridge between users and the vast landscape of decentralized finance, handling complex routing, swapping, and bridging operations through a unified interface. By leveraging LI.FI, the agent can programmatically find the most efficient routes for token swaps and bridge transfers, ensuring optimal liquidity and execution across multiple blockchain ecosystems including EVM networks and the Sui blockchain.
Installation
To install this skill, use the following command in your terminal:
clawhub install openclaw/skills/skills/fabriziogianni7/lifi-skill
Use Cases
This skill is designed for scenarios requiring cross-chain liquidity movement. Common use cases include:
- Executing cross-chain swaps: e.g., moving ETH on Base to USDT on Arbitrum.
- Same-chain swaps: Utilizing internal liquidity pools to exchange native tokens for specific assets.
- Multi-chain portfolio rebalancing: Aggregating tokens from different chains into one.
- Sui-specific transactions: Managing token movement on the Sui network using the native
9270000000000000chain ID. - Strategy validation: Checking chain and token availability before executing high-value operations.
Example Prompts
- "I want to bridge 0.5 ETH from Base to Arbitrum and swap it for USDC. Please check the best route."
- "Show me the current swap options for SUI tokens on the Sui blockchain."
- "Swap 100 USDC for WETH on Base with a slippage tolerance of 0.5%."
Tips & Limitations
- Safety First: The skill is configured with a default slippage of 10% (0.10) to prevent failed transactions. For specific DeFi strategies, always check your slippage settings via
defi_get_strategyfirst. - Simulation: Always use
&skipSimulation=truefor all quote requests. Because our agent utilizes EIP-7702 delegated wallets, standard simulations may report failures incorrectly. - Sui Integration: Remember that Sui does not require ERC-20 approvals. When dealing with Sui, always utilize
defi_send_sui_transactionfor the returned hex data rather than standard transaction tools. - Authentication: Ensure your environment variable
LIFI_API_KEYis correctly set, as every request requires this header for API access. - Verification: Always provide users with the block explorer link after execution, using the appropriate explorer based on the target network (e.g., Basescan, Suiscan).
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-fabriziogianni7-lifi-skill": {
"enabled": true,
"auto_update": true
}
}
}Tags(AI)
Flags: network-access, external-api, code-execution
Related Skills
ceo-protocol-skill
Interact with The CEO Protocol — a permissionless DeFi vault on Monad governed by AI agents. Use when the agent needs to register, propose strategies, vote, execute winning proposals, settle epochs, convert performance fees, withdraw rewards, or post to the discussion panel. Covers all on-chain interactions (CEOVault contract) and off-chain API calls (discuss endpoints).
ens
Resolve ENS names (.eth) to Ethereum addresses and vice versa. Use when a user provides an .eth name (e.g. "send to vitalik.eth"), when displaying addresses (show ENS names), looking up ENS profiles, or helping users register, renew, or manage .eth names.
pond3r-skill
Query crypto intelligence via Pond3r MCP — curated datasets, SQL queries, protocol metrics, yields, and market analysis. Use when the agent needs DeFi data, stablecoin yields, token opportunities, Polymarket trades, cross-protocol comparisons, or blockchain analytics.
openclast-wallet
Guides the agent in Openclast/Openclaw wallet usage, approvals, and safety rules. Use when users ask about wallet setup, balances, transactions, approvals, or key export.
8004-skill
Register and manage ERC-8004 Identity NFTs on Monad. Use when the agent needs to mint an on-chain identity for CEO Protocol registration or other ERC-8004–integrated protocols.