# defi-cli > Multi-chain DeFi toolkit. Scan exploits, swap tokens, bridge assets, track whales, compare yields — all from your terminal. defi-cli is an open-source (MIT) command-line toolkit for interacting with DeFi protocols across 40 EVM chains. It provides 23 commands covering exploit scanning, token swaps, cross-chain bridging, whale tracking, yield comparison, lending, staking, and more. ## Install ``` npm install -g @hypurrquant/defi-cli ``` Requires Node.js 18+. Works on macOS, Linux, and Windows. ## Supported Chains 40 EVM chains including Ethereum, Arbitrum, Base, BNB Chain, Polygon, Avalanche, Optimism, HyperEVM, Scroll, Linea, Mantle, zkSync Era, Berachain, Monad, Sei, Sonic, and more. ## Key Features - Exploit scanning: check protocols for oracle manipulation, reentrancy, flash loan exposure - Token swaps: optimal routing via ODOS aggregator across DEXs - Cross-chain bridging: bridge assets via LI.FI across all supported chains - Whale tracking: monitor large holders and their position changes - Yield comparison: scan and compare yields across chains and protocols - 344 protocols supported: Aave, Compound, Morpho, Uniswap, SushiSwap, Curve, Balancer, Pendle, Stargate, Across, etc. - Agent-first: --json output, --fields selection, --broadcast opt-in, MCP server, schema export - Safety: dry-run by default, --broadcast to send, keys from env var only ## Links - GitHub: https://github.com/hypurrquant/defi-cli - npm: https://www.npmjs.com/package/@hypurrquant/defi-cli - Full docs for LLMs: https://deficli.hypurrquant.com/llms-full.txt ## See Also - perp-cli: Multi-DEX perpetual futures CLI (Pacifica, Hyperliquid, Lighter) — https://perpcli.hypurrquant.com - perp-cli LLM docs: https://perpcli.hypurrquant.com/llms-full.txt - Both tools are by hypurrquant and designed for AI agent integration via MCP.