#2323rd of 129 in Model serving

llama-swap

Go proxy that starts and swaps local model servers per request

Run it:Vast.ai ↗ (opens in a new tab)RackNerd ↗ (opens in a new tab)RepoCloud ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.

Stars
6.4k
License
MIT
Last commit
Nov 2026
Last release
Nov 2026
Language
Go
Stars, last 35 weeks+3,502
26 Mar 2026: 2,849 stars2 Apr 2026: 2,981 stars9 Apr 2026: 3,096 stars16 Apr 2026: 3,258 stars23 Apr 2026: 3,516 stars30 Apr 2026: 3,675 stars7 May 2026: 3,811 stars14 May 2026: 3,989 stars21 May 2026: 4,137 stars28 May 2026: 4,245 stars4 Jun 2026: 4,327 stars11 Jun 2026: 4,429 stars18 Jun 2026: 4,609 stars25 Jun 2026: 4,721 stars2 Jul 2026: 4,810 stars9 Jul 2026: 4,898 stars16 Jul 2026: 4,966 stars23 Jul 2026: 5,075 stars30 Jul 2026: 5,163 stars6 Aug 2026: 5,242 stars13 Aug 2026: 5,306 stars20 Aug 2026: 5,392 stars27 Aug 2026: 5,456 stars3 Sept 2026: 5,535 stars10 Sept 2026: 5,606 stars17 Sept 2026: 5,666 stars24 Sept 2026: 5,730 stars1 Oct 2026: 5,788 stars8 Oct 2026: 5,897 stars15 Oct 2026: 5,971 stars22 Oct 2026: 6,058 stars29 Oct 2026: 6,130 stars5 Nov 2026: 6,204 stars12 Nov 2026: 6,251 stars19 Nov 2026: 6,292 stars26 Nov 2026: 6,351 stars

2,849 on 26 Mar 20266,351 on 26 Nov 2026

From GitHub's daily star counts.

Checked on GitHub.

Overview

llama-swap is a single Go binary that reads the `model` field of incoming OpenAI- or Anthropic-style requests and starts the matching upstream server from a YAML config, stopping the previous one. It works with llama.cpp and forks, vllm, stable-diffusion.cpp, audio.cpp and ComfyUI. A `matrix` option allows concurrent models, and a built-in web UI offers a playground, logs and manual load/unload.

Who it is for: Self-hosters running several local models on one GPU machine

Strengths

  • One binary and one YAML file; no external dependencies
  • Covers chat, embeddings, rerank, audio, image and Anthropic messages endpoints
  • Per-model ttl auto-unload, API keys, Prometheus /metrics and log streaming endpoints
  • Upstream servers can be upgraded independently since each model is just a cmd

Weaknesses

  • Does not run inference itself; needs separate upstream servers like llama-server
  • Python servers like vllm are recommended to run in Docker or Podman for clean shutdown
  • Default mode holds one model at a time; concurrency needs matrix DSL setup
  • Swapping means a full model reload, adding latency on the first request after a switch

What it needs

  • GPU optional
  • Docker
  • Needs llama-server or another OpenAI-compatible inference server
  • Models: GGUF via llama.cpp, vllm, stable-diffusion.cpp, whisper.cpp, audio.cpp
  • port 8080

What changed

  1. v277 ↗ (opens in a new tab)Security fix

    “Important Security fix for cross-site requests. NVIDIA GPU temperatures show up again on newer drivers.”

From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS

Known problems

Open now, reported in the last 90 days

Reported, then fixed by a linked change

Titles are the reporters' own words, taken from the project's GitHub issues and ranked by reactions. We have not tried to reproduce any of them.

Also in Model serving

See all 129
Also in Model serving
RankProjectScore
#21web-llmRuns LLMs inside the browser on WebGPU with an OpenAI-style JS API Live demo ↗ (opens in a new tab)19.4k starsApache-2.082 out of 100
#22mooncakeKV cache transfer engine and distributed cache store for LLM inference clusters7.2k stars+241 (+3.5%) in 30 daysApache-2.082 out of 100
#24openvinoInference toolkit for converting and running models on Intel CPUs, GPUs and NPUs13.1k starsApache-2.081 out of 100
#25edge0Streaming MoE inference that serves 35B models from SSD on Apple Silicon11k stars+3,409 (+45%) in 30 daysApache-2.081 out of 100
#26cogPackages Python ML models into Docker images with a generated HTTP API9.5k starsApache-2.081 out of 100