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, 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 portfolio

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

What You Can Do

FeatureWhat It DoesHow
Token SwapsMulti-provider routing via Fibrous, AVNU, Ekubo, or autotrade, multi-swap
StakingDelegate STRK, WBTC, tBTC, SolvBTC, LBTC to validatorsstake, unstake, rewards
LendingSupply, borrow, repay, monitor, auto-rebalance on Vesu V2lend-supply, lend-borrow, lend-monitor, lend-auto
DCARecurring buy orders via AVNU and Ekubodca-create, dca-list, dca-cancel
Troves VaultsDeposit/withdraw into DeFi yield vault strategiestroves-list, troves-deposit, troves-withdraw
LST StakingLiquid staking via Endur (e.g. STRK → xSTRK)lst-stake, lst-redeem, lst-exit-all
ConfidentialPrivacy-preserving transfers via Tongo Cash (ZK proofs)conf-fund, conf-transfer, conf-withdraw
BatchCombine multiple operations into a single atomic transactionbatch
PortfolioFull DeFi dashboard with USD valuations + rebalancingportfolio, portfolio-rebalance
Gas AbstractionPay gas in USDC, USDT, DAI, ETH — or let the developer payconfig

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.

CLI Reference

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.

MCP Server

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

Agent Skills

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.

Telegram Bot

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:

  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