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

# OpenClaw Integration

> Add on-chain intelligence to OpenClaw agents with ChainStream's MCP tools, token analytics, and DEX execution.

## Overview

[OpenClaw](https://openclaw.ai) is an open-source AI agent framework with **300K+ GitHub stars**, widely used for building autonomous agents that interact with tools, APIs, and external systems.

ChainStream integrates with OpenClaw as an **on-chain intelligence layer**, giving agents the ability to query blockchain data, analyze tokens, profile wallets, execute trades, and receive real-time alerts -- all through the standard MCP protocol.

## What Agents Can Do

With ChainStream connected, OpenClaw agents gain access to the full on-chain toolkit:

| Capability               | Description                                                     | Example Tools                                       |
| ------------------------ | --------------------------------------------------------------- | --------------------------------------------------- |
| **Token Analysis**       | Search, analyze, and compare tokens across 10 chains            | `tokens_search`, `tokens_analyze`, `tokens_compare` |
| **Wallet Profiling**     | Profile wallet holdings, PnL, and transaction history           | `wallets_profile`, `wallets_activity`               |
| **DEX Execution**        | Get quotes and execute swaps on decentralized exchanges         | `dex_quote`, `dex_swap`                             |
| **Compliance Screening** | Check token security flags, honeypot detection, authority risks | `tokens_analyze` (security fields)                  |
| **Real-Time Alerts**     | Set up webhook-based notifications for on-chain events          | `webhooks_manage`                                   |
| **Market Discovery**     | Find trending, new, and graduating tokens                       | `market_trending`, `tokens_discover`                |

## Integration Paths

There are two ways to connect ChainStream to your OpenClaw agents:

<CardGroup cols={2}>
  <Card title="ClawHub Skill" icon="puzzle-piece" href="/en/docs/ecosystem/openclaw/skills-install">
    Install the ChainStream skill from ClawHub or via the cross-agent Vercel Skills CLI. Fastest setup -- works in under a minute.
  </Card>

  <Card title="Direct MCP Config" icon="server" href="/en/docs/ecosystem/openclaw/skills-install#method-3-direct-mcp-config">
    Connect via the cloud MCP endpoint or the local npm package. Best for custom agent configurations.
  </Card>
</CardGroup>

## Architecture

```
┌─────────────────┐     MCP Protocol     ┌──────────────────┐
│                  │ ◄──────────────────► │                  │
│  OpenClaw Agent  │     15 Tools         │  ChainStream MCP │
│                  │     4 Prompts        │     Server       │
│                  │     4 Resources      │                  │
└─────────────────┘                       └────────┬─────────┘
                                                   │
                                          ┌────────▼─────────┐
                                          │  ChainStream API  │
                                          │  10 Chains        │
                                          │  8+ DEXes         │
                                          └──────────────────┘
```

The OpenClaw agent communicates with ChainStream through the MCP protocol. Whether you install via ClawHub or self-host, the agent sees the same 15 tools, 4 prompts, and 4 resources.

## Prerequisites

Before setting up the integration:

1. **ChainStream API Key** -- Sign up at [app.chainstream.io](https://app.chainstream.io) and create an API key
2. **OpenClaw** -- An existing OpenClaw agent or project ([OpenClaw docs](https://docs.openclaw.ai))
3. **Node.js 18+** -- Required for the MCP server and CLI tools

## Next Steps

<CardGroup cols={2}>
  <Card title="Installation Methods" icon="download" href="/en/docs/ecosystem/openclaw/skills-install">
    Three ways to install: Vercel Skills CLI, ClawHub, or direct MCP config.
  </Card>

  <Card title="Security" icon="shield" href="/en/docs/ecosystem/openclaw/security">
    Security considerations and best practices for production use.
  </Card>
</CardGroup>
