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 makes running local AI as easy as installing an app. No more juggling separate apps, model or vendor limitations, or runtime setup headaches. A built-in Runtime Manager manages inference engines and models for you, while chat, vision, image generation, and file context all live in one interface on your own machine. Built for privacy-first and sovereign AI systems.

lm-webui

Run Local AI, Without the Complexity


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

Feature Capabilities
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 Manager Manages 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 & RAG Upload documents, images, and audio for conversation context. Extract/OCR content, upload status, file references, and citation display. Retrieval via Multimodal Latent RAG: a single query finds relevant text chunks and visually-matching images (SigLIP2 shared latent space), fused with Reciprocal Rank Fusion.
Multimodal Retrieval Cross-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 Vision Analyze 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.
Chat Chat 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 Generation Dedicated Image Studio with prompt, size, quality, and seed controls. Gallery for browsing and reuse. Supports OpenAI, Google Gemini, and local ComfyUI runtimes.
Projects Group related conversations with reusable custom system prompts. Ideal for recurring workflows like code review, research, or team-specific assistant configurations.
Agent Hub Chat 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 & Video Transcribe voice notes and audio (ASR β†’ text into the retrieval index) and summarize linked YouTube videos β€” queried just like documents.
Hardware Detection Automatic detection of CPU, CUDA, ROCm, and Apple Metal with dynamic memory and layer optimization for efficient local execution.
GGUF / llama.cpp Built-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.
MLX Inference on Apple Silicon via the MLX framework (mlx-lm). Model download from HuggingFace with one click. Seamless chat integration.
Artifacts Persistent structured document storage with versioning, project and conversation association, and soft-delete support.
Usage Analytics Token and request tracking per provider and model. Admin dashboard with usage summaries, per-user breakdowns, and CSV export.
Self-Hosted Ready Native 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 backend
cd 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 frontend
cd 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

Data Location
SQLite / application data Docker volume β†’ /backend/data
Generated media / uploads Docker 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-webui Public

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

    Python 4 1

  2. lmwebui lmwebui Public

    Multimodal LLM Interface & Orchestrator