mostlygeek

    mostlygeek/llama-swap

    Reliable model swapping for any local AI server. Chosen by thousands of users. Batteries included. If we don't have it, you probably don't need it.

    llm
    ai
    golang
    llama
    llamacpp
    localllama
    localllm
    Go
    MIT
    6.2K stars
    541 forks
    25 GitHub watchers
    Updated Nov 6, 2026
    View on GitHub

    Build with Backblaze B2

    SDKs, agent skills, IDE extensions, and reference pipelines from Backblaze Labs. All open source.

    Explore Backblaze Labs

    Loading star history...

    Where it stands

    Rank, growth pace and release cadence relative to everything GStars tracks.

    5 releases in the last 90 days, the latest today, with 87 contributors on GitHub.

    Peaked at #40 in the weekly ranking the week of Mar 29, its best in the past year.

    Use Cases & Benefits

    • Provides a lightweight proxy server for automatic model swapping across local OpenAI/Anthropic compatible servers like llama.cpp and vllm.
    • Enables seamless on-demand switching and concurrent running of multiple models with minimal configuration and no dependencies.
    • Use for managing multiple local language models with automatic loading and unloading to optimize resource usage.
    • Use for integrating various OpenAI-compatible inference servers behind a unified API with transparent model routing.
    • Use for monitoring and controlling model activity via a real-time web UI and remote log streaming.

    Should you depend on it?

    License terms, project hygiene and risks, from GitHub metadata and GStars' snapshots.

    License

    MIT

    Permissive: commercial use, modification and redistribution are allowed with attribution.

    Community files

    • README: present
    • Contributing guide: present

    Watch-outs

    No watch-outs from GStars' checks.

    General guidance from repository metadata, not legal advice. How we score

    From the README

    llama-swap is a light weight, transparent proxy server that provides automatic model swapping to llama.cpp's server.

    Written in golang, it is very easy to install (single binary with no dependencies) and configure (single yaml file). To get started, download a pre-built binary, a provided docker images or Homebrew.

    When a request is made to an OpenAI compatible endpoint, llama-swap will extract the model value and load the appropriate server configuration to serve it. If the wrong upstream server is running, it will be replaced with the correct one. This is where the "swap" part comes in. The upstream server is automatically swapped to the correct one to serve the request.

    In the most basic configuration llama-swap handles one model at a time. For more advanced use cases, the groups feature allows multiple models to be loaded at the same time. You have complete control over how your system resources are used.

    Excerpt from the mostlygeek/llama-swap README on GitHub (MIT license). © its authors.Read the full README on GitHub

    Daily snapshots

    Stars gained per day, and how forks and open issues moved, from GStars' daily snapshots

    Aug 17: +13Aug 18: +5Sep 24: +4Oct 5: +11

    +845 stars over 84 days across 13 snapshot days; best day +13 on Aug 17.

    Forks

    541+128

    Open issues

    119+42

    Compared with peers in LLM

    Fastest-growing repositories GStars tracks in this cohort for the week of Nov 1, by 7-day star growth

    mostlygeek/llama-swap compared with LLM repositories by stars, 7-day star growth, health score and last release
    RepositoryStars+7dHealthLast release
    thedotmack/claude-mem113.6K+8.8K35today
    NVIDIA/auto-ontology7.5K+5.6K37—
    HKUDS/DeepTutor55.5K+5.5K655 days ago
    affaan-m/ECC297.9K+5.2K6335 days ago
    DietrichGebert/ponytail185.3K+5.1K607 days ago
    mostlygeek/llama-swap6.2K—40today
    Category median113.6K+5.5K60—

    Discover Repositories

    Search across tracked repositories by name or description