Introduction
StarkFi — Starknet DeFi from your terminal and AI agents
What is StarkFi?
StarkFi is a Starknet DeFi toolkit that lets you swap, stake, lend, DCA, batch, deposit into yield vaults, liquid stake, transfer confidentially, and manage your portfolio — all from the terminal or through AI agents via the MCP server.
No browser needed. No wallet extension. Just authenticate with your email and start interacting with DeFi protocols directly.
Get Started in 60 Seconds
No install needed — just run with npx:
# Authenticate
npx starkfi@latest auth login you@email.com
npx starkfi@latest auth verify you@email.com 123456 # check your email for the code
# You're ready
npx starkfi@latest balance
npx starkfi@latest trade 0.1 ETH USDC
npx starkfi@latest portfolioOr install globally with npm i -g starkfi@latest for a shorter command.
What You Can Do
| Feature | What It Does | How |
|---|---|---|
| Token Swaps | Multi-provider routing via Fibrous, AVNU, Ekubo, or auto | trade, multi-swap |
| Staking | Delegate STRK, WBTC, tBTC, SolvBTC, LBTC to validators | stake, unstake, rewards |
| Lending | Supply, borrow, repay, monitor, auto-rebalance on Vesu V2 | lend-supply, lend-borrow, lend-monitor, lend-auto |
| DCA | Recurring buy orders via AVNU and Ekubo | dca-create, dca-list, dca-cancel |
| Troves Vaults | Deposit/withdraw into DeFi yield vault strategies | troves-list, troves-deposit, troves-withdraw |
| LST Staking | Liquid staking via Endur (e.g. STRK → xSTRK) | lst-stake, lst-redeem, lst-exit-all |
| Confidential | Privacy-preserving transfers via Tongo Cash (ZK proofs) | conf-fund, conf-transfer, conf-withdraw |
| Batch | Combine multiple operations into a single atomic transaction | batch |
| Portfolio | Full DeFi dashboard with USD valuations + rebalancing | portfolio, portfolio-rebalance |
| Gas Abstraction | Pay gas in USDC, USDT, DAI, ETH — or let the developer pay | config |
Four Ways to Use StarkFi
CLI — For Developers and Power Users
50 commands across 14 groups for every DeFi operation. Supports --simulate for dry-runs and --json for machine-readable output.
MCP Server — For AI Agents
51 typed tools that integrate with Claude, Cursor, Antigravity, and any MCP-compatible client. AI agents can swap tokens, manage DCA orders, monitor lending positions, deposit into yield vaults, liquid stake, transfer confidentially, rebalance portfolios, and execute batch operations.
Agent Skills — For Automated Workflows
12 pre-packaged multi-step workflows that AI agents can trigger with natural language prompts like "Stake my STRK with the best validator" or "DCA 100 USDC into ETH daily".
Telegram Bot — For Chat-Based DeFi
Interact with Starknet DeFi through natural language in Telegram. Bring your own AI model (OpenAI, Claude, or Gemini) — no shared keys, no centralized billing.
Built With
StarkFi connects to Starknet through these integrations:
- Starkzap — Core SDK for wallets, tokens, staking, and transaction building
- Fibrous — DEX aggregation for optimal swap routing
- Vesu — V2 lending pools for supply, borrow, and repay
- AVNU & Ekubo — Swap execution and recurring DCA buy orders
- Tongo Cash — Privacy-preserving ZK confidential transfers
- AVNU Paymaster — Gas abstraction for gasless and gasfree transactions
Next Steps
New to StarkFi? Follow this path:
- Get Started — Run StarkFi with npx or install globally
- Authenticate — Connect your Starknet wallet
- Quick Start — Your first swap in under 2 minutes
- Configuration — Customize network, RPC, and gas settings
Last updated on