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.
Use https://build.nvidia.com/playbooks/openclaw.md and complete this playbook on this machine: Run OpenClaw with a Local LLM. Fetch that .md URL directly; the non-.md page is a JavaScript shell. When finished, state clearly whether the playbook succeeded, and give the evidence: what you installed, where, and the output of a command proving it works (a version string, a container listing, or an HTTP status).
NOTE
This has been tested using OpenCode and Qwen 3.8 35B A3B NVFP4. Performance and outcome may vary based on agent and model selection.
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, read the security disclaimer and accept any confirmation if you agree to proceed.
Work through the prompts as follows.
How would you like to start? Choose Quick start (recommended).
What would you like to create? Choose One agent.
Model/auth provider:
After selecting Skip for now, onboarding returns to the shell. Continue with Step 4 to start the model server and Step 5 to configure OpenClaw and start the Gateway. You can add channels, skills, and hooks later.
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.
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.