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, batch, 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 | Best-price routing via Fibrous DEX aggregator | trade, multi-swap |
| Staking | Delegate STRK, WBTC, tBTC, SolvBTC, LBTC to validators | stake, unstake, rewards |
| Lending | Supply, borrow, repay on Vesu V2 pools | lend-supply, lend-borrow |
| Batch | Combine multiple operations into a single atomic transaction | batch |
| Portfolio | Full DeFi dashboard with USD valuations | portfolio |
| Gas Abstraction | Pay gas in USDC, USDT, DAI, ETH — or let the developer pay | config |
Three Ways to Use StarkFi
CLI — For Developers and Power Users
30+ commands for every DeFi operation. Supports --simulate for dry-runs and --json for machine-readable output.
MCP Server — For AI Agents
27 typed tools that integrate with Claude, Cursor, Antigravity, and any MCP-compatible client. AI agents can swap tokens, manage lending positions, and execute batch operations.
Agent Skills — For Automated Workflows
10 pre-packaged multi-step workflows that AI agents can trigger with natural language prompts like "Stake my STRK with the best validator".
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 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