OpenClaw (formerly known as Clawdbot and Moltbot) has become one of the fastest-growing open-source AI agent projects, with more than 355K stars on GitHub as of April 2026. One of its most popular use cases is crypto, which includes market monitoring, token research, price alerts, portfolio tracking, and automated reporting, all accessible through messaging platforms like Telegram.
However, OpenClaw does not come with crypto data tools out of the box. Without a proper data connection to the crypto markets, your agent either relies on brittle web scraping or hallucinates from pre-trained knowledge. None of these are reliable enough for real-time market decisions.
This is where CoinGecko comes in. As the most comprehensive crypto market data API, CoinGecko aggregates data from over 30 million+ crypto assets, 1,700+ exchanges, and 250+ blockchain networks, with 80+ market data endpoints. This guide walks you through four ways to connect CoinGecko to OpenClaw, from simplest to most flexible:
-
MCP Server for conversational research and natural-language crypto queries
-
CoinGecko CLI for bulk data pulls, exports, and token-efficient automation
-
CoinGecko Agent Skill for teaching your agent to build custom integrations using any CoinGecko API endpoint
-
x402 pay-per-use endpoints for occasional usage without requiring an API subscription
This guide also includes a companion quick-start repository that bundles all four methods into a single installation flow.

Prerequisites
Before connecting CoinGecko, make sure you have the following ready:
-
OpenClaw installed and running. If you have not set it up yet, start with OpenClaw’s official installation guide.
-
A connected LLM provider in OpenClaw, such as OpenAI, Claude, or any other supported model.
-
A messaging app connected to OpenClaw. Telegram is recommended because it is the easiest way to get started and the most popular way for users to chat with OpenClaw.
-
A CoinGecko API key. You can sign up for a free Demo API key here, which gives you 10,000 monthly API calls.
-
A crypto wallet with USDC on Base or Solana (for x402 only)
Before moving on, confirm that OpenClaw can already respond to a simple message in your chosen channel. If you are using Telegram, verify that the bot is connected and routing replies correctly.
How to Connect CoinGecko MCP Server to OpenClaw
If you want to ask your OpenClaw agent crypto-related questions in natural language and get useful answers back, the MCP (Model Context Protocol) is the easiest place to start. CoinGecko's MCP server gives OpenClaw access to dozens of crypto data tools that the agent discovers and uses automatically without writing a single line of code.
CoinGecko offers three MCP server options:
-
Public server (
https://mcp.api.coingecko.com/mcp) for quick testing with shared rate limits -
Pro server (
https://mcp.pro-api.coingecko.com/mcp) for production usage with dedicated rate limits and a broader tool set -
Local server (
npx -y @coingecko/mcp-server) for self-hosted deployments
For most OpenClaw users, we recommend starting with the public server for quick testing, then switching to the Pro server with a paid API key for higher rate limits and access to more tools.
Manual setup for CoinGecko MCP
-
Open your OpenClaw MCP or tool configuration.
-
Add the CoinGecko MCP server URL you want to use.
-
Reload or restart tool discovery if your OpenClaw environment requires it.
-
If using the Pro server, trigger the server once from the client. On first authenticated use, CoinGecko opens a browser tab where you can paste your API key and authorize the session.
For the full configuration reference, see the CoinGecko MCP documentation.
AI-assisted setup for CoinGecko MCP
You can also set this up quickly by instructing your OpenClaw directly with a prompt like:
"Add the CoinGecko MCP server to my configuration using https://mcp.pro-api.coingecko.com/mcp, then verify it by answering a trending-crypto query."

For free-tier testing, replace the Pro server endpoint with the public server endpoint instead.
Quick validation
To confirm the MCP connection is working, ask your OpenClaw something about the current market. For example:
What are the top trending cryptocurrencies right now? Include price, 24h change, and market cap.

Although MCP is not the most token-efficient method (more on that in the CLI section below), it is the fastest way to give OpenClaw real-time crypto data access through natural conversation.
How to Install and Use the CoinGecko CLI with OpenClaw
The CoinGecko CLI (cg) is a terminal-based tool built in Go that provides fast, direct access to CoinGecko data from the command line. Because OpenClaw can run shell commands natively, the CLI is a natural fit for bulk data pulls, historical exports, and automation workflows. It is also up to 200x more token-efficient than MCP for batch operations, which means lower LLM processing costs when your agent needs to retrieve large datasets.
CoinGecko CLI Installation
There are a few ways to install the CoinGecko CLI depending on your system:
Using Homebrew (macOS/Linux):
brew install coingecko/coingecko-cli/cgUsing the install script:
curl -sSfL https://raw.githubusercontent.com/coingecko/coingecko-cli/main/install.sh | shUsing Go:
go install github.com/coingecko/coingecko-cli@latestAfter installing, authenticate by running the following commands in your terminal:
cg authcg statusThe cg auth flow masks your input, which is safer than pasting secrets directly into command history. If you prefer environment-backed auth, store your key in a .env file and load it into the execution environment OpenClaw uses.
AI-assisted setup for CoinGecko CLI
You can also instruct your OpenClaw to handle the installation directly using the prompt below:
"Install the CoinGecko CLI from https://github.com/coingecko/coingecko-cli, authenticate it safely, verify cg is on PATH, then run a price check for BTC, ETH, and SOL."

Quick validation
The benefit of combining CLI with OpenClaw is that you can prompt in natural language and let the agent figure out which CLI commands to run. Instead of typing raw commands yourself, try prompts like:
"Give me the current prices of BTC, ETH, and SOL in a table."
or:
"Export the last 30 days of Bitcoin price data as a CSV file and tell me where you saved it."
The CLI also supports a --dry-run flag, which lets the agent preview the API request before executing it. This is useful for verifying what data will be fetched before committing to an API call. For the full CLI command reference, see the CoinGecko CLI documentation.


How to Build Custom CoinGecko Integrations with the CoinGecko API Skill
If you have a very specific use case and need to use the CoinGecko API in a highly customized way, the CoinGecko API Skill is the tool for the job.
Unlike MCP or the CLI, the API Skill is not a connectivity method. It is a knowledge package that teaches your OpenClaw agent (or any LLM) how CoinGecko's API works in depth. It explains what endpoints exist, what parameters they accept, what data they return, and how to combine them for complex, multi-step workflows. Once the Skill is installed, your agent can autonomously write its own scripts to call any CoinGecko API endpoint, giving it unlimited flexibility beyond what pre-built MCP tools or CLI commands offer.
This is particularly powerful because CoinGecko covers over 30 million+ crypto assets and onchain tokens across 250+ blockchain networks, with 80+ data endpoints. If you need something highly specific that MCP or CLI does not cover, such as a filtered market scan with custom parameters, onchain pool data for a particular network, or a multi-step research pipeline, your agent can build the exact API integration on the fly.
How to Install the CoinGecko Skill
You can install the CoinGecko API Skill from any of the following sources:
-
ClawHub (easiest): Install directly from ClawHub, or tell your OpenClaw to “Install the CoinGecko API Skill from ClawHub”.
-
GitHub: Clone or install from the CoinGecko Skills repository, or paste the URL into OpenClaw and say ”Install the CoinGecko API Skill from this repo”.
Make sure your CoinGecko API key is available in environment variables so the agent can make direct API requests safely.
Quick Validation
To see the CoinGecko Skill in action, ask OpenClaw to build something that goes beyond a simple data lookup. For example:
"Build me a simple market screener that shows the top 10 trending coins with their price, 24h volume, and 7-day price change, formatted as a table."
or:
"Get me the 90-day OHLC candlestick data for Solana, summarize the weekly trend shifts, and explain which CoinGecko endpoint you used."


The difference between the CoinGecko Skill and the other methods is the scope of what your agent can create. MCP gives you pre-built conversational tools. CLI gives you efficient terminal commands. The API Skill gives your agent the knowledge to become a CoinGecko API expert, capable of writing custom scripts, chaining multiple endpoints together, and building custom tools from scratch.
Connect CoinGecko API with OpenClaw Without an API Subscription (x402 Pay-Per-Use)
If you do not want to subscribe to a CoinGecko API plan but still want your agent to have access to real-time and historical crypto market data, the x402 pay-per-use endpoints let AI agents retrieve data from CoinGecko at $0.01 USDC per request. No API key, no account, and no subscription needed.
This method works well when your usage is sporadic and hard to predict, when you are prototyping and do not want to commit to a monthly plan, or when you only need occasional API access.
What You Need
-
A crypto wallet with USDC on Base or Solana
-
Your wallet credentials stored securely outside of OpenClaw (do not ask OpenClaw to generate or store your private key)
Setup for CoinGecko x402 Endpoints
The full wallet and payment setup is covered in our x402 pay-per-use guide. Once your wallet is funded, configure OpenClaw to use the x402 endpoint for CoinGecko requests. You can also instruct your OpenClaw to handle the setup by providing the prompt below:
"Set up the CoinGecko x402 pay-per-use endpoint for me. My wallet is on Base and I have USDC ready."

Quick Start: Easily Install CoinGecko API on OpenClaw
We have packaged all four CoinGecko connection methods into a single GitHub repository. Instead of following each section manually, you can share the repo URL with your OpenClaw agent and let it handle the setup.
The repository includes MCP configuration guidance, CLI installation instructions, API Skill references, x402 setup notes, and a README explaining which method to choose. To get started, give your OpenClaw agent a prompt like:
"Use this repository to set up CoinGecko crypto data access for my OpenClaw environment. Start with MCP and CLI, then validate with a trending query and a BTC/ETH/SOL price check."

What Can You Build with OpenClaw and CoinGecko API?
With CoinGecko connected, your OpenClaw agent gets access to a structured data backbone for crypto. Here are some of the most practical workflows you can set up:
-
24/7 price alerts via Telegram or WhatsApp: Set price thresholds and let your agent notify you when a coin crosses them.
-
Morning market briefing: Have your agent generate a daily summary of trending coins, top gainers, top losers, and overall market health.
-
Crypto research assistant: Ask your agent to analyze a token's historical performance, compare volatility across assets, or summarize market structure changes in plain language.
-
Trend detection: Monitor trending assets, new listings, or category shifts before they become mainstream.
-
Data export automation: Schedule JSON or CSV exports for spreadsheets, dashboards, or downstream reporting tools.
Which CoinGecko Connection Method Should You Use?
If you just want it to work with minimal effort, start with the MCP Server. If you need bulk data exports or historical pulls, use the CLI. If you want your agent to build custom, highly specific integrations, install the CoinGecko API Skill. If you do not want a subscription, try the x402 pay-per-use endpoints.
For the most powerful overall setup, combine MCP, CLI, and the API Skill together. Use MCP for conversational queries, CLI for batch operations and exports, and the API Skill for anything custom that the pre-built tools do not cover.
Whichever method you choose, a persistent OpenClaw agent running around the clock will make many API calls. The free Demo plan gives you 10,000 calls/month to get started. For production usage, CoinGecko's paid API plans offer higher rate limits, more monthly call credits, and access to exclusive capabilities like top gainers and losers, advanced onchain analytics, and real-time WebSocket streaming.
Conclusion
In this guide, we covered four ways to connect CoinGecko to OpenClaw. These methods include MCP for conversational queries, the CLI for bulk data and exports, the API Skill for custom integrations, and x402 for pay-per-use access without a subscription. The strongest setup is usually a combination of MCP, CLI, and the API Skill together. You can start with MCP and add the others as your workflows grow more complex.
If you are just getting started, sign up for a free CoinGecko API key and use the quick-start Github repository to set up all four methods in a single prompt. For production-level usage with higher rate limits and access to exclusive endpoints, consider subscribing to CoinGecko’s paid API plans.
Subscribe to the CoinGecko Daily Newsletter!

Ethereum Mainnet
Base Mainnet
BNB Smart Chain
Arbitrum
Avalanche
Fantom
Flare
Gnosis
Linea
Optimism
Polygon
Polygon zkEVM
Scroll
Stellar
Story
Syscoin
Telos
X Layer
Xai