DefiLlama Public API Skill for Openclaw

A specialized tool for querying DefiLlama public analytics through a curated OpenAPI interface and the uxc CLI.

jolestar
v1.0.0
Mar 17, 2026
0
1k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install defillama-openapi-skill

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install defillama-openapi-skill using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is DefiLlama Public API Skill?

The DefiLlama Public API Skill allows developers to interact with one of the most comprehensive sources of decentralized finance data. By leveraging a curated OpenAPI schema and the uxc execution layer, this skill provides a structured and predictable way to fetch Total Value Locked (TVL) data, protocol specifics, and chain overviews. It is a core component of the Openclaw Skills ecosystem designed for users who need read-first guardrails and stable JSON outputs for their automation workflows.

This skill is specifically optimized for the api.llama.fi endpoint, ensuring high performance for public analytics. It avoids the complexities of authentication for public data while providing a standardized interface that can be easily integrated into larger research or monitoring pipelines.

DefiLlama Public API Skill Use Cases

  • Tracking real-time TVL changes across major blockchain protocols.
  • Automating daily reports on the growth of specific DeFi sectors.
  • Researching historical protocol data for market analysis.
  • Integrating blockchain chain-level metrics into custom dashboards using Openclaw Skills.

How DefiLlama Public API Skill Works

  1. The skill uses uxc to link a local command-line interface to the DefiLlama public API endpoint.
  2. It pulls a curated OpenAPI schema to define valid operations and parameters.
  3. Users execute commands like defillama-openapi-cli to query specific data points.
  4. The skill validates inputs against the schema before sending requests to the API.
  5. Structured JSON responses are returned for easy parsing and automation.

DefiLlama Public API Skill Setup

First, ensure that uxc is installed in your PATH. Then, create the link to the DefiLlama API using the following command:

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

Verify the setup by checking the help menu:

defillama-openapi-cli -h

DefiLlama Public API Skill Data Schema & Taxonomy

The skill organizes data into structured JSON envelopes to ensure compatibility with other Openclaw Skills. The schema focuses on the following primary fields:

Field Type Description
ok Boolean Indicates if the API request was successful
kind String The category of data returned (e.g., protocol, chain)
data Object/Array The primary payload containing TVL or protocol metrics
error String Detailed error message if the request fails

DefiLlama Public API Skill Advanced Features

  • Read-only guardrails to prevent accidental write operations or state changes.
  • Support for narrow read validation to optimize API usage and response times.
  • Direct integration with uxc for unified authentication and error-handling patterns.
  • Local schema inspection to discover new endpoints without leaving the terminal.
  • Optimized for programmatic use within larger Openclaw Skills automation scripts.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*