DeleGator.AI is an AI-powered portfolio automation agent that lets users automate crypto strategies (like rebalance, swap, take profit, or buy the dip) β while retaining full custody through MetaMask
DeleGator.AI is an AI-powered portfolio automation agent that lets users automate crypto strategies (like rebalance, swap, take profit, or buy the dip) β while retaining full custody through MetaMask Smart Accounts and Delegations.
It transforms manual portfolio management into a secure, autonomous experience powered by AI, real-time oracles, and delegated smart contract execution.
Manual portfolio management is inefficient and error-prone:
Users must constantly track price movements and rebalancing thresholds.
Missed βbuy the dipβ or βtake profitβ opportunities lead to losses.
Centralized bots require custody of funds, creating trust and security risks.
DeFi users lack intelligent, autonomous agents that act on their behalf without surrendering control.
DeleGator.AI solves this by combining AI intelligence, MetaMask Smart Account delegation, and on-chain automation to create an autonomous yet non-custodial portfolio manager.
Users define strategies using natural language.
AI translates it into executable logic (e.g. triggers, conditions, actions).
The system executes automatically via MetaMask Delegations on Monad Testnet.
All funds remain in the userβs smart account β revocable anytime.
Feature | Description |
|---|---|
AI Strategy Builder | Convert plain English instructions into structured strategy logic using OpenAI LLM. |
Visual Canvas | Drag-and-drop UI for creating conditional automation workflows. |
Delegated Execution | Uses MetaMask Smart Accounts + Delegation to authorize bots securely. |
Real-Time Monitoring | Envio-powered indexer tracks portfolio events on-chain in real time. |
Non-Custodial | No funds ever leave the userβs smart account β delegation is permissioned and revocable. |
Cross-Chain Ready | Runs on Monad Testnet, extensible to Base and other EVMs. |
Use Case | Example |
|---|---|
Rebalancing | βMaintain 70% ETH / 30% USDC; rebalance if drift > 5%.β |
Buy the Dip | βBuy 10% more ETH if ETH price drops 15%.β |
Take Profit | βTransfer 20% profits to main wallet if portfolio > $10,000.β |
Yield Extraction | βEvery Sunday, move staking rewards to main vault.β |
Stop Loss | βConvert everything to USDC if ETH drops below $1,500.β |
User inputs a strategy in natural language:
βRebalance to 70% ETH and 30% USDC if drift > 5%.β
π§© AI Processing:
OpenAIβs LLM converts this into an executable JSON schema:
{
"trigger": "price_update",
"condition": "drift > 5%",
"action": "rebalance(70% ETH, 30% USDC)"
}
ποΈ Visual Builder:
Displayed on the drag-and-drop canvas in the frontend.
When automation is enabled:
DeleGator.AI creates a MetaMask Smart Account (ERC-7710 compatible).
The user delegates permission to a RebalanceExecutor bot, limited to:
Execute specific strategy actions (e.g., rebalance/swap)
No withdrawals outside the userβs control
Delegation permissions are revocable anytime via MetaMask.
π This ensures complete user custody β the bot never holds funds.
Envio Indexer continuously tracks:
Portfolio balances
Oracle prices (via Pyth Network)
Trigger conditions (e.g., drift, thresholds)
Once conditions are met:
RebalanceExecutor validates the delegation caveats
Executes the transaction via UniswapHelper / Monorail DEX on Monad Testnet
Updates userβs allocation automatically
Example Execution Flow:
Condition met: drift = 6.3% > 5%
β
Envio Indexer triggers BotWorker
β
DelegationManager verifies permissions
β
RebalanceExecutor performs rebalance swap
β
Portfolio rebalanced to 70.2% ETH / 29.8% USDC
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β FRONTEND (Next.js + OpenAI) β
β β’ AI chat & strategy builder β
β β’ Visual drag-drop canvas β
β β’ Delegation setup wizard (MetaMask SDK) β
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β BACKEND (NestJS) β
β β’ REST API for strategy CRUD β
β β’ Bot Worker for monitoring triggers β
β β’ Delegation handler for execution β
β β’ Envio Indexer integration for event tracking β
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β SMART CONTRACTS (Solidity on Monad) β
β β’ DelegationManager - MetaMask delegation logic β
β β’ RebalanceExecutor - Executes user strategies β
β β’ StrategyRegistry - Stores user-created automations β
β β’ PythOracle - Fetches real-time price feeds β
β β’ UniswapHelper - DEX trade executor β
βββββββββββββββββ¬βββββββββββββββββββββββββββββββββββββββββββββββ
β
βΌ
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β INTEGRATIONS β
β β’ MetaMask DeleGator SDK - Delegation & permissions β
β β’ Monad Testnet - Smart account execution layer β
β β’ Envio HyperIndex - On-chain data & event indexing β
β β’ OpenAI API - Natural language strategy generation β
β β’ Pyth Network - Oracle for live token prices β
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
Component | Role |
|---|---|
MetaMask Smart Accounts (DeleGator SDK) | Enables delegation, permissions, and revocation of automation authority. |
Monad Testnet | Deployment environment for all contracts. |
Envio HyperIndex | Indexes portfolio and strategy events for instant responsiveness. |
Pyth Oracle | Real-time price data for condition triggers. |
OpenAI API | AI-powered natural language β strategy logic transformation. |
Uniswap / Monorail | Executes on-chain swaps and rebalances. |
Non-Custodial: Funds always stay in userβs smart account.
Fine-Grained Delegation: Each permission limited to method and target contract.
ERC-7710 Compliant: Built using MetaMaskβs latest delegation framework.
Revocable: One-click revoke at any time.
Reentrancy & Slippage Protection: Prevents unsafe operations.
Oracle Validation: Rejects stale or manipulated price data.
Hackathon Track | How DeleGator.AI Excels |
|---|---|
π₯ Best AI Agent | AI-powered portfolio logic builder with delegated on-chain execution |
π₯ Best On-Chain Automation | Fully automated rebalancing and trading on Monad using smart account delegation |
π₯ Most Innovative Use of Delegations | Introduces βAI Delegatorβ β an adaptive agent that acts only within safe delegated limits |
π₯ Best Use of Envio | Uses Envio HyperIndex for live event-driven automation |
π₯ Best Consumer App | No-code visual strategy builder for everyone |
deleGator-ai/
βββ frontend/ # React/Next.js UI with AI chat and visual canvas
β βββ src/ # Components, pages, hooks
β βββ docs/ # Frontend documentation
β
βββ backend/ # NestJS backend (API + bot worker)
β βββ apps/
β β βββ api/ # API server for user strategies
β β βββ bot/ # Execution bot
β β βββ indexer/ # Envio-powered blockchain indexer
β βββ docs/
β
βββ contract/ # Solidity smart contracts on Monad
β βββ src/ # Contract implementations
β βββ script/ # Deployment scripts
β βββ docs/
βββ README.md
cd contract
forge install
cp .env.example .env
forge script script/DeployAll.s.sol --rpc-url $MONAD_RPC --broadcast
cd backend
npm install
cp .env.example .env
npx prisma migrate dev
npm run start:bot
cd frontend
npm install
npm run dev
β AI Learning Loop β adaptive strategies that improve over time
π Cross-Chain Mode β Base + Monad unified automation
π± Farcaster Mini App β social trading dashboards
π§ DAO-curated strategy marketplace
π‘ Envio Notifications β portfolio alerts in real time
Envio HyperIndex
Monad Testnet
DeleGator.AI redefines DeFi automation by blending AI intelligence, delegated smart accounts, and on-chain execution into a seamless, non-custodial experience.
Built on Monad, powered by MetaMask Smart Accounts, and indexed by Envio, it delivers the next generation of autonomous, trustless portfolio agents.
βDeleGator.AI β The AI that acts, but never takes custody.β π§
currently in deploying stage
na