text-generation-webui
★ 47.8kA self-hosted alternative to Chatgpt
About
Community Ratings
No ratings yetNew this week
Read recap →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.
HostingerSponsored
One click
Hostinger template, runs in your own Hostinger account.
About 5 minutes to running
netcupBest match
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
Hetzner
Full control
A small server, then Docker Compose.
About 20 minutes with Docker
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.
Tags
Track your self-hosted stack
Bookmark software to try, rate tools you've used, and keep your collection in one place.
Alternatives to text-generation-webui
GPT4All
Open-WebUI
Chatbox
KoboldCpp
Jan
LibreChat

