> ## 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

<Steps>
  <Step title="Add the MCP Server">
    Connects your agent to live CoinGecko data — prices, market caps, onchain pools, OHLCV, NFTs, and more.

    <CodeGroup>
      ```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"
        }}'
      ```
    </CodeGroup>

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

    > Full setup details: [CoinGecko MCP](/ai-integration/mcp-server)
  </Step>

  <Step title="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](/ai-integration/agent-skill)
  </Step>

  <Step title="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](/ai-integration/cli)
  </Step>
</Steps>

## 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."*
