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

Scope

This skill covers a public read-only analytics surface on api.llama.fi:

This skill does not cover:

Authentication

This public skill does not require authentication.

Core Workflow

  1. 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
  2. Inspect operation schema first:

    • defillama-openapi-cli get:/protocols -h
    • defillama-openapi-cli get:/protocol/{protocol} -h
    • defillama-openapi-cli get:/v2/chains -h
  3. Prefer narrow read validation before broader reads:

    • defillama-openapi-cli get:/v2/chains
    • defillama-openapi-cli get:/protocols
    • defillama-openapi-cli get:/protocol/{protocol} protocol=aave
  4. Execute with key/value parameters:

    • defillama-openapi-cli get:/protocol/{protocol} protocol=aave
    • defillama-openapi-cli get:/v2/chains

Operations

Guardrails

References