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

# OpenClaw

> Add nemonist as a model provider in OpenClaw.

**1. Use Node 24**

OpenClaw needs Node 24 or later. Check with `node --version`.

**2. Add a nemonist provider**

Add a nemonist provider to `~/.openclaw/openclaw.json`:

```json theme={null}
{
  "models": {
    "providers": {
      "nemonist": {
        "baseUrl": "https://nemonist.com/api/v1",
        "apiKey": "${NEMONIST_API_KEY}",
        "api": "openai-completions",
        "models": [{ "id": "anthropic/claude-sonnet-5.5", "name": "Claude Sonnet 5.5" }]
      }
    }
  },
  "agents": {
    "defaults": {
      "model": { "primary": "nemonist/anthropic/claude-sonnet-5.5" },
      "workspace": "~/code/my-project"
    }
  },
  "gateway": {
    "mode": "local",
    "auth": { "mode": "token", "token": "${OPENCLAW_GATEWAY_TOKEN}" }
  }
}
```

Models are named `nemonist/<model ID>`, with any ID from the [model list](https://nemonist.com/models). The `gateway` entry runs the gateway on this computer with a token; without `gateway.mode`, `openclaw gateway run` refuses to start.

**3. Point the workspace at your project**

OpenClaw works in one folder, its workspace, whatever folder you start it in. Set `workspace` to your project, so its memory is that project's memory. For a second project, use a second profile (`openclaw --profile <name>`) with its own workspace.

**4. Put your keys in your shell profile**

Your nemonist key, and a gateway token you make once with `openssl rand -hex 24`:

```bash theme={null}
export NEMONIST_API_KEY="sk-nm-..."
export OPENCLAW_GATEWAY_TOKEN="<the token you made>"
```

The gateway and the terminal you send turns from must see the same token, so write the value itself, not a command that makes a new one.

**5. Start the gateway**

```bash theme={null}
openclaw gateway run
```

**6. Send a turn**

In a second terminal:

```bash theme={null}
openclaw agent --agent main -m "Hello"
```

> [!WARNING]
>
> Setting `OPENROUTER_BASE_URL` does not change where OpenClaw sends requests, so they still go to OpenRouter with your nemonist key and fail with "401 Missing Authentication header". Use the `models.providers` entry above.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.