A desktop app for local LLMs, with a UI and an OpenAI/Anthropic-compatible API
open sourceAGPL-3.0-onlyself-hostablefree
TextGen (formerly Text Generation Web UI, text-generation-webui) is oobabooga's open source desktop app for running large language models locally: chat and instruct modes, vision, file attachments, a notebook for free-form generation, tool calling with MCP servers, LoRA training and a tab for image generation with diffusers. It runs GGUF models through llama.cpp out of the box, with ik_llama.cpp, Transformers and ExLlamaV3 as other backends, and serves an OpenAI- and Anthropic-compatible API so other tools can use the local model. Portable builds for Linux, Windows and macOS include CUDA, Vulkan, ROCm and CPU-only options, and it sends no telemetry.
Problems it solves
- chat with a local LLM on my own computer without sending anything to the cloud
- run GGUF models with a friendly interface instead of the command line
- serve a local model behind an OpenAI-compatible API for my other tools
- fine-tune a LoRA on my own chat data locally
- try models with different backends like llama.cpp, Transformers and ExLlama in one app
Features
- chat, instruct and notebook modes with Jinja2 prompt templates
- llama.cpp, ik_llama.cpp, Transformers and ExLlamaV3 backends
- OpenAI- and Anthropic-compatible API with tool calling
- tool calling with single-file Python tools and MCP servers
- vision and PDF, .docx and text file attachments
- LoRA training and diffusers image generation
- built-in and community extensions (TTS, voice input, translation)
- portable builds with CUDA, Vulkan, ROCm and CPU-only options, no telemetry
Capabilities
| Has an API | plan not known |
|---|---|
| Takes plugins | plan not known |
Alternatives
The same job
These do what TextGen does.
- Unsloth Run and train AI models on your own local hardware via an open-source UI
- Jan Open-source ChatGPT replacement that runs LLMs offline on your computer
- LM Studio Experiment with LLMs on your computer: chat interface and programmable API
- SillyTavern LLM frontend for power users
