← Open Source

Run any agent on any model, models stored as OCI images.

InfrastructureDeploy & ServeModel HubRust
Momentum
+3stars in 24 hours+0.5%
613
Stars
74
Forks
+6
This week
27
Contributors
Created 2026-03-22 · Updated 2026-12-05 · #2918 today
Top developers
README

llmman

Run any agent on any model.

Claude Code, Codex, OpenCode and friends, pointed at a model running on your own machine, or at any hosted provider, in one command.

llmman launch claude --model qwen3.8

That starts a local inference server, fetches the tested llama.cpp release for your GPU (as a container on Linux, otherwise a prebuilt binary), loads the model, and execs an agent against it.

Models are OCI images, so moving one takes no tooling you don't already have:

llmman transfer hf.co/unsloth/Qwen3.5-0.8B-GGUF docker.io/owner/model:latest

That copies from Hugging Face into your own registry directly, without a copy landing in your local store.

Why llmman?

  • Provider agnostic. The same launch, run and list commands work against a local model or any hosted provider (--provider baseten, --provider groq, ...). One endpoint, one agent config, local or hosted.
  • Registry agnostic. llmman run qwen3.8 pulls straight from Docker Hub; llmman run org/model pulls straight from Hugging Face (rules). Or package a model as a plain OCI artifact and push it to GHCR, quay, Harbor or a self-hosted mirror, then llmman run it from there. No curated library, no account with llmman, no gatekeeper.
  • Vanilla everything. Upstream llama.cpp releases (or the llama-server already on your PATH), vllm, sglang and mlx-lm as-is, serving unmodified GGUF and safetensors files. No fork to wait on, no import step, no private blob format: the store is a standard OCI Image Layout that all can read.
  • One-step transfer. Any source pull understands paired with any OCI registry destination, optionally signed, without a copy in your local store. That is the shape air-gapped and compliance-bound environments need.
  • Pool your machines. Several llmman serve daemons form an aggregation: name the others, and a request to any of them runs on whichever node has the model loaded or the most room for it. A laptop, a workstation and a Spark look like one endpoint.

Install

Linux, macOS:

curl -fsSL https://llmmanorg.github.io/install.sh | sh

Linux: glibc 2.28 or newer. --runtime bin needs more (docs/backends.md); on an older host use --runtime docker. The riscv64 binary (best effort) needs glibc 2.35.

Windows (PowerShell):

irm https://llmmanorg.github.io/install.ps1 | iex

Homebrew:

brew install llmmanorg/tap/llmman

Scoop:

scoop bucket add llmman https://github.com/llmmanorg/scoop-bucket
scoop install llmman

To start llmman serve at every logon, see Run in the background.

Desktop app (a tray icon that opens the web UI and keeps llmman serve running; see desktop/README.md):

  • Linux: brew install llmmanorg/tap/llmman-desktop, then launch llmman from the application menu.
  • macOS (Apple Silicon): brew install --cask llmmanorg/tap/llmman-desktop, or open llmman-desktop-aarch64-apple-darwin.dmg (right-click, Open the first time); launch llmman from Launchpad.
  • Windows: install llmman-desktop.msixbundle; launch llmman from the Start menu.

All include llmman.

Cargo:

cargo binstall llmman   # prebuilt binary
cargo install llmman    # build from source; needs Go 1.27.3+ (and LLVM on Windows) as well as Rust

Upgrading: an upgrade leaves a running daemon alone; it keeps its build until it is restarted, on reboot or by you, and the CLI works with any version.

Android (the web UI over an on-device daemon, see docs/android.md): llmman-aarch64-linux-android.apk from the latest release.

Container (llmman in the llama.cpp server image, see docs/backends.md):

docker run -p 127.0.0.1:17434:17434 -e LLMMAN_API_KEYS=<key> -v llmman:/root/.local/share/llmman --entrypoint llmman ai/llmman serve

Quick start

Three commands cover most of it:

llmman launch claude --model qwen3.8  # an agent on a local model
llmman run qwen3.8                    # just chat with a model
llmman serve                          # an Ollama/OpenAI/Anthropic-compatible endpoint

Run llmman launch with no arguments to see the supported agents and whether each is installed. Want a hosted model instead of a local one? Every command above takes --provider; see Hosted providers. Want both at once, picked per request? See Hybrid model pairs.

Generate images, video and audio

A diffusion model repository works like any other: run pulls the transformer, its VAEs, the text projection and the text encoder it was trained with.

llmman run unsloth/LTX-2.3-GGUF "Draw a cat"                              # Image saved to: draw-a-cat-<timestamp>.png
llmman run unsloth/LTX-2.3-GGUF --video --seconds 2 "waves on a beach"   # an mp4 with an audio track (needs ffmpeg)
llmman run unsloth/LTX-2.3-GGUF --audio --seconds 3 "a cat purring"      # a 48 kHz stereo wav

Without a prompt it opens a >>> loop where /set width|height|steps|seed|cfg|negative|seconds|media adjusts the settings. The same model answers /v1/images/generations, /v1/videos and /v1/audio/speech on llmman serve.

Qwen-Image 2.1 runs from its Diffusers-layout safetensors the same way, and its GGUFs and FLUX.2 [klein] also edit: --image (repeat it for several) passes reference images.

llmman run qwen-image-2.1 "A manatee in a sunlit lagoon"               # an RGBA png
llmman run qwen-image-2.1-turbo:q8_0 --image manatee.png "Give the manatee a straw hat"

Other Diffusers-layout repositories (a root model_index.json) are served by vLLM-Omni (vllm serve --omni; install vllm-omni next to vllm, or use --runtime docker for the vllm/vllm-omni image). See docs/backends.md.

Answer questions about text and images

A decision model (Clef, Clef Flash) doesn't chat: it answers typed questions about a text or image, with a probability for each answer. --ask is a question, yes/no unless --choice labels or --level scale follow it. The text is the words after the model, or stdin:

llmman run clef-flash --ask "Is a refund being requested?" < ticket.txt
llmman run clef-flash --ask "Which team?" --choice billing="Payments" --choice technical < ticket.txt
llmman run clef-flash --ask "How urgent?" --level Routine --level Soon --level Immediate < ticket.txt
llmman run clef-flash --ask "Is this a receipt?" ./receipt.png

--format json prints the whole response and --verbose what it cost. Without --ask it opens a > loop: your first message is the text, and each line after it a yes/no question. It is served on /v1/systemone; see docs/api.md.

OCI-native models

Models are packaged as standard OCI artifacts and stored in any compatible registry: Docker Hub, GHCR, quay, Harbor, self-hosted. There is no curated library and no gatekeeper: push a model anywhere you can push a container image, and anyone can llmman run it straight from there.

That means the registry, mirroring, access control, retention and signing infrastructure you already run for containers works for models too. Pull from the registry you already trust, transfer a model from Hugging Face into your own registry without it ever touching a laptop, and sign it with cosign so pull can refuse anything unsigned.

Pull a model

llmman pull qwen3.8

Transfer a model between locations

Transfer an image directly from a source to a destination without adding it to your local store, e.g. HuggingFace straight to an OCI registry:

llmman transfer hf.co/unsloth/Qwen3.5-0.8B-GGUF docker.io/owner/model:latest

Any source llmman pull understands (an OCI registry, hf://, ms://, ...) can be paired with any OCI registry destination.

On Docker-backed builds, transfers from hf:// or an OCI registry skip blobs the destination already has, so re-running an unchanged transfer does not re-download its weights and prints already up to date. Other sources (ms://, ...) and the Podman fallback still stage a full download.

Sign a model, and verify what you pull

No gatekeeper means nothing vouches for a model implicitly, so llmman verifies the artifact rather than trusting the hub. Signatures are cosign-format, so cosign verify reads what llmman writes and the check works the same on Docker Hub, GHCR, quay, or an air-gapped mirror.

llmman push docker.io/myorg/mymodel:v1 --sign-key signing.key
llmman verify docker.io/myorg/mymodel:v1 --key signing.pub

A [verify] trust policy turns that into an automatic check on every pull, warning or refusing outright per repository. Off by default — there is nothing to check against until you have said whom you trust. See docs/verification.md.

Scan a model for hidden malware

A signature says who published a model, not that its files are harmless: GGUFs on Hugging Face have carried PowerShell loaders in chat templates and PEs after the last tensor. llmman scan reads a model's files without running anything and reports what looks like a hidden payload.

llmman scan gemma4                     # pulled first if not in the store
llmman scan gemma4 --no-pull           # fail instead of pulling
llmman scan ./model.Q4_K_M.gguf        # a file, or a directory
llmman scan gemma4 --json --fail-on medium

A stored reference is scanned as it is (no signature check; scan is not a policy gate). One that is not stored is pulled under the [verify] policy; --no-pull fails instead. Pulling only fetches bytes; nothing is run.

It checks chat templates, bytes after the last tensor and in padding, appended ZIPs, zero-scale quantized blocks, safetensors structure, pickle opcodes, and executables or remote code beside the weights. Exit status is 1 when a finding reaches --fail-on (default high). These are static heuristics, not proof of safety. See docs/scan.md.

Mount a model in Kubernetes

llmman-csi is a CSI driver that mounts a ModelPack artifact into a pod, read-only, as the whole model directory, so vLLM, SGLang or llama.cpp can read it from a path. It takes the same model.csi.modelpack.org volume as modelpack/model-csi-driver and pulls each model once per node, under the same signature policy:

volumes:
  - name: model
    csi:
      driver: model.csi.modelpack.org
      volumeAttributes:
        model.csi.modelpack.org/reference: "registry.example.com/models/qwen3-0.6b:latest"

See docs/kubernetes.md for the Helm chart, registry credentials and what it does not do.

Compared with Ollama

Ollama stores models in its own blob layout behind its own registry protocol; llmman uses the OCI standard end to end, so the model supply chain looks like the container supply chain:

llmman Ollama
Model registry Hugging Face directly, or any OCI registry (Docker Hub, GHCR, quay, Harbor, self-hosted) ollama.com library, own registry protocol
Model format on disk Unmodified GGUF / safetensors in a standard OCI Image Layout GGUF and safetensors imported via Modelfile into Ollama's blob layout
Registry-to-registry transfer llmman transfer hf.co/... docker.io/... in one step, nothing added to your local store Pull, write a Modelfile, create, push to ollama.com
Signing and verification cosign-format signatures; verify command and per-repo pull-time trust policy None
Inference engine Upstream llama.cpp release, or your own llama-server; vllm; sglang; mlx-lm Bundled llama.cpp/ggml fork plus Ollama's own engine
Hosted models Any provider via --provider Ollama Cloud
Multiple machines Aggregation: daemons pool hardware, any node answers for all One host per endpoint

Serve

llmman serve

To start the daemon only if needed and return once it is listening, use llmman serve --detach. The daemon keeps running after the command exits; --runtime and other serve options are applied when it starts a new daemon; one that is already running keeps the options it started with.

One endpoint on 127.0.0.1:17434 that speaks Ollama, OpenAI and Anthropic:

API Endpoints
Ollama /api/chat, /api/generate, /api/embed, /api/tags, /api/ps, /api/pull, /api/push, /api/create, ...
OpenAI /v1/chat/completions, /v1/completions, /v1/embeddings, /v1/models, /v1/responses, /v1/audio/transcriptions
Anthropic /v1/messages

So any existing client works unchanged:

OLLAMA_HOST=127.0.0.1:17434 ollama run unsloth/Qwen3.5-0.8B-GGUF

Models load on demand, each in its own backend process, and unload after five idle minutes (keep_alive, as in Ollama). GGUF is served by upstream llama.cpp at a pinned release, in a container, as a downloaded prebuilt binary, or from PATH, whichever --runtime picks (docs/backends.md); safetensors by vllm, by sglang with LLMMAN_SAFETENSORS_ENGINE=sglang, or by mlx-lm on macOS (installed for you when the daemon starts). DeepSeek V4 Flash and the other GGUFs ds4 publishes can be served by its ds4-server instead: DeepSeek V4.1 when ds4-server is on PATH, the others with LLMMAN_GGUF_ENGINE=ds4. Tool calling, vision, structured output, embeddings (GGUF) and the Responses API (what Codex speaks) all work; there is a web UI at / (chat with any local or hosted model, generate images, video and audio with a diffusion model, and a terminal) and an optional Prometheus /metrics.

The full endpoint list and per-API notes are in docs/api.md; backend selection in docs/backends.md; bind address, context length, keep-alive and the other daemon settings in docs/configuration.md.

Aggregation

Several machines each running llmman serve can pool their hardware — a group of manatees is an aggregation. Name the others on each node and a request to any of them is served by whichever has the model loaded, or the most room to load it:

llmman config set aggregation.peers asahi,spark
llmman config set auth.api_keys <shared-key>
LLMMAN_HOST=0.0.0.0 llmman serve

llmman ps, /api/tags and /v1/models then show the whole aggregation, and llmman stop reaches a model wherever it was loaded. Nothing is elected and nothing is shared: every node is a whole llmman that knows the others' addresses. See docs/aggregation.md.

A daemon the network can reach requires an API key on every request (LLMMAN_API_KEYS, or auth.api_keys as above; the CLI sends LLMMAN_API_KEY) unless LLMMAN_AUTH=off, and can terminate TLS itself with LLMMAN_TLS_CERT/LLMMAN_TLS_KEY. See docs/api.md.

Launch an integration

Point an integration at a model in one step. llmman launch starts serve in the background if it isn't already running (preloading a local model), then sets the right environment variables and execs the integration:

llmman launch claude --model qwen3.8
llmman launch copilot --model qwen3.8 -- -p "Explain this repository"
llmman launch droid --model qwen3.8 -- exec "Explain this repository"
llmman launch omp --model qwen3.8 -- -p "Explain this repository"
llmman launch agy --model qwen3.8 -- -p "Explain this repository"
llmman launch cline --model qwen3.8 -- --json "Explain this repository"
llmman launch grok --model qwen3.8 -- -p "Explain this repository"

Every launch offers the agent every model, not just the one it starts on: each pulled model and every chat model of every provider, with each one's variants (thinking levels), window and image input where known, so you can switch inside the agent. --model and --provider only choose where it starts:

llmman launch claude --provider anthropic --model claude-sonnet-5-5  # starts there
llmman launch claude --provider anthropic     # starts on anthropic's default (newest model at or below the median price); its models first
llmman launch claude --model qwen3.8          # starts on that pulled model
llmman launch claude                          # the model it last ran, else the loaded or latest pulled one, else a provider you have a key for

(Gemini CLI takes one model, so only the starting one is configured. Only claude, codex, opencode, hermes and openclaw have a "last ran" model llmman reads; the others go to the loaded or latest pulled model.)

Run llmman launch with no arguments to list the supported integrations (Claude Code, OpenCode, Codex, GitHub Copilot CLI, Factory Droid, Pi, OMP, Cline, Aider, Qwen Code, Gemini CLI, Grok Build, AGY, DeepSeek Harness, Docker Agent, Mistral Vibe, Meta Muse Code, goose, goose Desktop, ...) and whether each is installed. Installing an integration is up to you; llmman only execs what is already on your machine, except that a missing Cline can be installed with npm after an interactive confirmation. dsh runs under npx when it isn't installed globally. Any extra arguments after -- are forwarded to the integration's own CLI. OMP is offered the pulled models only (--provider is refused for it). Short names work wherever a model reference is accepted.

To stop retyping flags, set them once, e.g. llmman config set launch.opencode.model claude-sonnet-5-5 (also .provider, .variant); flags you type still win. See launch defaults.

--optimizer tk (claude, opencode) compacts the output of the shell commands the agent runs (git status, cargo test, ...) before the agent reads it, preserving exit codes and keeping error text; --optimizer cvmn (claude, codex, opencode) asks the model for terse replies: answer first, no filler, code and errors verbatim; --optimizer hdrm (claude, codex, opencode) compresses what the agent sends the model (tool output, logs, history) with a local proxy that lives as long as the session. --optimizer none is the default and changes nothing. See docs/optimizers.md.

llmman launch claude --model qwen3.8 --optimizer tk

Claude Code is told the model's context window in CLAUDE_CODE_MAX_CONTEXT_TOKENS, so it doesn't warn that it doesn't recognize the model: the model's window where llmman knows one, else 128000. llmman sets it when the session runs the launched model and you haven't set it yourself. llmman's own key (its placeholder, or a launch's session token) is recorded as approved in ~/.claude.json (in CLAUDE_CONFIG_DIR if set), so there is no "Detected a custom API key" question on a fresh home; a session token is taken out again when Claude Code exits. A key of your own (LLMMAN_API_KEY) is yours to answer for, and none of it is written.

Codex runs with -c overrides rather than --profile (which would run it without its shared background server): a provider named llmman at the daemon, and the model catalog. The project it runs in (its repository root, or the directory; --cd/-C is followed) is marked trusted for the run, so Codex doesn't ask every time. That lets Codex load the repository's own .codex/config.toml, so review a project before launching Codex in it. A decision Codex already has for the project in ~/.codex/config.toml is kept. Only OpenAI's own models are told they take a verbosity. An llmman.config.toml an earlier llmman left in ~/.codex is no longer read.

GitHub Copilot uses the standalone copilot CLI (npm install -g @github/copilot) in BYOK mode, so a local-model launch does not require a GitHub login. llmman declares the launch's models, with their levels and windows, in a providers.json private to the launch (COPILOT_PROVIDERS_CONFIG, removed when Copilot exits; your ~/.copilot is untouched), so /model switches among them. Copilot sends every declared model in each request's prompt, which must fit the starting model's window, so llmman declares as many from the front of the list as fit, at most 256, and says how many. An image --sandbox cannot see the file, so Copilot gets the one model it starts on through its environment variables.

OpenClaw's first-run onboarding runs with --auth-choice skip, which registers no model provider and so pulls nothing. The provider and every model of the launch, with /think choices, are written on every launch.

AGY requires version 1.1.13 or newer for Gemini API-key and custom-endpoint support. llmman writes Gemini mode to its own stable settings directory at ~/.gemini/llmman/; your AGY settings stay untouched. The model list needs an AGY with --settings (checked in its --help); an older one, such as 1.2.2, starts on the selected model alone and llmman says so. AGY's /model lists the launched provider's models first, and its effort level is passed on as the reasoning effort. A launch trusts the folder you launch from and marks AGY's colour and terms screens done; no data-collection consent is recorded. The "Gemini API key" in AGY's header is its name for the sign-in mode.

Hermes asks "Help improve Hermes?" before its first chat. A launch records "No thanks" (collection and upload off) in config.yaml when it holds no answer yet; an answer you gave stays.

Cline merges the Ollama provider into ~/.cline/data/settings/providers.json and globalState.json, honouring CLINE_DIR like Cline does.

goose launches the goose CLI and goose-desktop the desktop app, both with the same endpoint, model and key. Each is configured entirely through the environment goose reads in preference to its own config, so neither writes to ~/.config/goose and your goose configure provider survives the launch. goose-desktop is found on PATH as goose-desktop or goose-gui, otherwise in /Applications on macOS and, on Linux, /usr/lib/goose from the .deb or /usr/lib/Goose from the .rpm — the two packages differ in that capital alone. Windows ships as a zip with no installer: add the unpacked folder to PATH and its Goose.exe is found there, told apart from the goose CLI — the same name to Windows — by the Electron files beside it.

goose-desktop also runs without --model for dictation only: set OPENAI_TRANSCRIPTION_MODEL to a speech model and goose's microphone button posts to llmman's /v1/audio/transcriptions. goose gets only OPENAI_HOST and OPENAI_API_KEY, so its chat provider stays your choice in its settings.

OPENAI_TRANSCRIPTION_MODEL=hf.co/ggml-org/Voxtral-Mini-3B-2507-GGUF:Q4_K_M \
  llmman launch goose-desktop

The launch does not pull the speech model, so llmman pull it first or the first dictation waits for the download. OPENAI_HOST is also goose's OpenAI chat provider's host, so choosing "OpenAI" for chat sends it to llmman too.

Docker Agent is found on PATH or in ~/.docker/cli-plugins, where Docker Desktop and brew install docker-agent put it. llmman generates its own agent file under ~/.config/llmman/launch/docker-agent/ and passes it to docker-agent run; ~/.config/cagent stays untouched. With more than one Docker Agent installed, the one on PATH wins.

The generated agent gets the shell and filesystem toolsets. Docker Agent asks before each tool call unless you pass --yolo. To run an agent of your own instead, point its model at the daemon and run docker-agent directly.

Hosted providers

--provider points llmman at a model it doesn't serve itself, from launch, from run, and from list:

export OPENROUTER_API_KEY=...
llmman providers                                    # which providers, and is the key set
llmman list --provider openrouter                   # its models, and $/Mtok in and out
llmman run --provider openrouter qwen/qwen3-coder   # chat with one directly
llmman launch opencode --provider openrouter --model qwen/qwen3-coder
llmman usage --since yesterday                      # what that session cost, per model

The provider list comes from models.dev, the same catalog opencode uses, so a new provider works without an llmman release. Requests still go through llmman serve; --provider changes where the daemon forwards them, not who the client talks to, so a local and a hosted model are one endpoint and one integration config. The key is never written into an integration's config or put on a command line: an agent that can switch provider is handed a session token, and the daemon spends each key only on its own provider.

Which integrations support --provider, where the key comes from, and why it is only ever sent to a loopback daemon are in docs/providers.md.

Hybrid model pairs

--overflow-provider and --overflow-model name a hosted model that takes over when a request is too large for the local --model, with llmman serve picking a side per request:

llmman launch opencode --model gemma4 --overflow-provider anthropic --overflow-model claude-sonnet-5
llmman run gemma4 --overflow-provider anthropic --overflow-model claude-sonnet-5

A request pinned with x-llmman-route: local or cloud goes where it says; otherwise one too large for the local model's context goes to the provider, and everything else stays on this machine. The pair travels as one ordinary model name, llmman.hybrid/gemma4,anthropic/claude-sonnet-5, so it works from any client on every inference endpoint. Details in docs/providers.md.

Sandboxes

--sandbox runs the integration inside a sandbox, sbx if none is named. It can write to the current Git work tree and to its own settings, but not to the rest of your files. Under seatbelt it can also write to the temporary and cache directories.

llmman launch claude --model qwen3.8 --sandbox docker
llmman launch opencode --model qwen3.8 --sandbox seatbelt

The choices are sbx (Docker Sandboxes), seatbelt (macOS sandbox-exec), docker, podman, apple-container, microsandbox and openshell. The image-based sandboxes default to Docker Sandboxes' agent images, so the integration does not need to be installed on your machine. What each sandbox shares, and how it reaches llmman serve, is in docs/sandbox.md.

Use llmman as a library

The translation layer under llmman serve is a Rust crate you can build on without the daemon: the provider catalog, translation between client dialects (OpenAI chat completions, Responses, Anthropic Messages, Gemini, Ollama) and upstream wires, the mapping of a thinking request to provider parameters, and token and cost accounting. Turn off the default features and ask for gateway; there is no Go toolchain, web UI or cloud SDK in that build.

llmman = { version = "0.1", default-features = false, features = ["gateway"] }

Two runnable examples need only those and client (the HTTP client). They read a small TOML config of providers and model aliases:

cargo run --example provider_gateway --no-default-features --features gateway,client \
    -- --config gateway.toml                 # /v1/chat/completions, /v1/responses, /v1/messages, /usage
cargo run --example ollama_api_server --no-default-features --features gateway,client \
    -- --config gateway.toml --listen 127.0.0.1:11434   # /api/chat, /api/generate, /api/tags

The modules, the extension points and how to add a dialect or a wire are in docs/library.md; the API docs are on docs.rs.

Documentation

docs/commands.md Every subcommand, one line each
docs/api.md Every HTTP endpoint, and per-API notes
docs/aggregation.md Pooling several machines into one endpoint
docs/android.md The Android app: install, what runs on the phone, building the APK
docs/backends.md llama.cpp, vLLM, SGLang, MLX, containers, and building from source
docs/compose.md Compose deployment behind a gateway, with persistent model storage
docs/kubernetes.md The CSI driver that mounts ModelPack models into pods, and its Helm chart
docs/configuration.md llmman.conf, llmman config, registry mirrors, environment variables, store layout
docs/providers.md Hosted providers, API keys, and which integrations can use them
docs/sandbox.md launch --sandbox: what each sandbox shares and how it reaches the daemon
docs/optimizers.md launch --optimizer: what none, tk, cvmn and hdrm do, what tk filters, and their limits
docs/verification.md Signing models and pull-time trust policy
docs/scan.md llmman scan: every finding ID, what it checks, and its limits
docs/metrics.md The Prometheus /metrics families
docs/library.md The gateway feature: the library layer, its extension points, and how to add a dialect or a wire
Nearby in the ranking
Similar items

AI Rank for iPhone

Follow AI model rankings

Download on the App Store