# OpenClaw

URL: https://docs.hanzo.ai/docs/guides/coding/openclaw

> Give OpenClaw the Hanzo toolset and the hosted Hanzo MCP endpoint.

## Hanzo MCP

Two ways to give OpenClaw Hanzo's tools. **API key** is the hosted endpoint, [`https://api.hanzo.ai/v1/mcp`](https://docs.hanzo.ai/docs/mcp-tools), with a key from [hanzo.app](https://hanzo.app) sent as `Authorization: Bearer sk-...`. **Local** is `hanzo-mcp` on your machine, started with `npx -y hanzo mcp` (needs Node.js). With no key set it uses the sign-in `hanzo login` stored, so there is no key to paste ([MCP](https://docs.hanzo.ai/docs/mcp)). Replace `sk-...` with your key.

**API key**

Run this with the Gateway stopped. It saves the server under `mcp.servers` in `~/.openclaw/openclaw.json`.

```bash
openclaw mcp set hanzo-cloud '{"url":"https://api.hanzo.ai/v1/mcp","transport":"streamable-http","headers":{"Authorization":"Bearer sk-..."}}'
```

**Local**

Run this with the Gateway stopped.

```bash
openclaw mcp add hanzo --command npx --arg -y --arg hanzo --arg mcp
```

OpenClaw keeps its servers under `mcp.servers` in `~/.openclaw/openclaw.json`. Saving a server with `openclaw mcp set` or `openclaw mcp add` needs the local Gateway stopped; `openclaw mcp list` shows what is saved.
