From cb8065d7d90c9568dd698c3f2686f67a079279c8 Mon Sep 17 00:00:00 2001 From: "openclaw-docs-sync[bot]" Date: Mon, 27 Apr 2026 07:18:13 +0000 Subject: [PATCH] chore(sync): mirror docs from openclaw/openclaw@45778a840d274eeba1a685806bfe3fe25807cc6e --- .openclaw-sync/source.json | 4 ++-- docs/providers/lmstudio.md | 23 ++++++++++------------- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/.openclaw-sync/source.json b/.openclaw-sync/source.json index fe512eca0..1ba4a3b51 100644 --- a/.openclaw-sync/source.json +++ b/.openclaw-sync/source.json @@ -1,5 +1,5 @@ { "repository": "openclaw/openclaw", - "sha": "baace37fefe26862b264077642fb067bd867aab8", - "syncedAt": "2026-04-27T07:04:23.288Z" + "sha": "45778a840d274eeba1a685806bfe3fe25807cc6e", + "syncedAt": "2026-04-27T07:16:51.280Z" } diff --git a/docs/providers/lmstudio.md b/docs/providers/lmstudio.md index f59fca93f..26f1aabb5 100644 --- a/docs/providers/lmstudio.md +++ b/docs/providers/lmstudio.md @@ -30,17 +30,13 @@ lms server start --port 1234 If you are using the app, make sure you have JIT enabled for a smooth experience. Learn more in the [LM Studio JIT and TTL guide](https://lmstudio.ai/docs/developer/core/ttl-and-auto-evict). -3. OpenClaw requires an LM Studio token value. Set `LM_API_TOKEN`: +3. If LM Studio authentication is enabled, set `LM_API_TOKEN`: ```bash export LM_API_TOKEN="your-lm-studio-api-token" ``` -If LM Studio authentication is disabled, use any non-empty token value: - -```bash -export LM_API_TOKEN="placeholder-key" -``` +If LM Studio authentication is disabled, you can leave the API key blank during interactive OpenClaw setup. For LM Studio auth setup details, see [LM Studio Authentication](https://lmstudio.ai/docs/developer/core/authentication). @@ -73,7 +69,7 @@ openclaw onboard \ --auth-choice lmstudio ``` -Or specify base URL or model with API key: +Or specify the base URL, model, and optional API key: ```bash openclaw onboard \ @@ -88,13 +84,14 @@ openclaw onboard \ `--custom-model-id` takes the model key as returned by LM Studio (e.g. `qwen/qwen3.5-9b`), without the `lmstudio/` provider prefix. -Non-interactive onboarding requires `--lmstudio-api-key` (or `LM_API_TOKEN` in env). -For unauthenticated LM Studio servers, any non-empty token value works. +For authenticated LM Studio servers, pass `--lmstudio-api-key` or set `LM_API_TOKEN`. +For unauthenticated LM Studio servers, omit the key; OpenClaw stores a local non-secret marker. `--custom-api-key` remains supported for compatibility, but `--lmstudio-api-key` is preferred for LM Studio. -This writes `models.providers.lmstudio`, sets the default model to -`lmstudio/`, and writes the `lmstudio:default` auth profile. +This writes `models.providers.lmstudio` and sets the default model to +`lmstudio/`. When you provide an API key, setup also writes the +`lmstudio:default` auth profile. Interactive setup can prompt for an optional preferred load context length and applies it across the discovered LM Studio models it saves into config. @@ -147,7 +144,7 @@ Same behavior applies to these OpenAI-compatible local backends: ### LM Studio not detected -Make sure LM Studio is running and that you set `LM_API_TOKEN` (for unauthenticated servers, any non-empty token value works): +Make sure LM Studio is running. If authentication is enabled, also set `LM_API_TOKEN`: ```bash # Start via desktop app, or headless: @@ -166,7 +163,7 @@ If setup reports HTTP 401, verify your API key: - Check that `LM_API_TOKEN` matches the key configured in LM Studio. - For LM Studio auth setup details, see [LM Studio Authentication](https://lmstudio.ai/docs/developer/core/authentication). -- If your server does not require authentication, use any non-empty token value for `LM_API_TOKEN`. +- If your server does not require authentication, leave the key blank during setup. ### Just-in-time model loading