Skip to content
View lm-webui's full-sized avatar

Block or report lm-webui

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. Markdown is supported. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse
lm-webui/README.md

LM WebUI 🛡️

LM-WebUI is the local-first control plane for AI workloads.

Run and operate models, inference runtimes, agents, tools, retrieval, and usage from one workspace across local and cloud environments.

lm-webui

Run Local AI, Without the Complexity

The problem

AI workloads are assembled from separate models, runtimes, agents, tools, retrieval systems, and provider dashboards. That makes execution difficult to configure, monitor, debug, and control.

LM-WebUI brings that execution layer together while preserving local-first deployment and hybrid cloud flexibility.

What LM-WebUI controls

  • Models and model providers
  • Local inference runtimes
  • Agent sessions and tools
  • Multimodal retrieval and context
  • Modality-aware execution routing
  • Usage and token tracking
  • Hardware-aware execution
  • Generated artifacts and media

LM-WebUI combines runtime management, multimodal chat, retrieval, image generation, and agent workflows in one privacy-first workspace.


No more setup maze. LM-WebUI makes local AI inference easier to run and use. Install and manage inference runtimes, download models, and work with local AI instantly from one interface.

Powered by Smart-Modality™, an intent-routing system that automatically determines what each request needs, chat, files, RAG, web search, vision, or image generation. No manual model switching, no unnecessary processing, and reducing unnecessary context to achieve more efficient inference especially on low resource hardware. Make your local AI workflow multimodal without making it more complicated.

Run locally when you want, connect cloud APIs when you need, and keep control of your data.

Built open-source for developers, system integrators, and organizations that want easy local inference, reproducibility, and infrastructure-level control without the usual setup overhead.


🚀 Quick Start

One-Line Install (Recommended)

Install LM-WebUI with one command:

curl -fsSL https://lmwebui.com/install.sh | bash

The installer sets up LM-WebUI as a system service and starts it automatically.

Open http://localhost:7070 in your browser.

Your models, data, and configuration are stored locally under ~/.lmwebui/. You can change the location with the LMWEBUI_HOME environment variable.


⚡ Core Features

FeatureCapabilities
Smart-Modality™Automatically chooses the right path for each request, direct chat, RAG, web search, vision, or image generation. So, simple tasks stay fast without unnecessary processing, retrieval runs only when you need past data, and web search combines with RAG/vision (or is skipped for direct image questions).
Runtime ManagerManages the inference engines and model formats below — llama.cpp (GGUF), MLX, and ComfyUI (image workflows). Ollama and vLLM are configured as API providers in Settings.
Files & RAGUpload documents, images, and audio for conversation context. Extract/OCR content, upload status, file references, and citation display. Retrieval via LatentFusion RAG that makes a single query finds relevant text chunks and visually-matching images and shared latent vector space, fused with Reciprocal Rank Fusion.
Multimodal RetrievalCross-modal search across docs, images, and audio in one latent index (SigLIP2 text + vision, CLAP-ready). A text query returns matching paragraphs and diagrams/charts in a single pass.
Multimodal VisionAnalyze images, screenshots, diagrams, and other visual content using compatible local vision models — auto-routed, no manual model switching. Simple image questions answer directly via the vision model; complex ones compose with RAG and web context.
ChatChat with local or cloud AI models from one interface. Supports GGUF/llama.cpp, MLX, Ollama, vLLM, OpenAI, Gemini, Anthropic, DeepSeek, Grok, and more. Includes streaming, code rendering, Mermaid diagrams, tables, conversations, and web search.
Image GenerationDedicated Image Studio with prompt, size, quality, and seed controls. Gallery for browsing and reuse. Supports OpenAI, Google Gemini, and local ComfyUI runtimes.
ProjectsGroup related conversations with reusable custom system prompts. Ideal for recurring workflows like code review, research, or team-specific assistant configurations.
Agent HubChat with host CLI agents — Claude Code, Codex, OpenCode, Hermes — in multi-turn, resumable sessions. Reopen any past session from the rail to continue it, run the CLI's real commands via the / menu, and manage each agent's config/skill/memory. Backed by the installed CLI, not a wrapper.
Voice & VideoTranscribe voice notes and audio (ASR → text into the retrieval index) and summarize linked YouTube videos — queried just like documents.
Hardware DetectionAutomatic detection of CPU, CUDA, ROCm, and Apple Metal with dynamic memory and layer optimization for efficient local execution.
GGUF / llama.cppBuilt-in GGUF model lifecycle, download from HuggingFace, upload, validate, and serve models locally via the llama.cpp engine. Vision through llama-server. Background, single-flight download queue that survives closing the UI.
MLXInference on Apple Silicon via the MLX framework (mlx-lm). Model download from HuggingFace with one click. Seamless chat integration.
ArtifactsPersistent structured document storage with versioning, project and conversation association, and soft-delete support.
Usage AnalyticsToken and request tracking per provider and model. Admin dashboard with usage summaries, per-user breakdowns, and CSV export.
Self-Hosted ReadyNative Python service, zero external telemetry, offline-capable. Data in ~/.lmwebui/. Docker deployment also available.

 MLX

  • Apple Silicon Optimized: Native MLX inference (mlx-lm) without an additional model server
  • One-Click Setup: Install and manage MLX from the Runtime Manager
  • Model Management: Download, organize, or remove MLX models with one click
  • HuggingFace Integration: Direct download support from HuggingFace MLX repositories
  • Seamless Integration: Use MLX models directly in the chat interface
  • Automatic Detection: Auto-detects Apple Silicon hardware and manages the MLX framework

🤗 GGUF / llama.cpp

  • Model Management: Download, organize, or remove GGUF models with one click
  • Vision Models: Image-text-to-text (VL) GGUF models that auto-pair with their mmproj file
  • HuggingFace Integration: Direct download from HuggingFace repositories with auto-resolved quantization options
  • Hardware Awareness: Detects available hardware and helps you choose a compatible engine and model
  • Seamless Integration: Use GGUF models directly in the chat interface

📖 Documentation

For detailed documentation, see the docs/ directory:


</> Architecture

LM-WebUI is a React + FastAPI application, a modular monolith backend and a feature-based frontend, orchestrated by a Smart-Modality router that routes each request to the right capability.

See docs/architecture.md for the full directory structure, module breakdown, data flows, and design decisions.


🔧 Development Setup

For contributors and developers who want to run LM-WebUI from source:

git clone https://github.com/lm-webui/lm-webui.git
cd lm-webui
# Start backendcd backend
uv venv .venv &&source .venv/bin/activate && uv pip install -r requirements.txt
uvicorn app.main:app --host 0.0.0.0 --port 7070
# In another terminal, start frontendcd web
npm install
npm run dev

The development frontend runs on the configured Vite port and proxies API requests to the backend on port 7070.


🚢 Deployment

Native One-line Install

The install.sh script sets up a systemd (Linux) or launchd (macOS) service running on port 7070.

curl -fsSL https://raw.githubusercontent.com/lm-webui/lm-webui/main/install.sh | bash

Data, models, and config live in ~/.lmwebui/ (override with LMWEBUI_HOME environment variable).

Docker (alternative)

For containerized server deployments, Docker Compose is available in the repository:

git clone https://github.com/lm-webui/lm-webui.git
cd lm-webui
docker compose up --build

Open http://localhost:7070.

Persistence

DataLocation
SQLite / application dataDocker volume → /backend/data
Generated media / uploadsDocker volume → /backend/media
Local models./.lmwebui/models/backend/models
Secrets./.lmwebui/secrets/backend/.secrets

See Host CLI and Deployment for setup, runtime endpoints, and troubleshooting.


🤝 Contributing

We welcome and appreciate all kinds of contributions!

Please see our Contributing Guide for details.

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add or update tests where appropriate
  5. Submit a pull request

Not ready to code? Bug reports, feature ideas, documentation improvements, and real-world testing are also valuable contributions. 🙏

📄 License

This project is licensed under the MIT License — see the LICENSE file for details.


🔗 Links


Let's shape the future of local AI together 🤜🤛

Popular repositories Loading

  1. lm-webui lm-webuiPublic

    Sovereign Local AI Workspace & LLM Runtime Manager. Easily Run GGUF, MLX, OpenAI, Gemini, etc. Under One Unified Interface ✨

    Python 4 1

  2. lmwebui lmwebuiPublic

    Multimodal LLM Interface & Orchestrator