ClawKit Logo
ClawKitReliability Toolkit
Back to Registry
Official Verified finance Safety 4/5

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.

skill-install — Terminal

Install via CLI (Recommended)

clawhub install openclaw/skills/skills/fabriziogianni7/lifi-skill
Or

What 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 9270000000000000 chain ID.
  • Strategy validation: Checking chain and token availability before executing high-value operations.

Example Prompts

  1. "I want to bridge 0.5 ETH from Base to Arbitrum and swap it for USDC. Please check the best route."
  2. "Show me the current swap options for SUI tokens on the Sui blockchain."
  3. "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_strategy first.
  • Simulation: Always use &skipSimulation=true for 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_transaction for the returned hex data rather than standard transaction tools.
  • Authentication: Ensure your environment variable LIFI_API_KEY is 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

Stars2387
Views1
Updated2026-03-09
View Author Profile
AI Skill Finder

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 skill
Add to Configuration

Paste this into your clawhub.json to enable this plugin.

{
  "plugins": {
    "official-fabriziogianni7-lifi-skill": {
      "enabled": true,
      "auto_update": true
    }
  }
}

Tags(AI)

#defi#blockchain#bridging#swaps#cross-chain
Safety Score: 4/5

Flags: network-access, external-api, code-execution