Skip to main content
skill CX Codex

defillama — Claude Code skill: DeFi analytics via API

Hands your agent DefiLlama data: protocol TVL, stablecoin yields, fees, DEX and bridge volume. Useful for comparing protocols or tracking where capital moves.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add Starchild-ai-agent/official-skills --skill defillama -a claude-code
Open on GitHub

What defillama does

This is a script-mode skill. It does not register as Anthropic tools; instead everything lives in one exports.py. The agent reads SKILL.md, runs python inside bash, and imports what it needs after sys.path.insert(0, "/data/workspace/skills/defillama").

Inside are wrappers over the DefiLlama API: protocols, chains, protocol_tvl, yield_pools, dex_overview, fees_overview, revenue_overview, stablecoins, bridges, treasury. Free endpoints sit on https://api.llama.fi and need no key. Pro endpoints, such as yields and emissions, want DEFILLAMA_API_KEY placed in the URL path rather than an HTTP header.

With a fake key, calls have to pass through sc-proxy so the key can be swapped upstream. PROXY_HOST and PROXY_PORT point the session at that proxy; skip them and a direct request returns a key error. The pro half simply will not answer.

What it helps with

  • rank protocols by current TVL
  • screen stablecoin pools for a workable APY
  • compare DEX volume across chains
  • pull daily TVL history for one chain
  • check bridge volume and chain flows

Example prompts for the agent

  • Show the top 10 protocols by TVL right now
  • Find USDC pools with a decent APY
  • Compare DEX volume on Arbitrum and Ethereum over the last 30 days

How to install defillama

1Skills CLI (Vercel)

npx skills add Starchild-ai-agent/official-skills --skill defillama -a claude-code

2Manually: put the files in place

~/.claude/skills/defillama/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/defillama/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about defillama

How do I install defillama in Claude Code?

Run npx skills add Starchild-ai-agent/official-skills --skill defillama -a claude-code, then check ~/.claude/skills/defillama/SKILL.md.

What does defillama do?

It pulls DefiLlama data: TVL for protocols and chains, pool yields, fees, DEX and bridge volume, stablecoins. The agent calls functions from exports.py inside a bash block.

Does defillama need an API key?

Free endpoints on https://api.llama.fi need none. Pro endpoints require DEFILLAMA_API_KEY in the URL path, and with a fake key requests must go through sc-proxy using PROXY_HOST and PROXY_PORT.

Similar skills

All skills for Finance and business →

From the same set30

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor