N·06Integration guides

OpenClaw

A self-hosted AI gateway that connects chat entry points like Telegram, Discord and Slack to a coding agent; the model source is customizable — just set it to XylemNode.

  1. 01

    Install

    Install globally with npm (Node 24.16 or newer, Node 26 recommended; on npm 11.15 or older, drop --allow-scripts=openclaw), then run openclaw onboard --install-daemon: it writes the config file and installs the gateway as a background service. Finally, check the version to confirm.

    terminal
    npm install -g openclaw@latest --allow-scripts=openclaw
    openclaw onboard --install-daemon
    openclaw --version
  2. 02

    Find the config file

    OpenClaw keeps its config in a single JSON5 file (comments and trailing commas allowed). If it doesn't exist, run openclaw onboard to create it; to relocate it, set OPENCLAW_CONFIG_PATH.

    Windows
    %USERPROFILE%\.openclaw\openclaw.json
    macOS
    ~/.openclaw/openclaw.json
    Linux
    ~/.openclaw/openclaw.json
  3. 03

    Write the provider config

    Add XylemNode as a model source and set it as the default. baseUrl uses the OpenAI-compatible format and needs /v1; set api to openai-completions, which sends Chat Completions requests; the key can be written directly or referenced as an environment variable like ${XYLEMNODE_API_KEY}.

    json
    {
      "agents": {
        "defaults": {
          "model": { "primary": "xylemnode/gpt-6.1-sol" }
        }
      },
      "models": {
        "mode": "merge",
        "providers": {
          "xylemnode": {
            "baseUrl": "https://api.xylemnode.com/v1",
            "apiKey": "sk-your-key",
            "api": "openai-completions",
            "models": [
              { "id": "gpt-6.1-sol", "name": "GPT-6.1 Sol" }
            ]
          }
        }
      }
    }
  4. 04

    Restart the gateway and verify

    Restart the gateway after changes so they take effect, then list models to confirm XylemNode loaded; openclaw doctor can health-check your config. If the gateway isn't running, restart does nothing: check openclaw gateway status first and start it with openclaw gateway start.

    terminal
    openclaw gateway restart
    openclaw models list

    # Health-check the config

    openclaw doctor

Common questions

OpenClaw says No API provider registered, or a changed URL and key have no effect

Two separate traps. The first is an incomplete config: on some versions, leaving the api field out of the provider block throws No API provider registered for api: undefined — there is an issue in the repository specifically about that message not telling you what is missing. Spelling out api: "openai-completions" fixes it. The second is subtler: the first agent run writes the provider into ~/.openclaw/agents/<agentId>/agent/models.json, and the baseUrl and plain-text apiKey already in that file take precedence over the global openclaw.json, so new values you later set there never reach the agent — it shows up as an inexplicable 401. Delete the models.json in the affected agent's directory and let it regenerate from the new config. Also don't count on variables like OPENAI_BASE_URL taking effect: the embedded agent has been reported to ignore them, so the address only comes from baseUrl in the config (referencing the key as ${XYLEMNODE_API_KEY} in the config is unaffected).