Install
openclaw skills install defillama-data-aggregatorProfessional DeFi data aggregator that provides unified access to TVL, protocols, chains, and yields data from DefiLlama. Supports multiple output formats (JSON/Table/CSV), health monitoring, and security validation.
openclaw skills install defillama-data-aggregatorProfessional DeFi data at your fingertips. Query TVL, protocols, chains, and yields from DefiLlama with a single command.
# Get total DeFi TVL
node {skillDir}/src/index.js defillama tvl
# Get protocol TVL
node {skillDir}/src/index.js defillama protocol --name aave
# Get top protocols by TVL
node {skillDir}/src/index.js defillama protocols --limit 10 --sort tvl --format table
# Get chain TVL
node {skillDir}/src/index.js defillama chain --name ethereum
# Find high-yield pools
node {skillDir}/src/index.js defillama yields --min-apy 10 --chain ethereum --limit 20
# Check API health
node {skillDir}/src/index.js health
| Command | Description | Example |
|---|---|---|
tvl | Get total DeFi TVL | node {skillDir}/src/index.js defillama tvl |
protocol --name <name> | Get protocol TVL | node {skillDir}/src/index.js defillama protocol --name uniswap |
chain --name <name> | Get chain TVL | node {skillDir}/src/index.js defillama chain --name solana |
| Command | Description | Example |
|---|---|---|
protocols | List all protocols | node {skillDir}/src/index.js defillama protocols |
protocols --category <cat> | Filter by category | node {skillDir}/src/index.js defillama protocols --category lending |
protocols --min-tvl <usd> | Filter by minimum TVL | node {skillDir}/src/index.js defillama protocols --min-tvl 100000000 |
protocols --limit <n> | Limit results | node {skillDir}/src/index.js defillama protocols --limit 20 |
| Command | Description | Example |
|---|---|---|
yields | List yield pools | node {skillDir}/src/index.js defillama yields |
yields --min-apy <pct> | Filter by minimum APY | node {skillDir}/src/index.js defillama yields --min-apy 15 |
yields --chain <name> | Filter by chain | node {skillDir}/src/index.js defillama yields --chain arbitrum |
yields --min-tvl <usd> | Filter by minimum TVL | node {skillDir}/src/index.js defillama yields --min-tvl 1000000 |
yields --stablecoin | Stablecoin pools only | node {skillDir}/src/index.js defillama yields --stablecoin |
| Command | Description | Example |
|---|---|---|
health | Check API health | node {skillDir}/src/index.js health |
status | Show system status | node {skillDir}/src/index.js status |
All data commands support multiple output formats:
# Pretty format (default, human-readable)
node {skillDir}/src/index.js defillama tvl --format pretty
# JSON format (for scripts and parsing)
node {skillDir}/src/index.js defillama tvl --format json
# Table format (for quick overview)
node {skillDir}/src/index.js defillama protocols --limit 10 --format table
# CSV format (for spreadsheets)
node {skillDir}/src/index.js defillama protocols --limit 50 --format csv
"Show me the top 10 lending protocols by TVL"
"Find yield pools on Ethereum with APY above 15%"
"What is the current TVL of Aave?"
"Export all protocols data to CSV"
"Get the TVL distribution across chains"
"Compare lending vs DEX TVL"
"Check if DefiLlama API is healthy"
"Get protocol data in JSON format"
"Find pools with minimum 1M TVL"
https://api.llama.fi (DefiLlama API)https://yields.llama.fi (DefiLlama Yields API)cd {skillDir}
npm install
| Endpoint | Description |
|---|---|
https://api.llama.fi/tvl | Total DeFi TVL |
https://api.llama.fi/protocols | All protocols |
https://api.llama.fi/protocol/{name} | Protocol details |
https://api.llama.fi/chains | All chains |
https://yields.llama.fi/pools | Yield pools |
The skill provides user-friendly error messages:
| Error Type | Message |
|---|---|
| Invalid protocol name | "Only alphanumeric characters and hyphens allowed" |
| Invalid chain name | "Only alphanumeric characters, spaces, and hyphens allowed" |
| Network error | "Check internet connection and try again" |
| Rate limit | "Rate limit exceeded, please wait" |
| API unavailable | "Service temporarily unavailable" |
node {skillDir}/src/index.js defillama protocols --limit 10 --sort tvl --format table
node {skillDir}/src/index.js defillama yields --min-apy 20 --min-tvl 1000000 --limit 5
node {skillDir}/src/index.js health
aave-v3 not aave v3)ethereum not Ethereum)polygon-pos)--min-apy or --min-tvl thresholdsVersion: 1.0.3
Last Updated: 2026-03-31
Maintainer: AntalphaAI
License: MIT