Install a local-first AI agent and connect it to a private OpenAI-compatible model endpoint
CAUTION
Before proceeding, review the security risks in the Overview tab. OpenClaw is an AI agent that can access your files, execute commands, and connect to external services. Data exposure and malicious code execution are real risks. Strongly recommended: Run OpenClaw on an isolated system or VM, use dedicated accounts (not your main accounts), and never expose the dashboard to the public internet without authentication.
NOTE
Skip this step on Linux hardware platforms.
If you are on Windows, you can install OpenClaw on native Windows or in Windows Subsystem for Linux (WSL). WSL provides a Linux-style environment if your skills need it; native Windows is often simpler and can connect more easily to Windows apps.
If you choose WSL and it is not already installed:
wsl --install
wsl --version
wsl
On your hardware platform, open a terminal and run the official install script:
curl -fsSL https://openclaw.ai/install.sh | bash
On native Windows, follow the install options documented at openclaw.ai if the curl install path does not apply.
After dependencies are downloaded, OpenClaw will show a security warning. Read the risks; if you accept them, use the arrow keys to select Yes and press Enter.
Work through the prompts as follows.
Quickstart vs Manual: Choose Quickstart.
Model provider:
Filtering models by provider: If prompted, select All Providers. On the next prompt for the default model, choose Keep Current unless you already selected a provider.
Communication channel: You can connect a channel (for example messaging) to use the bot when away from the machine, or select Skip for Now and configure it later.
Skills: We recommend selecting No for now. You can add skills later from the web UI or Clawhub after you’ve tested the basics.
Homebrew: If you are prompted to install Homebrew, select No—Homebrew is for macOS only and is not needed on Linux or Windows for this playbook.
Hooks: We recommend selecting all three for a better experience. Note that this may log data locally; enable only if you’re comfortable with that.
Dashboard URL: The terminal will print a URL for the OpenClaw dashboard. Save this URL (and any access token shown)—you’ll need it to open the web UI.
Finish: Select Yes on the final prompt to complete installation.
You can now open the OpenClaw dashboard in a browser using the URL and token from the installer.
OpenClaw connects to a local, OpenAI-compatible endpoint. Pick a backend that fits your hardware platform, then use the matching subsection. Model recommendations are in the Agent-ready Models tab.
Use when you want an OpenAI-compatible HTTP server and validated agent-ready recipes.
curl http://localhost:8000/v1/models
You should see your model handle in the returned list. The default OpenClaw baseUrl for this path is http://localhost:8000/v1.
Install LM Studio, download a model that fits your VRAM (see the Agent-ready Models table — the 27B example below is for 24GB+ only), and serve it with a large context window (32K minimum; 64K+ recommended when VRAM allows):
curl -fsSL https://lmstudio.ai/install.sh | bash
lms get qwen/qwen3.6-27b
lms load qwen/qwen3.6-27b --context-length 65536
lms server start
Use the Model ID that matches what LM Studio serves. Prefer this path when you want a GUI-oriented, llama.cpp-backed workflow.
curl -fsSL https://ollama.com/install.sh | sh
ollama pull qwen3.6:27b
ollama run qwen3.6:27b
Inside the Ollama session (or via your usual Ollama config), set context high enough for agent use—for example /set parameter num_ctx 65536. Use the exact Ollama model tag as the OpenClaw Model ID.
NOTE
Free as much VRAM as possible before loading the model (close other GPU workloads; enable only the skills you need). Smaller GPUs should use smaller models—see Agent-ready Models.
If you already selected a provider during onboarding and chat works, you can skip to Step 6.
Otherwise, open the OpenClaw config file:
~/.openclaw/openclaw.json
Example with nano:
nano ~/.openclaw/openclaw.json
Add or update the models section so it includes your provider. Example for a vLLM server (no API key required—any non-empty placeholder works):
"models": {
"mode": "merge",
"providers": {
"vllm": {
"baseUrl": "http://localhost:8000/v1",
"apiKey": "vllm",
"api": "openai-responses",
"models": [
{
"id": "nvidia/Qwen3.6-35B-A3B-NVFP4",
"name": "nvidia/Qwen3.6-35B-A3B-NVFP4",
"reasoning": true,
"input": ["text"],
"cost": {
"input": 0,
"output": 0,
"cacheRead": 0,
"cacheWrite": 0
},
"contextWindow": 262144,
"maxTokens": 8192
}
]
}
}
}
Replace id, name, baseUrl, and contextWindow to match the model and backend you launched. The id and name must match the handle served by the backend.
NOTE
If OpenClaw reports an unsupported-endpoint error against the Responses API, change "api": "openai-responses" to the OpenAI chat-completions variant for your OpenClaw version — vLLM always exposes /v1/chat/completions.
If OpenClaw runs in WSL and cannot reach a server on the Windows host, replace 127.0.0.1 / localhost with the Windows host IP as seen from WSL.
If the OpenClaw gateway is already running, restart it so it reloads ~/.openclaw/openclaw.json.
You can also ask OpenClaw which model it’s using. In the gateway chat UI you can switch models by typing: /model MODEL_NAME.
Skills add capabilities but also risk; only enable skills you trust (for example, community-vetted ones). To add a skill:
For more usage and configuration details, see the OpenClaw documentation.