Onboard AI

An AI agent that onboards web2-native users into DeFi yield through a ChatGPT-like chat interface — powered by LI.FI Earn & Composer.

3 min

Onboard AI - Chat your way into DeFi yield

Onboard is an AI agent that simplifies DeFi yield farming for web2-native users. Instead of navigating complex protocol UIs, users just chat — "Where can I earn the best yield on USDC?" — and Onboard discovers vaults, prepares deposits, and tracks positions across chains, powered by LI.FI Protocol's Earn & Composer.

The goal: make participating in DeFi as easy as talking to ChatGPT — no protocol knowledge, no tab-switching, no manual bridging.

Web App · GitHub

Tech Stack: Next.js · TypeScript · Vercel AI SDK · GPT-4o · LI.FI Earn SDK · Wagmi · ConnectKit · TailwindCSS · shadcn/ui


Core Features

Chat-to-Yield

No more complex UIs. Ask "Where can I earn the best yield on USDC?" or "Show my current portfolio positions" and get instant, actionable results in plain language.

Cross-Chain Vault Discovery

Instantly find high-APY vaults across all major EVM chains supported by LI.FI — Base, Monad, Ethereum, Arbitrum, and more — filterable by asset, chain, and protocol.

One-Click Deposits

Onboard prepares complex multi-step transactions for depositing into DeFi vaults directly from the chat, using LI.FI Composer to bundle bridging, swapping, and depositing into a single flow.

Real-Time Portfolio Tracking

View total net worth and active yield positions across all chains in one unified dashboard, with accurate vault details, TVL, and APY data from LI.FI's Earn API.


How the Agent Works

The agent is built on the Vercel AI SDK with GPT-4o and equipped with custom tools that interact with the DeFi ecosystem:

ToolWhat it does
discover_vaultsSearch yield opportunities by asset, chain, and protocol
portfolioFetch real-time position data for the connected wallet
prepare_depositGenerate LI.FI Composer transaction requests for vault entry
supported_chains/protocolsDynamic discovery of the LI.FI Earn ecosystem
User: "Best USDC yield right now?"

┌──────────────────────────────────────────────────┐
│                  Onboard Agent                    │
│                                                   │
│  GPT-4o  ──►  discover_vaults(asset: USDC)        │
│                      │                            │
│              LI.FI Earn API                       │
│                      │                            │
│  "Morpho on Base — 8.4% APY, $12M TVL.            │
│   Want me to prepare the deposit?"                │
│                      │                            │
│         prepare_deposit ──► LI.FI Composer        │
│                      │                            │
│        One signed transaction. Done.              │
└──────────────────────────────────────────────────┘

Tech Stack

Frontend: Next.js 15+ (App Router & Turbopack) · TypeScript · TailwindCSS · shadcn/ui · Hugeicons

AI: Vercel AI SDK · GPT-4o · custom DeFi tool calling

DeFi Infrastructure: LI.FI Earn SDK · LI.FI Composer Client

Web3: ConnectKit · Wagmi


What I Learned Building Onboard

  1. Natural language is the best DeFi UX — abstracting chains, bridges, and protocols behind conversation removes the biggest onboarding barrier
  2. Tool calling needs guardrails — an agent preparing real transactions must validate everything before surfacing a signable payload
  3. Good infrastructure compounds — LI.FI's Earn & Composer APIs turned a multi-protocol integration problem into a handful of well-typed calls
Spread the word