# Send DefiLlama API to your agent
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
## Fast path
- Download the package from Yavira.
- Extract it into a folder your agent can access.
- Paste one of the prompts below and point your agent at the extracted folder.
## Suggested prompts
### New install

```text
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.
```
### Upgrade existing

```text
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.
```
## Machine-readable fields
```json
{
  "schemaVersion": "1.0",
  "item": {
    "slug": "defillama-api",
    "name": "DefiLlama API",
    "source": "tencent",
    "type": "skill",
    "category": "开发工具",
    "sourceUrl": "https://clawhub.ai/poploli2/defillama-api",
    "canonicalUrl": "https://clawhub.ai/poploli2/defillama-api",
    "targetPlatform": "OpenClaw"
  },
  "install": {
    "downloadUrl": "/downloads/defillama-api",
    "sourceDownloadUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=defillama-api",
    "sourcePlatform": "tencent",
    "targetPlatform": "OpenClaw",
    "packageFormat": "ZIP package",
    "primaryDoc": "SKILL.md",
    "includedAssets": [
      "SKILL.md",
      "src/run.py",
      "src/scripts/bridges.py",
      "src/scripts/fees.py",
      "src/scripts/narratives.py",
      "src/scripts/dat.py"
    ],
    "downloadMode": "redirect",
    "sourceHealth": {
      "source": "tencent",
      "slug": "defillama-api",
      "status": "healthy",
      "reason": "direct_download_ok",
      "recommendedAction": "download",
      "checkedAt": "2026-05-02T10:47:51.030Z",
      "expiresAt": "2026-05-09T10:47:51.030Z",
      "httpStatus": 200,
      "finalUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=defillama-api",
      "contentType": "application/zip",
      "probeMethod": "head",
      "details": {
        "probeUrl": "https://wry-manatee-359.convex.site/api/v1/download?slug=defillama-api",
        "contentDisposition": "attachment; filename=\"defillama-api-0.1.0.zip\"",
        "redirectLocation": null,
        "bodySnippet": null,
        "slug": "defillama-api"
      },
      "scope": "item",
      "summary": "Item download looks usable.",
      "detail": "Yavira can redirect you to the upstream package for this item.",
      "primaryActionLabel": "Download for OpenClaw",
      "primaryActionHref": "/downloads/defillama-api"
    },
    "validation": {
      "installChecklist": [
        "Use the Yavira download entry.",
        "Review SKILL.md after the package is downloaded.",
        "Confirm the extracted package contains the expected setup assets."
      ],
      "postInstallChecks": [
        "Confirm the extracted package includes the expected docs or setup files.",
        "Validate the skill or prompts are available in your target agent workspace.",
        "Capture any manual follow-up steps the agent could not complete."
      ]
    }
  },
  "links": {
    "detailUrl": "https://openagent3.xyz/skills/defillama-api",
    "downloadUrl": "https://openagent3.xyz/downloads/defillama-api",
    "agentUrl": "https://openagent3.xyz/skills/defillama-api/agent",
    "manifestUrl": "https://openagent3.xyz/skills/defillama-api/agent.json",
    "briefUrl": "https://openagent3.xyz/skills/defillama-api/agent.md"
  }
}
```
## Documentation

### DefiLlama API

只允许通过 src/run.py 调用，禁止直接运行 src/scripts/ 下的脚本。

### 安装

cd {baseDir}

### 环境变量

DEFILLAMA_API_KEY：可选，Pro API key。若未提供，Pro 端点会提示 API PLAN REQUIRED。

### TVL

uv run {baseDir}/src/run.py tvl protocols
uv run {baseDir}/src/run.py tvl protocol --protocol aave
uv run {baseDir}/src/run.py tvl tvl --protocol uniswap
uv run {baseDir}/src/run.py tvl chains
uv run {baseDir}/src/run.py tvl historical-chain-tvl --chain Ethereum

### Stablecoins

uv run {baseDir}/src/run.py stablecoins list --include-prices
uv run {baseDir}/src/run.py stablecoins charts-all
uv run {baseDir}/src/run.py stablecoins charts-chain --chain Ethereum
uv run {baseDir}/src/run.py stablecoins detail --asset 1
uv run {baseDir}/src/run.py stablecoins dominance --chain Ethereum --stablecoin-id 1

### Coins（价格与链上数据）

uv run {baseDir}/src/run.py coins current --coins coingecko:ethereum,ethereum:0x0000000000000000000000000000000000000000
uv run {baseDir}/src/run.py coins historical --timestamp 1704067200 --coins coingecko:ethereum
uv run {baseDir}/src/run.py coins chart --coins coingecko:ethereum --period 7d

### Yields（Pro）

uv run {baseDir}/src/run.py yields pools
uv run {baseDir}/src/run.py yields pool-chart --pool <pool_id>

### Volumes

uv run {baseDir}/src/run.py volumes dex-overview
uv run {baseDir}/src/run.py volumes options-overview --data-type dailyPremiumVolume

### Fees

uv run {baseDir}/src/run.py fees overview
uv run {baseDir}/src/run.py fees summary --protocol uniswap

### Perps

uv run {baseDir}/src/run.py perps open-interest
uv run {baseDir}/src/run.py perps derivatives-overview

### Unlocks（Pro）

uv run {baseDir}/src/run.py unlocks all
uv run {baseDir}/src/run.py unlocks protocol --protocol hyperliquid

### Main Page（Pro）

uv run {baseDir}/src/run.py main-page categories
uv run {baseDir}/src/run.py main-page raises

### Token Liquidity（Pro）

uv run {baseDir}/src/run.py token-liquidity historical --token usdt

### ETFs（Pro）

uv run {baseDir}/src/run.py etfs overview
uv run {baseDir}/src/run.py etfs history

### Narratives（Pro）

uv run {baseDir}/src/run.py narratives fdv-performance --period 30

### Bridges（Pro）

uv run {baseDir}/src/run.py bridges list --include-chains
uv run {baseDir}/src/run.py bridges transactions --id 1 --limit 50

### Meta / DAT（Pro）

uv run {baseDir}/src/run.py meta usage
uv run {baseDir}/src/run.py dat institutions

### 备注

Coin 需要使用 chain:address 或 coingecko:slug 格式，例如 coingecko:ethereum。
Pro 端点需要 DEFILLAMA_API_KEY 或 --api-key。

### 常见错误

rate limited：放缓速率或提供 API plan key。
API PLAN REQUIRED：升级订阅或设置 DEFILLAMA_API_KEY。
## Trust
- Source: tencent
- Verification: Indexed source record
- Publisher: poploli2
- Version: 0.1.0
## Source health
- Status: healthy
- Item download looks usable.
- Yavira can redirect you to the upstream package for this item.
- Health scope: item
- Reason: direct_download_ok
- Checked at: 2026-05-02T10:47:51.030Z
- Expires at: 2026-05-09T10:47:51.030Z
- Recommended action: Download for OpenClaw
## Links
- [Detail page](https://openagent3.xyz/skills/defillama-api)
- [Send to Agent page](https://openagent3.xyz/skills/defillama-api/agent)
- [JSON manifest](https://openagent3.xyz/skills/defillama-api/agent.json)
- [Markdown brief](https://openagent3.xyz/skills/defillama-api/agent.md)
- [Download page](https://openagent3.xyz/downloads/defillama-api)