Yields Llama
by @lolieatapple
Query DeFi yield opportunities across chains using the yieldsllama CLI (powered by DeFi Llama API). Use when the user asks about DeFi yields, APY, best staki...
| Flag | Description | Default |
|---|---|---|
| -l, --limit | Number of results to return | 10 |
| -e, --exposure | Pool type: single or multi | single |
| -s, --sort | Sort by: apy or tvl | apy |
| -t, --tvl | Minimum TVL in USD | none |
| -c, --chain | Filter by chain name (case-insensitive) | none |
| -a, --asset | Filter by token symbol (case-insensitive) | none |
Common Examples
# Top 10 highest APY single-asset pools
yieldsllamaTop 20 pools sorted by TVL
yieldsllama -l 20 -s tvlBest USDC yields with TVL > $10M
yieldsllama -a USDC -t 10000000Best USDT yields on Ethereum
yieldsllama -a USDT -c EthereumBest multi-asset pool yields
yieldsllama -e multi -l 10Compare stablecoins with TVL > $10M
yieldsllama -a USDC -t 10000000 -l 5
yieldsllama -a USDT -t 10000000 -l 5
yieldsllama -a USDE -t 10000000 -l 5
yieldsllama -a DAI -t 10000000 -l 5Best ETH yields with TVL > $1M
yieldsllama -a WETH -t 1000000 -l 10Best yields on specific chains
yieldsllama -c Ethereum -t 1000000 -l 10
yieldsllama -c Base -t 1000000 -l 10
yieldsllama -c Arbitrum -t 1000000 -l 10
| Problem | Solution |
|---|---|
| yieldsllama: command not found | Binary not in PATH. Run cp /path/to/yieldsllama /usr/local/bin/ |
| θ―»εζ¬ε°data.jsonζδ»ΆεΌεΈΈ | Normal on first run β it fetches from API and creates data.json |
| ζ¬ε°ζδ»ΆθΏζ | Cache expired (>12h). Tool auto-fetches fresh data |
| Empty results | Token symbol or chain name may not match exactly. Try without -c/-a filters first |
| Network error | Check internet connection; DeFi Llama API (yields.llama.fi) may be temporarily down |
| .env error | Ensure .env exists in current directory with LLAMA_DOMAIN="https://yields.llama.fi" |
clawhub install yieldsllama