DefiLlama Pro API Skill
SkillDatabases & dataOperate DefiLlama Pro analytics APIs through UXC with a curated OpenAPI schema, path-templated API-key auth, and read-first guardrails.
Available today. Use it from your connected AI after setup.
No other account needed.
Connect ahel once, and every AI you use reads what you have installed.
Then ask your AI: use the DefiLlama Pro API Skill skill
What this skill tells your AI
The instructions your AI receives, as published by holon-run/uxc in skills/defillama-pro-openapi-skill/SKILL.md and read by ahel’s review.
Use this skill to run DefiLlama Pro API operations through uxc + OpenAPI.
Reuse the uxc skill for shared execution, auth, and error-handling guidance.
Prerequisites
uxcis installed and available inPATH.- Network access to
https://pro-api.llama.fi. - Access to the curated OpenAPI schema URL:
https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-pro-openapi-skill/references/defillama-pro.openapi.json
- A DefiLlama Pro API key.
Scope
This skill covers a read-first analytics surface:
- protocol TVL list and per-protocol detail
- chain overview reads
- current token price lookups
- yield pool discovery
- yield chart history
- stablecoin dominance reads
This skill does not cover:
- write operations or account management
- the public unauthenticated host variants
- the full DefiLlama Pro endpoint surface
Authentication
DefiLlama Pro places the API key in the request path, between the host and the endpoint path.
Configure one API-key credential with a request path prefix template:
uxc auth credential set defillama-pro \
--auth-type api_key \
--secret-env DEFILLAMA_PRO_API_KEY \
--path-prefix-template "/{{secret}}"
uxc auth binding add \
--id defillama-pro \
--host pro-api.llama.fi \
--scheme https \
--credential defillama-pro \
--priority 100
Validate the active mapping when auth looks wrong:
uxc auth binding match https://pro-api.llama.fi
Core Workflow
-
Use the fixed link command by default:
command -v defillama-pro-openapi-cli- If missing, create it:
uxc link defillama-pro-openapi-cli https://pro-api.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-pro-openapi-skill/references/defillama-pro.openapi.json defillama-pro-openapi-cli -h
-
Inspect operation schema first:
defillama-pro-openapi-cli get:/api/protocols -hdefillama-pro-openapi-cli get:/coins/prices/current/{coins} -hdefillama-pro-openapi-cli get:/yields/chart/{pool} -h
-
Prefer narrow read validation before broader reads:
defillama-pro-openapi-cli get:/api/v2/chainsdefillama-pro-openapi-cli get:/api/protocol/{protocol} protocol=aavedefillama-pro-openapi-cli get:/yields/pools
-
Execute with key/value parameters:
defillama-pro-openapi-cli get:/api/protocol/{protocol} protocol=aavedefillama-pro-openapi-cli get:/coins/prices/current/{coins} coins=ethereum:0x0000000000000000000000000000000000000000 searchWidth=4hdefillama-pro-openapi-cli get:/stablecoins/stablecoindominance/{chain} chain=ethereum
Operation Groups
Protocol And Chain Analytics
get:/api/protocolsget:/api/protocol/{protocol}get:/api/v2/chains
Prices, Yields, And Stablecoins
get:/coins/prices/current/{coins}get:/yields/poolsget:/yields/chart/{pool}get:/stablecoins/stablecoindominance/{chain}
Guardrails
- Keep automation on the JSON output envelope; do not use
--text. - Parse stable fields first:
ok,kind,protocol,data,error. - Treat this v1 skill as read-only. Do not imply wallet, trading, or admin support.
- This skill assumes the Pro host and key-in-path auth model. Do not bind the same credential to a different path shape without checking the upstream docs first.
- API keys are sensitive because they appear in the request path. Use
--secret-envor--secret-op, not shell history literals, when possible. - Avoid sharing raw daemon logs when troubleshooting this integration. The key is part of the request path, so if you inspect
~/.uxc/daemon/daemon.log, sanitize, rotate, or delete the log after debugging and avoid verbose logging unless necessary. defillama-pro-openapi-cli <operation> ...is equivalent touxc https://pro-api.llama.fi --schema-url <defillama_pro_openapi_schema> <operation> ....
References
- Usage patterns:
references/usage-patterns.md - Curated OpenAPI schema:
references/defillama-pro.openapi.json - DefiLlama API docs: https://defillama.com/docs/api
- DefiLlama Pro docs: https://defillama.com/pro-api/docs
Signals
- GitHub stars
- 113
- Forks
- 7
- Last commit
- Sep 2026
Advanced
- Catalog kind
- skill
- Gateway key
defillama-pro-openapi-skill- Source
- github.com/holon-run/uxc