Starknet DeFi from
your Terminal &
your AI
Swap, stake, lend, DCA and batch on Starknet — from the CLI, AI agents or Telegram. 42 MCP tools, 12 Agent Skills, built-in gas abstraction.
Or install globally:
npm i -g starkfi
route Fetching best route across providers...
alt_route Best route: ETH → USDC (Ekubo)
check_circle Swap executed — received 1,247.50 USDC
What Can You Do
With StarkFi?
Every DeFi primitive on Starknet — accessible from a single CLI or through AI-powered automation.
Token Swaps
Best-price routing via Fibrous, AVNU and Ekubo — or
auto to race all. Multi-swap up to 3 pairs.
Batch Transactions
Combine swap + stake + supply + borrow + repay + withdraw + send + DCA into a single transaction. Define steps inline, execute everything atomically.
Lending & Borrowing
Vesu V2 lending with health monitoring and auto-rebalance. Supply, borrow, repay, close — all with simulation.
Liquid Staking
Stake, unstake and claim rewards across pools and validators. Supports STRK, WBTC and BTC variants.
Gas Abstraction
AVNU Paymaster built-in. Gasfree (sponsor gas) or Gasless (pay in USDC, USDT, DAI, STRK, ETH).
MCP Server + Skills
42 MCP tools + 12 Agent Skills. Let Claude, Cursor or any MCP-compatible agent operate autonomously.
Portfolio & Rebalance
Full portfolio view with USD values. Set target allocations and auto-rebalance via optimized multi-swap.
Transaction Simulation
Preflight any operation before execution. See estimated fees in STRK + USD, catch reverts before they cost gas.
Telegram Bot
AI-powered DeFi on Telegram. Bring your own model — OpenAI, Claude or Gemini. Chat to swap, stake, lend and DCA.
DCA Orders
Recurring buy orders via AVNU and Ekubo. Set amount, frequency and let the protocol execute automatically.
Confidential Transfers
Powered by Tongo Cash. Execute anonymous and untraceable ERC-20 transfers using Zero-Knowledge (ZK) proofs completely locally.
Secure Authentication
Email OTP login powered by Privy TEE. Private keys are derived and encrypted entirely locally — never transmitted over the network.
MCP Server
& Agent Skills
Every feature exposed as an MCP tool — AI agents like Claude or Cursor can execute DeFi operations directly. 12 Agent Skills bundle multi-step workflows into single commands.
42 MCP Tools
Swap, stake, lend, DCA, send, batch, portfolio — all exposed as typed JSON-schema tools for any MCP-compatible agent.
12 Agent Skills
Pre-packaged multi-step workflows — trade, stake, lend, DCA, batch — that agents can invoke with zero config.
Calling
swap_tokens
via Fibrous...
Route: STRK → USDC (Ekubo)
Then calling
stake
with best validator...
Here's your portfolio summary:
Would you like to rebalance to a target allocation?
DeFi on
Telegram
All DeFi features in a chat interface. Powered by AI — pick your model, each user gets an isolated session with encrypted storage.
Bring Your Own Model
OpenAI, Claude, or Gemini — swap providers with a single env variable. Full Vercel AI SDK support.
Per-User Isolation
Each user gets a dedicated MCP process. Sessions are encrypted in SQLite with automatic idle cleanup.
Start trading on Starknet
Install with one command. Swap, stake, lend and DCA in minutes. Open source, MIT licensed, community-driven.