How to trade with OpenClaw
Short answer: OpenClaw connects to OpenFinance as a remote MCP server. Run
openclaw mcp add openfinance --url https://api.openfinance.tech/agent/mcp --transport streamable-http, check it withopenclaw mcp doctor openfinance --probe, and your OpenClaw agent (and any chat channel it's wired to) can trade crypto, onchain stocks, forex, memecoins and Polymarket.
MCP URL: https://api.openfinance.tech/agent/mcp · HTTP streamable · works with any MCP client · one URL, no SDK · no KYC · fund with a debit card.
Setup in 60 seconds: get your OpenFinance key and start trading all markets with the cheapest fees.
How OpenClaw connects to tools
OpenClaw keeps MCP servers under mcp.servers in ~/.openclaw/openclaw.json. You can add one from the Control UI (Settings → MCP → Add server) or the CLI. Remote servers need transport: "streamable-http" (the default is SSE), plus optional headers or auth: "oauth" with openclaw mcp login. Skills are separate from MCP; OpenFinance plugs in as MCP, not as a skill.
Set up OpenClaw in under 60 seconds
- Run the command below.
- Add your key as a header in the Control UI's config editor (use a
${OPENFINANCE_API_KEY}reference, not a literal). - Run
openclaw mcp doctor openfinance --probe; it should list tools. - Send your agent “list OpenFinance tools”.
- Optional:
--includeto expose only quote tools on public channels.
openclaw mcp add openfinance \
--url https://api.openfinance.tech/agent/mcp \
--transport streamable-http
openclaw mcp doctor openfinance --probe
Get your OpenFinance key at openfinance.tech (sidebar → External AI), then fund it with a debit card or crypto.
What OpenClaw can trade through OpenFinance
OpenClaw can trade crypto spot and leveraged perps on Hyperliquid, onchain stocks such as TSLA and NVDA, forex, Solana and Base memecoins, and Polymarket prediction markets, all with one OpenFinance key. The full market list is on the hub page.
Prompts to try in OpenClaw
- “From my Discord: long BTC 5x with $50 and post the fill here.”
- “Chart TSLA and buy with 3x margin if RSI is under 35.”
- “Buy $50 of NVDA, $50 of AAPL, report total cost.”
- “Ape $20 into the trending Solana memecoin, then sell half at +40%.”
- “What's Polymarket pricing for the election? Bet $10 on the underdog.”
FAQ
Why do I need --transport streamable-http?
OpenClaw defaults remote servers to SSE. OpenFinance speaks Streamable HTTP, so set it explicitly.
Is there an OpenFinance skill on ClawHub?
Not that we know of. Use the MCP server; a ClawHub skill could wrap it later.
How do I check the connection?
openclaw mcp doctor openfinance --probe opens a live session and lists tools. Saving the config alone proves nothing.
Can I keep the key out of config?
Yes. Use ${OPENFINANCE_API_KEY}; doctor warns about literal secrets.
Can OpenClaw trade from Ray-Ban Meta glasses?
Meta's VisionClaw cookbook sends voice + photo from Ray-Ban Meta to an OpenClaw gateway. With OpenFinance on that gateway, voice trading is possible. See our Ray-Ban Meta page.
Safe for group chats?
Use a tool filter to expose market data only, or require approval for order tools.
Related
- Make any AI agent trading-compatible: every agent and market in one place
- Hyperliquid MCP server
- Polymarket MCP server
- OpenFinance vs Alpaca vs CCXT: how OpenFinance compares with a broker API
Sources: https://docs.openclaw.ai/tools/mcp, https://docs.openclaw.ai/cli/mcp/transports
Trading involves risk, especially with leverage and memecoins. Start small.