Skip to content
OSULZER.AT
AI5 min read· updated February 9, 2026

Running Open Claw with a Local LLM and LM Studio

How to run the Open Claw assistant with a local LLM via LM Studio instead of paid APIs. Notes on setup, model settings and fixes for common errors.

Open Claw is on everyone’s lips right now, be it because of the security problems, the many name changes, the social network where LLMs could chat with each other, or not least because of the huge potential of a personal Jarvis-style assistant. The personal assistant is too interesting not to try anyway, and ideally to run it with a self-hosted local AI that supports tool calling. That costs electricity, but it is far cheaper than expensive API calls. After an interesting evening of reading up on it, I already managed to build a working setup that is currently being tested thoroughly. In this post I have collected a few notes on it.

Preparation

I do not run Open Claw directly on my computer. Instead, I banished the assistant to a small, somewhat older mini PC. The advantage is that it can operate in a somewhat controlled environment. I would recommend a similar approach to you; if you do not want to use a separate PC, you can also set up a virtual machine. For the operating system I use the latest version of Ubuntu Server. Below, I will not go into every step in detail, but only cover settings that differ from the defaults. It is also important to note that you should give your AI the largest possible context window. Deep in the documentation there was talk of a 100k context window. I cannot reach that here in my local environment with a larger model, but it works anyway.

LLM Temperatures, Top_P / Top_K and Other Settings

Before you start, take a look at the recommended temperatures and other settings for your local AI. In the case of Qwen 3 Next Coder, they would be as follows:

  • Temperature = 1.0
  • Top_P = 0.95
  • Top_K = 40
  • Min_P = 0.01 (llama.cpp’s default is 0.05)

If these values differ, that can be one reason why the AI delivers unexpected output. In my case, without the adjustments above, Qwen 3 Next Coder kept spitting out Chinese characters.

Installing OpenClaw

  1. Install Homebrew -> https://brew.sh/
  2. Install OpenClaw -> https://openclaw.ai/

Right after installing OpenClaw you land in the onboarding process. Here we accept the warning messages and make the following settings. For now we skip through the actual configuration, since only the installation itself matters to us at this point.

  1. “Onboard Mode” -> “Quickstart”
  2. „Model/auth Provider“ -> „Skip for Now“
  3. “Filter Models by provider“ -> „All providers“
  4. „Default model“ -> “keep current”
  5. “Select Channel” -> “skip for now”
  6. “Configure skills now?” -> “No”
  7. “How do you want to hatch your bot?” -> “Hatch in TUI”

Now Open Claw tries to connect to your AI, which of course does not work.

Configuring Open Claw for the LM Studio Connection

We leave Open Claw and switch to the config:

nano .openclaw/openclaw.json

Config snippet:

  "models": {
    "mode": "merge",
    "providers": {
      "lmstudio": {
        "baseUrl": "http://192.168.50.183:1234/v1/",
        "apiKey": "lmstudio",
        "api": "openai-completions",
        "models": [
          {
            "id": "qwen/qwen3-coder-next",
            "name": "qwen/qwen3-coder-next",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 50000,
            "maxTokens": 4096
          }
        ]
      }
    }
  },

Insert the snippet before “agents” and adjust the settings to your circumstances. Among other things, the "api": "openai-completions" line is important. If you run into problems with your model and the LM Studio server throws messages like [Server error] [Object object] during tool calling, you will most likely have to change this setting to "openai-responses". That one is newer, but in my tests with local models the "openai-completions" API was always the right choice.

You can find the correct name of your model in the Server tab of LM Studio (Developer -> Local Server); the desired model has to be loaded first. In this tab you will also find the IP address of your LM Studio instance (I will not go into all the settings for LM Studio here, as there are plenty of guides for that). Important to note: in my case, I have to allow access to the IP over my local network. Also do not forget the contextWindow setting. It should be the same as the setting in LM Studio; the larger your context window, the better.

Now we insert the following snippet under “agents”.

  "agents": {
    "defaults": {
      "model": {
        "primary": "lmstudio/qwen/qwen3-coder-next"
      },
      "models": {
        "qwen/qwen3-coder-next": {}
      },

Once we are done, we save our new config file and start the OpenClaw onboarding again.

openclaw onboard

We now click through the warning messages again and choose the following:

  1. „Onboard Mode“ -> „Quickstart“ - Now we should see the new connection details for our local AI. We continue through the onboarding.
  2. „Config handling“ -> „Use existing values“
  3. „Model/auth Provider“ -> „Skip for Now“
  4. “Filter Models by provider“ -> „All providers“
  5. „Default model“ -> “keep current”

Now you can connect WhatsApp or Telegram, for example. For this guide we skip that step and move on to the skills:

  1. „Configure Skills now“ -> „Yes“
  2. „Show Homebrew install command“ -> „Yes“
  3. „Preferred node manager for skill installs“ -> „npm“

Here you can now pick a few first skills. In the next step you will also be asked for API keys, where you can already go wild.

Problems and Solutions

LM Studio: [Server error] [Object object] Error

LM Studio: [Server error] [Object object] error. Local LLMs with tool calling such as Qwen 3 Coder Next or GLM 4.6 do not yet use the new OpenAI Responses API, which LM Studio uses for tool calling by default. The error message [Server error] [Object object] refers to the resulting communication problem.

Fix: In the file .openclaw/openclaw.json, under models -> providers -> {your_model} -> api, enter the value openai-completions.

Local AI Solutions

AI in your own company?

Language models on your own server - your data stays in-house.

See the AI solutions

New project?

Contact.

Tell me briefly about your project - I'll get back to you personally.

Your data is used solely to handle your inquiry. More in the privacy policy.