Hostinger Black Friday deal: VPS hosting up to 70% off
Ad

Try describing what you need:

text-generation-webui logo

text-generation-webui

★ 47.8k

A self-hosted alternative to Chatgpt

GNU Affero General Public License v3.0Open Source — No PaywallSingle Container — single container — minimal hosting footprintDocker · Compose · Binary +1No external DB10+ active committers (12mo)

About

TextGen is a desktop application for running local large language models on a user’s own machine. It is aimed at people who want a private, offline interface for chatting with models, experimenting...

Community Ratings

No ratings yet

Features

  • chat and generation modes
  • vision/multimodal input
  • file attachments
  • conversation branching and message editing
  • notebook tab
  • multiple model backends
  • OpenAI/Anthropic-compatible API
  • tool-calling and MCP server support
  • LoRA training
  • image generation

Details

Last Updated
Nov 28, 2026
Created
Dec 21, 2022
Install Methods
dockerdocker-composebinarysource
Requirements
Python 3.9+PyTorchConda/Miniforge (for full installation)~10GB disk spaceGGUF models
Minimum Requirements
Disk: ~10GB
Default Port
7860web UI
API
REST
Privacy & Independence
No TelemetryNo Cloud RequiredOffline Capable
Theming
Dark mode
Deployment

Deployment: Docker Compose ✓Single Container — minimal hosting footprintsingle container

Run text-generation-webui yourself

Pick how much you want to manage.

3 more ways to host

Some links earn us a commission. netcup pays us one and is our preferred VPS host. Hostinger is a paid sponsor and is listed first.

Is this your project? Sponsor a listing

Run text-generation-webui with Docker Compose

Compose file from the text-generation-webui project repository.

1 service

no resource limits declared

needs persistent storage (1 volume)

docker/amd/docker-compose.yml · @ ed888c7 · scanned Nov 3, 2026

version: "3.3"
services:
  textgen:
    build:
      context: .
      args:
        BUILD_EXTENSIONS: ${BUILD_EXTENSIONS:-}
        APP_GID: ${APP_GID:-6972}
        APP_UID: ${APP_UID:-6972}
    env_file: .env
    user: "${APP_RUNTIME_UID:-6972}:${APP_RUNTIME_GID:-6972}"
    ports:
      - "${HOST_PORT:-7860}:${CONTAINER_PORT:-7860}"
      - "${HOST_API_PORT:-5000}:${CONTAINER_API_PORT:-5000}"
    stdin_open: true
    group_add:
      - video
    tty: true
    ipc: host
    devices:
      - /dev/kfd
      - /dev/dri 
    cap_add: 
      - SYS_PTRACE
    security_opt:
      - seccomp=unconfined
    volumes:
      - ./user_data:/home/app/textgen/user_data

This file may be out of date. Check the text-generation-webui documentation for current setup steps.

Track your self-hosted stack

Bookmark software to try, rate tools you've used, and keep your collection in one place.

Metadata extracted from README on Jun 4, 2026

Alternatives to text-generation-webui

GPT4All logo

GPT4All

77.3k
GPT4All runs large language models privately on everyday desktops and laptops, and provides a Python client around llama.cpp implementations.
Artificial IntelligenceLocal LLMsAI Interfaces+3
Details
Open-WebUI logo

Open-WebUI

159.7k
Open WebUI is a self-hosted AI platform for chatting with LLMs, managing RAG, and building custom model workflows, designed to run entirely offline.
Artificial IntelligenceAI InterfacesLocal LLMs+7
2 ContainersOpen CoreFOSS with Issues
Details
Chatbox logo

Chatbox

42.6k
Chatbox is a desktop AI copilot and chat client for ChatGPT, Claude, and other LLM providers on Windows, macOS, and Linux.
Artificial IntelligenceGenerative AIAI Interfaces+1
Details
KoboldCpp logo

KoboldCpp

12.4k
KoboldCpp is a self-contained AI text-generation runner for GGML and GGUF models, with bundled UI, multiple inference modes, and broad support for image, audio, video, and vision tasks.
Inference ServingLocal LLMsAI Interfaces+2
Single Container
Details
Jan logo

Jan

46.3k
Jan is an open-source desktop app for downloading and running local LLMs with privacy-focused, local control, while also offering optional connections to cloud model providers.
Artificial IntelligenceAI InterfacesPermissive License+3
Details
LibreChat logo

LibreChat

47.6k
LibreChat is a self-hosted AI chat platform that unifies major AI providers in a ChatGPT-like interface.
Artificial IntelligenceAI InterfacesLocal LLMs+4
6 Containers
Details
LibreChat logo

LibreChat

47.6k
LibreChat is a self-hosted AI chat platform that unifies major AI providers in a ChatGPT-like interface.
Artificial IntelligenceAI InterfacesPermissive License+4
5 Containers
Details
llamafile logo

llamafile

26.7k
llamafile lets users distribute and run LLMs as a single-file executable with no installation. It also includes whisperfile for local speech-to-text transcription and translation.
Artificial IntelligenceLocal LLMsPermissive License+2
Details
NextChatAI logo

NextChatAI

89.0k
NextChat is a light, fast AI assistant web app and desktop client with support for multiple AI models and local browser storage.
Artificial IntelligenceAI InterfacesPermissive License+2
2 ContainersOpen Core
Details
AnythingLLM logo

AnythingLLM

68.7k
An all-in-one AI application for chatting with documents, building AI agents, and running local or cloud LLM workflows.
Artificial IntelligenceAutomation ToolsGenerative AI+7
Single Container
Details

Related Software

LocalAI logo

LocalAI

50.6k
LocalAI is an open-source AI engine for running LLMs and other model types locally on a wide range of hardware, with drop-in API compatibility for several popular AI APIs.
Generative AIPermissive LicenseArtificial Intelligence+6
Single Container
Details
SillyTavern logo

SillyTavern

36.2k
SillyTavern is a locally installed interface for interacting with text generation LLMs, image generation engines, and TTS voice models.
Artificial IntelligenceAI InterfacesCopyleft License+3
Single Container
Details
LLM Harbor logo

LLM Harbor

3.3k
Harbor is a CLI and companion app for spinning up and managing a local LLM stack with pre-wired services like Open WebUI, Ollama, llama.cpp, SearXNG, Speaches, and ComfyUI.
Artificial IntelligencePermissive LicenseGenerative AI+5
Details
Ollama logo

Ollama

188.3k
Ollama is a tool for running open models locally and exposing them through a REST API for apps, agents, and integrations.
Artificial IntelligenceLocal LLMsGenerative AI+3
Details
private-gpt logo

private-gpt

57.7k
PrivateGPT is an open-source API layer that turns local models into production AI applications.
Artificial IntelligenceAI RAG SystemsPermissive License+4
Details
Text Generation Inference logo

Text Generation Inference

10.9k
A Rust, Python, and gRPC server for deploying and serving large language models with high-performance text generation.
Inference ServingArtificial IntelligenceLocal LLMs+1
2 Containers
Details
HuggingFace Chat UI logo

HuggingFace Chat UI

11.1k
A SvelteKit chat interface for OpenAI-compatible LLM APIs, powering HuggingChat.
Self Hosting SolutionsAI InterfacesGenerative AI+1
Details
Dify.ai logo

Dify.ai

162.0k
An open-source platform for building, testing, and operating LLM-powered applications with workflows, RAG, agents, and observability.
Low Code DevelopmentSelf Hosting SolutionsAutomation Tools+7
36 ContainersOpen CoreFOSS with Issues
Details
pixlstash logo

pixlstash

155
PixlStash is a desktop and headless-server image library for photographers and creators, with tools to search, organize, edit, and generate images using locally run AI models.
Media ManagementPhoto GalleriesArtificial Intelligence+2
Single Container
Details
big-AGI logo

big-AGI

7.2k
Big-AGI is a multi-model AI workspace for experts, focused on chat, model comparison, and local-first self-hosting.
Artificial IntelligenceAI InterfacesAI Media Generation+2
Open Core
Details
ComfyUI logo

ComfyUI

148.9k
ComfyUI is a modular node-based AI engine for creating images, video, 3D, audio, and other content with fine-grained control over models and parameters.
Artificial IntelligenceAI Media GenerationCopyleft License+4
Freemium
Details
vLLM logo

vLLM

97.7k
vLLM is a fast, easy-to-use library and server for LLM inference and serving.
Inference ServingLocal LLMsAI Tooling
2 Containers
Details