StarkFiStarkFi

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 portfolio

Or install globally with npm i -g starkfi@latest for a shorter command.

What You Can Do

FeatureWhat It DoesHow
Token SwapsBest-price routing via Fibrous DEX aggregatortrade, multi-swap
StakingDelegate STRK, WBTC, tBTC, SolvBTC, LBTC to validatorsstake, unstake, rewards
LendingSupply, borrow, repay on Vesu V2 poolslend-supply, lend-borrow
BatchCombine multiple operations into a single atomic transactionbatch
PortfolioFull DeFi dashboard with USD valuationsportfolio
Gas AbstractionPay gas in USDC, USDT, DAI, ETH — or let the developer payconfig

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.

CLI Reference

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.

MCP Server

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".

Agent Skills

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:

  1. Get Started — Run StarkFi with npx or install globally
  2. Authenticate — Connect your Starknet wallet
  3. Quick Start — Your first swap in under 2 minutes
  4. Configuration — Customize network, RPC, and gas settings
Edit on GitHub

Last updated on

On this page