MOSIR

No. 08 · Oct 28, 2026 · Open Source for Business

IT and model operations: llama-swap, one endpoint for many local models (MIT)

llama-swap is a single Go binary that reads the model name in each request and starts or swaps the matching llama.cpp, vLLM or Whisper server behind one endpoint.

By the Local Intelligence Wire desk · Wimberley, Texas ·

llama-swap, maintained under the mostlygeek GitHub account and released under the MIT license, is a proxy that gives applications one OpenAI- and Anthropic-compatible endpoint. When a request arrives it reads the model field, starts the matching backend server (llama.cpp's llama-server, a vLLM container, Whisper and others) if it is not already running, and routes the request. It is configured with one YAML file.

Useful settings include per-model idle timeouts that unload models to free GPU memory, groups that decide which models may run together, aliases that keep stable model names for clients, API keys for access from other machines, and a concurrency limit that returns an error when a model is overloaded. Its built-in keys are not a substitute for network-level access control.

Why it mattersSmall nodes cannot hold every model in memory at once; a router that swaps models on demand lets one box serve chat, embeddings and transcription.

For consultantsUse aliases so client applications call stable names like 'office-chat', and set idle timeouts deliberately; the default never unloads.

Sources

Read the full Oct 28, 2026 edition