The Multi-Chain DeFi Toolkit
Scan exploits, swap tokens, bridge assets, track whales, compare yields — all from your terminal. 40 chains. 344 protocols. 23 commands.
Requires Node.js 18+. Works on macOS, Linux, and Windows.
What Does defi-cli Do?
defi-cli unifies DeFi operations across 40 EVM chains. Instead of juggling block explorers, DEX UIs, and bridge interfaces, you use one consistent set of commands.
Scan for exploits
$ defi scan --chain hyperevmProtocol Risk Oracle Reentrancy Flash Loan Governance─────────────────────────────────────────────────────────────────HyperLend Low OK OK OK OKMoonWell Low OK OK OK OKFelix Med STALE OK EXPOSED OKHyperSwap Low OK OK OK OK✓ Scanned 12 protocols on HyperEVM — 1 medium risk detected
Compare yields across chains
$ defi yield scan USDC --min-tvl 1000000Protocol Chain APY TVL TypeAave V3 Arbitrum 4.82% $1.2B LendingCompound V3 Ethereum 3.91% $890M LendingMorpho Base 5.47% $340M LendingPendle Arbitrum 7.21% $180M Yield TokenStargate Optimism 3.15% $420M LP✓ Found 28 pools across 12 chains above $1M TVL
Swap tokens via ODOS
$ defi swap 1000 USDC WETH --chain arbitrumRoute: USDC → WETH via ODOSInput: 1,000.00 USDCOutput: 0.5321 WETH ($999.47)Slippage: 0.05% | Gas: $0.12─────────────────────────────────────⚠ Dry-run mode. Add --broadcast to send.
Track whale positions
$ defi whales WETH --chain ethereum --top 5Rank Address Balance Value 24h Change1 0x47ac...f8e2 82,451 WETH $155.0M +1,200 WETH2 0xbe0e...a3d1 61,338 WETH $115.4M -500 WETH3 0x1db3...c7f9 45,102 WETH $84.8M +0 WETH4 0x8103...e4b2 38,920 WETH $73.2M +340 WETH5 0xf977...1a8c 31,445 WETH $59.1M -2,100 WETH
40 Chains, One Interface
defi-cli abstracts away chain differences. The same commands and output format work across every supported chain — switch chains with the --chain flag.
EVM Majors
L2s & Rollups
Ecosystem
$ defi --chain arbitrum portfolioChain Protocol Asset Balance ValueArbitrum Aave V3 USDC 10,000.00 $10,000.00Arbitrum Uniswap V3 ETH/USDC LP $5,230.41Arbitrum Pendle PT-stETH 2.5 $4,680.00─────────────────────────────────────────────────────Total $19,910.41
Built for AI Agents
Every design decision is optimized for programmatic consumption. Structured output, runtime introspection, and MCP integration make defi-cli a first-class tool for AI agents.
Structured JSON output
$ defi --json yield compare USDC --chain hyperevm{"ok": true,"data": {"token": "USDC","chain": "hyperevm","pools": [{"protocol": "HyperLend","apy": 5.12,"tvl": 42000000,"type": "lending"},{"protocol": "MoonWell","apy": 4.87,"tvl": 18500000,"type": "lending"}]},"meta": { "timestamp": "2026-04-02T..." }}
MCP Server mode
$ npx -y -p @hypurrquant/defi-cli defi-mcp✓ MCP server listening — compatible with Claude, Cursor, and AI IDEs
--jsonTyped JSON envelope on every command--fieldsRequest only the fields you need--broadcastDry-run by default, opt-in execution--ndjsonStream large result setsschemaRuntime command introspectionMCPModel Context Protocol server
Getting Started
Three commands to go from zero to your first DeFi scan.
$ npm install -g @hypurrquant/defi-cli$ defi scan --chain hyperevm✓ Scanned 12 protocols on HyperEVM — all clear$ defi swap 100 USDC WETH --chain arbitrumRoute: USDC → WETH via ODOS | Output: 0.0532 WETH⚠ Dry-run mode. Add --broadcast to send.
Private keys are read from the DEFI_PRIVATE_KEY environment variable. They never touch disk. All transactions are dry-run by default.