OpenProgram Docs

Local models

OpenProgram connects to a server you run. Downloads, GPU allocation and server lifecycle stay with that server; OpenProgram can only start it when a call needs it, if you turn that on.

Preset in Settings → Model ServicesDefault API Base URL
Ollamahttp://localhost:11434/v1
LM Studiohttp://localhost:1234/v1
vLLMhttp://localhost:8000/v1
llama.cpphttp://localhost:8080/v1
Local OpenAI-compatible serverhttp://localhost:8000/v1
  1. Start the server and load a model with its own tools.
  2. Enable the provider and save its API Base URL.
  3. Click Fetch models and enable one.
  4. Select it in the chat composer.

localhost is the machine running the worker; for a remote worker, use an address reachable from it. A host and port alone get /v1; an explicit path is kept. Saving a new URL changes later discovery and inference for already enabled models.

SituationWhat to do or expect
Server requires a keyAdd it in the provider account panel. Without one, discovery, checks and inference omit Authorization; a cloud OpenAI key is never sent.
Several serversAdd custom provider: name, URL, Local server (API key optional). Ordinary custom cloud providers keep their credential requirements.
Check the serverConnectivity: a model listing confirms the endpoint; testing a named model also checks inference. Unavailable server, rejected key or invalid response report as failures.
No discoveryAdd model by id, with the exact identifier. It also updates an existing model's limits.
Token limitsEnter limits matching the deployment and its configured context size. Unknown limits default to 4,096 context and 1,024 output. A model's advertised training context does not count.

Start the server when a call needs it

  1. A call goes to a local provider
  2. the server does not answer and autostart is on
  3. OpenProgram runs the start command
  4. waits up to 45 s for the model list
  5. The call goes on
CommandEffect
openprogram providers local-server ollama --autostart onTurn it on. Off by default for every provider
openprogram providers local-server vllm --command "vllm serve Qwen/Qwen3-8B"Set the start command
openprogram providers local-server ollamaShow the setting and the command in use
SituationWhat happens
No command setOllama uses ollama serve and LM Studio lms server start when the program is on the PATH. vLLM, llama.cpp and custom servers need one, because it names the model
The server already answersNothing is started or stopped
After the callA server OpenProgram started keeps running, also after OpenProgram stops. Its output is in ~/.openprogram/logs/local-server-<provider>.log
It fails to startThe turn ends with the reason and the last lines of that log. The start is not tried again for a minute
A remote addressNever started

Local models use OpenAI Chat Completions, on the same streaming, cancellation and tool-call transport as other compatible providers. Tools, images, reasoning and strict JSON depend on the model and server. Enablement and limits persist in the standard configuration.

Last updated · 2026-11-30