llamaMan

mcp
Security Audit
Pass
Health Pass
  • License — License: NOASSERTION
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 18 GitHub stars
Code Pass
  • Code scan — Scanned 12 files during light audit, no dangerous patterns found
Permissions Pass
  • Permissions — No dangerous permissions requested

No AI report is available for this listing yet.

SUMMARY

A browser-based UI for launching, monitoring, clustering and managing multiple llama.cpp or Strata instances across your environments

README.md

llamaMan

One endpoint for all your local models.

Launch, sleep, wake and evict llama.cpp and Strata containers on one machine or a whole cluster,
behind a single Ollama- and OpenAI-compatible API, driven from a browser UI.

Release Docker pulls GHCR License Stars

Quick start · Docs · Docker Hub · Releases

English · 简体中文 · 日本語 · Deutsch · Français · Español · Português · Русский · Български

llamaMan dashboard: systems, GPUs and a running instance

🦙 What it is

llamaMan is an orchestration engine for local inference servers. It has no inference code and no GPU dependency of its own: engines run as sibling containers over the Docker socket, so upgrading llama.cpp means pulling a newer server image.

Requests for a model that isn't running start or wake it on demand, and when you hit your limit on concurrently loaded models, the one idle longest is evicted to make room. With clustering turned on, nodes share state through a common database, and a request for a queue group goes to the least-loaded awake member on any node.

llama-server flag semantics are the source of truth on llama.cpp's side: server CLI reference.

✨ Features

🎛️ Universal GPU image

NVIDIA, AMD (ROCm), Intel Arc or CPU, detected automatically. Vulkan is opt-in in Settings.

🔌 Ollama + OpenAI proxy on :42069

Open WebUI drops in. Models auto-start on demand and LRU-evict once the model limit is hit.

📚 Model library + downloader

Hugging Face pulls with speed limits, resume, auto-retry, and republish detection with atomic re-pull.

🚀 One-click launch + presets

Every llama.cpp knob (spec decoding, MoE offload, KV quant, mmproj, PDF input…) is a form field, with live preset updates.

📈 Monitoring + request log

Per-GPU VRAM, container CPU/RAM, per-instance throughput and latency, and recorded conversations.

🖼️ Image & PDF input

Vision models with --mmproj; PDFs rasterized page by page.

🌐 Multi-node clustering opt-in

Mixed machines as one cluster: aggregated dashboard and shared-queue load balancing.

🔐 Auth

User accounts, API keys (bearer tokens) and a per-endpoint auth toggle.

⚡ Strata engine opt-in · NVIDIA or AMD

Launch Strata instances next to llama.cpp ones.

🧠 Knowledge base + MCP server opt-in · MariaDB

Store documents as topics, search them by meaning with your own embedding model, and expose them to any MCP client.

📸 Screenshots

Models page with the library and downloads

Models: library, quants, capabilities and downloads

Launcher with model library and launch settings

Launcher: pick a model, set every llama.cpp option

Request logging overview and conversations

Logging: throughput, latency, tokens and conversations

Settings, Node and limits

Settings: per-node hardware and limits, cluster-wide timeouts

📋 Requirements

🚀 Quick Start

Edit docker-compose.yml first:

  • Set HOST_MODELS_DIR / HOST_LOGS_DIR to the real host paths that back your volume mounts (llamaMan passes them to the Docker daemon when spawning sibling containers).
  • LLAMAMAN_NODE_NAME (srv1 in the sample compose; there is no built-in default - the app refuses to start without it) is required for every install - it's the partition key for this deployment's stored state. Pick once, keep it (changing later orphans stored state).

Start it:

docker compose up --build

llamaMan detects the GPU and picks the matching llama.cpp image (CUDA, ROCm, SYCL or CPU). To pin another image, or to use Vulkan, set it in Settings → Docker Images and Settings → Node & limits - no compose change needed.

For NVIDIA native VRAM monitoring, also uncomment deploy.resources.reservations in docker-compose.yml.

  • Management UI: http://localhost:5000 (create admin on /setup)
  • Ollama-compatible API: http://localhost:42069
  • llama-server instance ports: 8000-8020 (instances behind llamaMan's proxy are reached on host ports 18000-18020 with the sample compose)

Security note: the mounted /var/run/docker.sock gives the container full control of Docker on the host. Standard Docker-socket-access implications apply.

Running bare-metal (dev, WSL)? See Running bare-metal.

🧩 Minimum compose config

Three variables are required; everything else has a default or is set in the app:

Variable Description
LLAMAMAN_NODE_NAME Unique, stable name for this deployment - pick once, keep it
HOST_MODELS_DIR / HOST_LOGS_DIR Real host paths behind the models and logs volumes (the Docker daemon mounts them into llama-server containers)

Optional: DATABASE_URL (MariaDB instead of JSON files), SECRET_KEY, and CLUSTER_ENABLED / CLUSTER_SECRET / CLUSTER_ADVERTISE_URL for clustering. The Docker network and the archive volume are detected from the container.

The model limit, timeouts, GPU type and devices, default images and Strata options moved to Settings → Node & limits and Settings → Docker Images. Their old environment variables still apply until a value is saved in Settings, but are deprecated - the UI and the startup log list any that are still in use. Full reference: Environment Variables.

🏁 Your first model

  1. Get a model. Either drop a .gguf into your models directory, or open Models → Download in the UI, pick a Hugging Face repo, and let llamaMan pull it.
  2. Launch it. Click Launch on the dashboard, pick the model in the library, and launch. llamaMan spawns a llama-server container and the instance appears with a status badge. Defaults (4096 ctx, auto GPU layers) work for most models; Save Preset remembers your settings. Every launch field is documented in Launch settings.
  3. Create an API key. Under API Keys, create one (llm-xxxxxxxxxx). Model endpoints require a bearer token by default.
  4. Point your client at it. Any OpenAI or Ollama client works against :42069. For Open WebUI:
open-webui:
  environment:
    - OLLAMA_BASE_URL=http://llamaman:42069
    - OPENAI_API_BASE_URLS=http://llamaman:42069/v1
    - OPENAI_API_KEYS=llm-your-api-key-here

Open WebUI lists your models via /api/tags (by GGUF filename stem unless you set a Display Name); picking one auto-starts it, waits until healthy, then proxies. Set a per-model Display Name to show a friendly name instead of the raw quant filename.

Cap caveat: the model limit defaults to 1 (Settings → Node & limits). With a cap set, the Ollama connection evicts the LRU model when full, but the OpenAI connection (OPENAI_API_BASE_URLS) returns 503 by default - pick one path or raise the cap. Rules: Model Eviction.

If something goes wrong, Troubleshooting below covers the common first-run failures.

🔐 Authentication

Two credential types:

  • Session cookies for the UI (created via /setup on first launch)
  • API keys for external clients (Authorization: Bearer llm-xxxxxxxxxx), managed under API Keys in the UI

The "Require authentication for all endpoints" toggle (on by default) controls whether model-serving endpoints demand a bearer token. Details: Authentication.

🏗️ Architecture

llamaMan is a small Python app that never touches llama.cpp code directly. It spawns each llama-server as a sibling container over the Docker socket, monitors the fleet, and hands out an OpenAI/Ollama front door.

%%{init: {'theme': 'base', 'themeVariables': {'fontFamily': 'ui-sans-serif, system-ui, sans-serif', 'fontSize': '14px', 'primaryColor': '#ecfdf5', 'primaryBorderColor': '#10b981', 'primaryTextColor': '#064e3b', 'lineColor': '#64748b', 'clusterBkg': '#f8fafc', 'clusterBorder': '#cbd5e1', 'edgeLabelBackground': '#f8fafc'}, 'flowchart': {'curve': 'basis', 'nodeSpacing': 40, 'rankSpacing': 60}}}%%
flowchart LR
  client[Client<br/>Open WebUI / any OpenAI or Ollama client]

  subgraph nodeA[Node A]
    lmA[llamaman<br/>:5000 UI · :42069 compat]
    subgraph workersA[llama-server siblings on host GPUs]
      wA1[qwen2.5-14b]
      wA2[gpt-oss-20b]
    end
  end

  subgraph nodeB[Node B]
    lmB[llamaman]
    subgraph workersB[llama-server siblings]
      wB1[qwen2.5-14b]
      wB2[deepseek-v3]
    end
  end

  db[(Shared storage<br/>presets · instance state · heartbeats)]

  client -->|prompt| lmA
  lmA -->|forward when a peer is less loaded| lmB
  lmA --> wA1
  lmA --> wA2
  lmB --> wB1
  lmB --> wB2
  lmA <-.-> db
  lmB <-.-> db

  classDef core fill:#059669,stroke:#064e3b,color:#fff
  classDef worker fill:#0891b2,stroke:#164e63,color:#fff
  classDef ext fill:#64748b,stroke:#334155,color:#fff
  class lmA,lmB core
  class wA1,wA2,wB1,wB2 worker
  class client,db ext

The single-node picture (default) is just the top half - one llamaman container, N llama-server siblings on the local Docker daemon, no cluster peers, JSON files instead of the shared DB. Clustering is opt-in and additive.

How it works in depth - request flow, queue-aware dispatch, failure behavior, design trade-offs: Architecture.

📖 Documentation

Guide What's in it
Launch settings Every launch-form field and its llama-server flag: ctx, KV cache, GPU layers, MoE offload, spec decoding, sampling overrides, concurrency & queueing, live preset updates, Image & PDF input, Anti-Loop, per-instance proxy, idle timeout
Models Display names, model updates, Decision Models (/v1/systemone), Model Eviction, download settings, Docker image management, model archive, backup & restore, cleanup
Configuration & storage Bare-metal installs, auth detail, GPU stats, request recording, JSON vs MariaDB backends, surviving a DB outage, and the full Environment Variables reference (including which ones moved to Settings)
Clustering Multi-node setup: shared DB, heartbeats, shared-queue load balancing, waking under load, routing errors
Knowledge Base & MCP Topics, embeddings, MCP endpoint, access modes
Strata The second inference engine: setup, catalogue, limits, design notes
REST API Core endpoints: instances, downloads, presets, settings, request log, launch-body quirks
Troubleshooting The full symptom → fix table

🩺 Troubleshooting

Symptom Fix
Instance stuck on starting Check logs via the Logs button. Common: OOM, model path typo, corrupt GGUF, image not pulled
"Docker image not found" Pull the matching image: docker pull ghcr.io/ggml-org/llama.cpp:server-cuda (or server-rocm / server-sycl / server)
"Docker API error" on launch Ensure /var/run/docker.sock is mounted (default in docker-compose.yml)
No GPU / CUDA error Ensure NVIDIA Container Toolkit is installed and docker run --gpus all works on the host
GPU stats unavailable NVIDIA: uncomment the deploy.resources.reservations block. AMD/Intel: ensure /sys/class/drm:ro is mounted
Model not showing in OpenWebUI Ensure OLLAMA_BASE_URL=http://llamaman:42069. Check /api/tags returns models
OpenWebUI gets 401 require_auth is on (default). Create an API key and set OPENAI_API_KEYS in OpenWebUI
OpenAI client gets 503 when models are full Model limit reached and the OpenAI API can't evict by default. Raise the cap or enable the eviction toggles: Model Eviction
Port conflict The form auto-suggests an unused port; adjust if needed

Full table: Troubleshooting.

🙏 Credits

This work would not be possible without ggml-org/llama.cpp and Strata.

📄 License

llamaMan is licensed under the Elastic License 2.0. You may use, copy, distribute, and modify the software, subject to:

  • No providing the software to third parties as a hosted / managed service where the service gives users access to a substantial set of its features or functionality.
  • No removing or obscuring licensing, copyright, or other notices of the licensor.

Third-party licenses

Reviews (0)

No results found