ModelSaar

OpenClaw

Rendered from docs/clients/openclaw.md at commit b9d69f7299ed. The repository file is authoritative.

Verified against docs.openclaw.ai on 2026-10-11 (sidebar release v2026.9.9; sources in research/clients-2026-10-11.md, §2). OpenClaw is the project formerly released as Warelay → Clawdbot → Moltbot (renamed OpenClaw 2026-01-30). Test status: configuration keys documented; live OpenClaw tool round trip NOT RUN in this build.

Generate the snippet: modelsaar client-config openclaw (--apply merges into ~/.openclaw/openclaw.json with a backup when the file is plain JSON; JSON5 files with comments must be merged by hand).

Key facts

{
  agents: { defaults: { model: { primary: "modelsaar/auto" } } },
  models: {
    mode: "merge",
    providers: {
      modelsaar: {
        baseUrl: "http://127.0.0.1:8484/v1",
        apiKey: "${MODELSAAR_API_KEY}",
        api: "openai-completions",
        timeoutSeconds: 300,
        models: [
          { id: "auto", name: "ModelSaar auto", reasoning: false, input: ["text"],
            contextWindow: 32768, maxTokens: 8192,
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            compat: { supportsTools: true, supportsPromptCacheKey: true } },
          { id: "auto-code", name: "ModelSaar auto-code", reasoning: false, input: ["text"],
            contextWindow: 32768, maxTokens: 8192,
            cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
            compat: { supportsTools: true, supportsPromptCacheKey: true } }
        ]
      }
    }
  }
}

export MODELSAAR_API_KEY=$(head -1 ~/.modelsaar/keys/api_keys) in the shell that runs OpenClaw.

Use the contextWindow printed by client-config (the alias contract's minimum across members) so OpenClaw's own context management stays within what every eligible deployment can serve.

Notes