/install defillama-openapi-skill
DefiLlama Public API Skill
Use this skill to run DefiLlama public 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://api.llama.fi. - Access to the curated OpenAPI schema URL:
https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-openapi-skill/references/defillama-public.openapi.json
Scope
This skill covers a public read-only analytics surface on api.llama.fi:
- protocol TVL list
- per-protocol detail
- chain overview reads
This skill does not cover:
- write operations or account management
- DefiLlama Pro key-in-path auth
- split-host public services such as
coins.llama.fiandyields.llama.fi - the full DefiLlama public API surface
Authentication
This public skill does not require authentication.
Core Workflow
-
Use the fixed link command by default:
command -v defillama-openapi-cli- If missing, create it:
uxc link defillama-openapi-cli https://api.llama.fi --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/defillama-openapi-skill/references/defillama-public.openapi.json defillama-openapi-cli -h
-
Inspect operation schema first:
defillama-openapi-cli get:/protocols -hdefillama-openapi-cli get:/protocol/{protocol} -hdefillama-openapi-cli get:/v2/chains -h
-
Prefer narrow read validation before broader reads:
defillama-openapi-cli get:/v2/chainsdefillama-openapi-cli get:/protocolsdefillama-openapi-cli get:/protocol/{protocol} protocol=aave
-
Execute with key/value parameters:
defillama-openapi-cli get:/protocol/{protocol} protocol=aavedefillama-openapi-cli get:/v2/chains
Operations
get:/protocolsget:/protocol/{protocol}get:/v2/chains
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.
- Public DefiLlama data is split across multiple hosts. This skill intentionally stays on
api.llama.fi; use the separate Pro skill when you need the unified Pro host. defillama-openapi-cli \x3Coperation> ...is equivalent touxc https://api.llama.fi --schema-url \x3Cdefillama_openapi_schema> \x3Coperation> ....
References
- Usage patterns:
references/usage-patterns.md - Curated OpenAPI schema:
references/defillama-public.openapi.json - DefiLlama API docs: https://defillama.com/docs/api
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install defillama-openapi-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/defillama-openapi-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
DefiLlama OpenAPI Skill 是什么?
Operate DefiLlama public analytics APIs through UXC with a curated OpenAPI schema and read-first guardrails. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 209 次。
如何安装 DefiLlama OpenAPI Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install defillama-openapi-skill」即可一键安装,无需额外配置。
DefiLlama OpenAPI Skill 是免费的吗?
是的,DefiLlama OpenAPI Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
DefiLlama OpenAPI Skill 支持哪些平台?
DefiLlama OpenAPI Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 DefiLlama OpenAPI Skill?
由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。