Use Wavefunction with LM Studio
LM Studio, and any other server with an OpenAI-compatible API, can run the agent’s models on your own computer.
Updated November 26, 2026
Before you start
- In LM Studio, download a model that supports tool calling.
- Start LM Studio’s local server. By default it listens at
http://127.0.0.1:1234. - Note the model’s ID as LM Studio shows it.
Connect it
- Open Settings › Models › Add provider and choose OpenAI & compatible servers.
- Set Provider to Compatible server.
- Enter the model’s ID in Model ID.
- Enter
http://127.0.0.1:1234/v1in API base URL. The field starts empty. - Leave API key empty for a local server.
- Click Enable model.
Wavefunction doesn’t read the server’s model list: add each model by its ID. The model you enable last becomes your default.
Other servers
Any server with an OpenAI-compatible API connects the same way, such as llama.cpp’s server or vLLM. Use its base URL, ending in /v1, and its API key if it needs one.
Good to know
- Models must support tool calling to make code changes.
- Web search needs a Tavily API key under Settings › Models › Web search.
- Using Ollama instead? See Ollama.