> ## Documentation Index
> Fetch the complete documentation index at: https://docs.coingecko.com/llms.txt
> Use this file to discover all available pages before exploring further.

# OpenClaw

> Connect CoinGecko to your OpenClaw agent — MCP server, SKILL, and CLI in one place

[OpenClaw](https://openclaw.ai) is an AI agent platform for crypto. Plug CoinGecko in through any combination of the three integrations below — they're complementary, not exclusive.

## Setup

**1. Add the MCP Server**

Connects your agent to live CoinGecko data — prices, market caps, onchain pools, OHLCV, NFTs, and more.

```bash Demo API Key theme={null}
openclaw mcp set coingecko_mcp \
  '{"command":"npx","args":["-y","@coingecko/coingecko-mcp"],"env":{
    "COINGECKO_DEMO_API_KEY":"YOUR_API_KEY",
    "COINGECKO_ENVIRONMENT":"demo"
  }}'
```

```bash Pro API Key theme={null}
openclaw mcp set coingecko_mcp \
  '{"command":"npx","args":["-y","@coingecko/coingecko-mcp"],"env":{
    "COINGECKO_PRO_API_KEY":"YOUR_API_KEY",
    "COINGECKO_ENVIRONMENT":"pro"
  }}'
```

> Replace `YOUR_API_KEY` with your key from the [Developer Dashboard](https://www.coingecko.com/en/developers/dashboard).

> Full setup details: [CoinGecko MCP](https://docs.coingecko.com/ai-integration/mcp-server.md)

**2. Install the SKILL**

Gives your agent built-in knowledge of the CoinGecko API — writes correct requests without manual prompting.

```bash theme={null}
openclaw skills install coingecko-api
```

> Full setup details: [Agent SKILL](https://docs.coingecko.com/ai-integration/agent-skill.md)

**3. Install the CLI**

Terminal interface for querying real-time and historical crypto data, with interactive dashboards, CSV/JSON export, and WebSocket streaming.

```bash wrap theme={null}
curl -sSfL https://raw.githubusercontent.com/coingecko/coingecko-cli/main/install.sh | sh
```

Then authenticate and verify:

```bash theme={null}
cg auth
cg price --ids bitcoin
```

> Full setup details: [CoinGecko CLI](https://docs.coingecko.com/ai-integration/cli.md)

## Try It Out

Once everything's wired up, try asking your OpenClaw agent:

* *"Using the CoinGecko MCP, show me the top 10 trending pools on Base in the last 5 minutes."*
* *"What are the top gainers in the last 24 hours? Export them to CSV."*


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.