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

# x402 Skill for OpenClaw

The official Messari skill for OpenClaw allows you to access Messari's data and insights directly from OpenClaw authenticated with x402 or a Messari API key. Answer crypto questions using the Messari API: 34,000+ assets, 210+ exchanges, 14 data services
covering market metrics, social sentiment, research, on-chain analytics, fundraising, governance,
and more.

## Prerequisites

For Authentication you'll need either a wallet with USDC on Base for x402 or a Messari API key.

## Installation

### 1. Install the Messari Skill

Add the Messari Skill to your OpenClaw project. In the project directory, run the following command:

```bash theme={null}
mkdir -p skills/messari && curl -o skills/messari/SKILL.md https://raw.githubusercontent.com/messari/skills/refs/heads/master/openclaw-skill/SKILL.md
```

<img src="https://mintcdn.com/messari-f8af6bf9/fFM0u9p6a3X-jGGM/images/openclaw/oc-0.png?fit=max&auto=format&n=fFM0u9p6a3X-jGGM&q=85&s=85aa9e07aac9bf7f6664d7f90e0c1b5f" alt="Install Command" width="1658" height="642" data-path="images/openclaw/oc-0.png" />

### 2. Add the environment variables

Next in your openclaw\.json file, add the respective environment variables for your authentication method.

X402\_PRIVATE\_KEY: The private key of your x402 wallet.
MESSARI\_API\_KEY: The API key of your Messari account.

```bash theme={null}
nano ~/.openclaw/openclaw.json
```

```json theme={null}
{
    "skills": {
        "install": {
        "nodeManager": "npm"
        },
        "entries": {
        "messari": {
            "enabled": true,
            "env": {
            "X402_PRIVATE_KEY": "" // Add this for x402 authentication, add MESSARI_API_KEY instead for API key authentication
            }
        }
        }
    }
}
```

Restart OpenClaw to apply the changes. And check that the skill is installed.

<img src="https://mintcdn.com/messari-f8af6bf9/fFM0u9p6a3X-jGGM/images/openclaw/oc-1.png?fit=max&auto=format&n=fFM0u9p6a3X-jGGM&q=85&s=d6c05fe0f09fda951243eff4c9b686cb" alt="OpenClaw Skill Installed" width="1058" height="302" data-path="images/openclaw/oc-1.png" />

## Usage

And now you're ready to ask Messari anything about crypto.

<img src="https://mintcdn.com/messari-f8af6bf9/fFM0u9p6a3X-jGGM/images/openclaw/oc-3.png?fit=max&auto=format&n=fFM0u9p6a3X-jGGM&q=85&s=f9d5573f7a49e4fcb4311c78457d5b91" alt="Messari Skill Answer" width="1070" height="890" data-path="images/openclaw/oc-3.png" />

<img src="https://mintcdn.com/messari-f8af6bf9/fFM0u9p6a3X-jGGM/images/openclaw/oc-4.png?fit=max&auto=format&n=fFM0u9p6a3X-jGGM&q=85&s=74895d7a677c6cc8f2e230fa407cf84f" alt="Messari Skill Answer" width="1076" height="1308" data-path="images/openclaw/oc-4.png" />
