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

# OpenClaw

> Connect OpenClaw to Routeway through the OpenAI-compatible API.

OpenClaw is an open-source personal AI assistant that can run on your own devices and connect to messaging channels you already use. It connects to Routeway through the OpenAI-compatible Chat Completions endpoint.

<Note>
  Requires a valid Routeway API key. Get yours from the [dashboard](https://routeway.ai/dashboard/api-keys).
</Note>

***

## Setup

<Steps>
  <Step title="Install OpenClaw">
    Ensure OpenClaw is installed and running on your device. Follow the [official OpenClaw documentation](https://github.com/openclaw) for installation instructions.
  </Step>

  <Step title="Update your OpenClaw config">
    Open `~/.openclaw/openclaw.json` and add a provider named `routeway`. Replace `YOUR_MODEL_ID` with a model from [routeway.ai/models](https://routeway.ai/models):

    ```json theme={null}
    {
      "models": {
        "mode": "merge",
        "providers": {
          "routeway": {
            "baseUrl": "https://api.routeway.ai/v1",
            "apiKey": "YOUR_ROUTEWAY_API_KEY",
            "api": "openai-completions",
            "models": [
              {
                "id": "YOUR_MODEL_ID",
                "name": "Routeway model",
                "api": "openai-completions"
              }
            ]
          }
        }
      },
      "agents": {
        "defaults": {
          "model": {
            "primary": "routeway/YOUR_MODEL_ID"
          }
        }
      }
    }
    ```

    <Info>
      If your OpenClaw setup expects more model metadata, copy an existing provider entry and only change the base URL, API key, and model ID.
    </Info>
  </Step>

  <Step title="Apply the config">
    Apply the updated file and restart OpenClaw if needed:

    ```bash theme={null}
    openclaw gateway config.apply --file ~/.openclaw/openclaw.json
    ```
  </Step>

  <Step title="Verify the connection">
    Start OpenClaw and run a simple prompt. If the assistant responds and your selected model is shown correctly, the integration is working.
  </Step>
</Steps>

***

## Notes

* **Base URL** must include `/v1`: `https://api.routeway.ai/v1`
* OpenClaw model names use the provider prefix, e.g. `routeway/YOUR_MODEL_ID`
* Keep real API keys out of version control
