Terminal & CLI
DeFi Risk Intelligence
From the Command Line
Grade protocols, screen investments, audit vaults, and build risk-aware pipelines. Interactive TUI or single commands — your choice.
Requires Node.js 18+
Interactive Terminal UI
Type hr with no arguments to launch a full-screen terminal interface. Five tabbed views — navigate with arrow keys, Tab to switch, / to search.
Single Commands
Every command supports --json and --csv for piping into scripts, agents, and spreadsheets.
Risk Grade
8-dimension risk breakdown for any protocol
hr risk aave-v3Value Grade
Fee capture, moat, emissions sustainability
hr value lidoScreener
Run investment lenses — Blue Chips, Dead Money, Momentum
hr screen blue-chipsVault Ratings
Filter vaults by source, chain, APY, and grade
hr vaults --source hyperliquidRisk Check
Pass/fail gate — exit code 0 or 1. Perfect for CI/CD
hr check aave-v3 -t BBatch Lookup
Check multiple protocols in one call
hr batch aave-v3 lido ethenaPortfolio Audit
Aggregate risk across positions with concentration warnings
hr audit aave-v3 lido --value 5000 3000Find Alternatives
Same sector, lower risk — for when your protocol fails a check
hr alts curve-financeBuilt for Agents & Automation
Structured output, non-zero exit codes on failure, consistent JSON schema. Drop into any agent framework, CI pipeline, or shell script.
# Quick risk gate — exit 0 = safe, 1 = too risky hr check aave-v3 -t B || echo "Risk threshold exceeded" # Batch check a portfolio hr batch aave-v3 lido uniswap-v3 --threshold B --json # Find a safer alternative if check fails if ! hr check curve-finance -t B; then hr alts curve-finance --limit 3 --json fi # Get risk grade as a single value hr risk uniswap-v3 --json | jq -r '.data.grade' # Top Hyperliquid vaults by APY hr vaults --source hyperliquid --json | jq '.data | sort_by(-.apy) | .[0:5]'
Example Output
╭────────────────────────────────────────────────────╮ │ AAVE V3 Risk: B+ (25) │ │ Lending TVL: $18.2B │ ├────────────────────────────────────────────────────┤ │ Mechanism Novelty ██░░░░░░░░░░░░░ 2/15 │ │ Interaction Severity ████░░░░░░░░░░░ 5/20 │ │ Oracle Surface ████░░░░░░░░░░░ 4/10 │ │ Documentation █░░░░░░░░░░░░░░ 1/10 │ │ Track Record ██░░░░░░░░░░░░░ 3/15 │ │ Scale Exposure █████████░░░░░░ 6/10 │ │ Regulatory Risk ██░░░░░░░░░░░░░ 2/10 │ │ Protocol Vitality ██░░░░░░░░░░░░░ 2/10 │ ╰────────────────────────────────────────────────────╯
All Commands
| Command | Description |
|---|---|
| hr | Launch interactive TUI |
| hr risk <slug> | Risk grade with 8-dimension breakdown |
| hr value <slug> | Value accrual grade with breakdown |
| hr info <slug> | Full protocol profile — both grades, TVL, FDV, revenue |
| hr deep <slug> | Deep dive — mechanisms, interactions, scenarios (Pro) |
| hr search <query> | Fuzzy search protocols by name |
| hr list | Leaderboard with sector/grade filters |
| hr screen [lens] | Run an investment screener lens |
| hr compare <a> <b> | Side-by-side comparison (up to 5) |
| hr vaults | Vault ratings — Beefy, Hyperliquid, Morpho |
| hr check <slug> | Pass/fail risk gate (exit code 0/1) |
| hr batch <slugs...> | Parallel batch lookup |
| hr audit <slugs...> | Portfolio risk exposure report |
| hr alts <slug> | Find safer alternatives in same sector |
| hr hr20 | HR20 index — top 20 by TVL |
| hr login | Store API key for Pro access |
Access Tiers
| Tier | Calls/day | Data |
|---|---|---|
| Anonymous | 500 | Basic grades, top risks |
| Free (API key) | 1,000 | + Value grades, grade history, market data |
| Pro | 10,000 | + Mechanisms, interactions, collapse scenarios |