lms CLI and an OpenAI-compatible HTTP server. Because it serves /v1/chat/completions, the same instance doubles as the backend for any OpenAI-compatible client or agent.
Requirements
KV cache grows with context length and concurrency, so budget headroom above the weight footprint.
Step 1: Install LM Studio
Download the build for your platform from lmstudio.ai.Step 2: Download the model
Step 3: Load and chat
1
Load the model
Pick it from the model selector at the top of the app’s Chat tab. Set context length in the load panel; start at 32K–64K and raise it once you’ve seen memory pressure at your workload.
2
Chat
Go to the Chat tab and select the Bonsai pack at the top. Bonsai 2 thinks before it answers by default; give it a generous output limit.
Step 4: Serve the model
The same install exposes an OpenAI-compatible server, so LM Studio can act as the Bonsai endpoint for external tools.GET /v1/models, POST /v1/chat/completions, POST /v1/completions, POST /v1/embeddings, POST /v1/responses.
Don’t hardcode the model ID; read it back from the server: