← Back to Docs
🦞Guide

How To: Connect OpenMM to OpenClaw

Give your AI agent access to 4+ crypto exchanges in under 5 minutes.

What you'll be able to do:

"Show my portfolio across all exchanges"
"Find arbitrage opportunities for ETH"
"Set up a grid bot for BTC/USDT"
"What's the best pool for SNEK on Cardano?"

Prerequisites

  • OpenClaw installed (npm install -g openclaw)
  • Node.js 18+ installed
  • API keys from at least one exchange

Setup Steps

1

Install the OpenMM Skill

One command to add OpenMM to your OpenClaw instance:

Terminal
openclaw skills add qbt-labs/openmm
2

Configure Your Exchange API Keys

Add your exchange credentials to your shell profile:

~/.zshrc
# Add to ~/.zshrc or ~/.bashrc
export MEXC_API_KEY="your-api-key"
export MEXC_SECRET="your-secret"

# Gate.io
export GATEIO_API_KEY="your-api-key"
export GATEIO_SECRET="your-secret"

# Bitget
export BITGET_API_KEY="your-api-key"
export BITGET_SECRET="your-secret"
export BITGET_PASSPHRASE="your-passphrase"

# Kraken
export KRAKEN_API_KEY="your-api-key"
export KRAKEN_SECRET="your-secret"
3

Restart OpenClaw Gateway

Apply the new configuration:

Terminal
openclaw gateway restart
4

Test Your Connection

Open a chat with your OpenClaw agent and try:

"Get the BTC/USDT price on MEXC"
5

Explore More Commands

Now try these powerful prompts:

"Show me my total portfolio value across all exchanges"
"Find tokens with >2% price difference between MEXC and Gate.io"
"Set up a grid bot for ETH/USDT between $3000-$4000 with 10 levels"

Available Tools

openmm_ticker

Get price, bid/ask, spread

openmm_orderbook

View order book depth

openmm_trades

Recent trades with buy/sell flow

openmm_balance

Account balances

openmm_list_orders

Open orders

openmm_grid_status

Grid strategy status

openmm_cardano_price

Cardano DEX prices

openmm_discover_pools

Find liquidity pools

You're Ready!

Your AI agent now has access to real-time market data and trading across multiple exchanges.