Skip to main content
defi-cli is an agent-first DeFi CLI for querying and acting on-chain, with a stable automation contract:
  • Stable JSON envelope + deterministic field naming
  • Stable exit codes
  • Canonical chain and asset IDs (CAIP-2 / CAIP-19)
  • Canonical amount handling (base units + decimal normalization)

Start here

Example

Key-gated routes

Most commands are keyless. Key requirements are driven by upstream providers, not by CLI licensing/auth. Bungee quotes are keyless by default. Dedicated backend mode requires both DEFI_BUNGEE_API_KEY and DEFI_BUNGEE_AFFILIATE.

Lending and yield routing

lend markets, lend rates, yield opportunities, and yield history use direct protocol adapters:
  • aave (read + execution)
  • morpho (read + execution)
  • moonwell (Base, Optimism; read + execution)
  • kamino (Solana mainnet, read only)
Execution commands (plan, run, submit, status) are available for swap, bridge, lend, yield, rewards, approvals, and transfer workflows. See Commands Overview.

Next