Step 1: Serve Bonsai
Step 2: Install OpenClaw
Step 3: Point it at Bonsai
Bonsai’s server is a generic OpenAI-compatible endpoint, so configure it as a custom local provider rather than picking a named one. Edit your OpenClaw config (openclaw config edit) and add:
input: ["text", "image"]applies to Bonsai 27B; drop"image"for the text-only 8B/4B/1.7B sizes.contextWindowshould match whatever you pass to-cwhen starting the server (or the model’s max context — see each model page).models.mode: "merge"keeps any hosted models you already use (Claude, GPT, etc.) configured as fallbacks alongside Bonsai.
Step 4: Launch
OpenClaw’s own local-models guide recommends running the largest model your hardware can host for agent loops — small or heavily quantized models are more prone to mishandling tool calls and prompt injection. Prefer ternary over 1-bit, and 27B over the smaller Bonsai sizes, for agentic work.