What do you want to do?
3 use cases
-
Run a private ChatGPT-style app on your machine
Install the portable web UI and chat with a GGUF model fully offline.
View prompt
Install oobabooga/textgen with the manual portable venv steps from its README, download a small GGUF model into user_data/models, and launch it with `python server.py --portable --api --auto-launch`.
-
Use your local model as an OpenAI-compatible API
Start TextGen with --api and point existing OpenAI or Anthropic client code at it.
View prompt
Start oobabooga/textgen with `python server.py --portable --api --auto-launch`, then change <my app> to use the local OpenAI-compatible API and run its tests.
-
Fine-tune a LoRA on your own chats or text
Use the full install and the Training tab to train a LoRA, with resume support.
View prompt
Help me set up oobabooga/textgen with the one-click installer (start_linux.sh), load a Transformers model, and walk me through training a LoRA on <my text dataset> in the Training tab.
Quick start with Textgen
- Check you have what it needs: Windows, Linux or macOS; Python 3.9+ for the manual install, or a portable build; A GGUF model file from Hugging Face and enough RAM or VRAM for it.
- Open oobabooga/textgen on GitHub and read the README and license.
- Run
git clone https://github.com/oobabooga/textgenand cd into Textgen - Create a venv with
python -m venv venvand activate it - Run
pip install -r requirements/portable/requirements.txt --upgrade - Put a GGUF file in user_data/models and launch with
python server.py --portable --api --auto-launch
These steps come from our top use case, Run a private ChatGPT-style app on your machine, which also has a copy-paste agent prompt.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for oobabooga/textgen
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forPeople who want a private ChatGPT-style app on their own machine, and developers who want a local OpenAI-compatible API.
- Why it is hot48k stars, talked about in 2 AI sources we track
- LanguagePython
- Sourcegithub.com/oobabooga/textgen ยท Back to Hot repos
Requirements
- Windows, Linux or macOS
- Python 3.9+ for the manual install, or a portable build
- A GGUF model file from Hugging Face and enough RAM or VRAM for it
Add this badge to your README
Maintain Textgen? Show readers where to find these use cases.
Markdown
[](https://dedupedai.com/use-cases/oobabooga-textgen/?utm_source=github&utm_medium=badge&utm_campaign=oobabooga-textgen)
HTML
<a href="https://dedupedai.com/use-cases/oobabooga-textgen/?utm_source=github&utm_medium=badge&utm_campaign=oobabooga-textgen"><img src="https://dedupedai.com/badge/oobabooga/textgen.svg" alt="Use cases on Deduped" height="20"></a>
A static image, no tracking script. About the badge
Questions about Textgen
What is Textgen?
TextGen (formerly text-generation-webui) is an open-source desktop app and web UI for running local LLMs with no telemetry. It supports llama.cpp GGUF models plus Transformers and ExLlamaV3, chat and instruct modes, vision, file attachments, tool-calling with MCP support, an OpenAI and Anthropic compatible API, LoRA training and an image generation tab, all 100% offline. It is an open-source project on GitHub: https://github.com/oobabooga/textgen.
How do I use Textgen?
Run git clone https://github.com/oobabooga/textgen and cd into Textgen; then create a venv with python -m venv venv and activate it; run pip install -r requirements/portable/requirements.txt --upgrade. The use cases on this page give the full steps and a copy-paste agent prompt for each job.
Who is Textgen for?
People who want a private ChatGPT-style app on their own machine, and developers who want a local OpenAI-compatible API.
What can I do with Textgen?
3 use cases so far, for example: Run a private ChatGPT-style app on your machine; Use your local model as an OpenAI-compatible API; Fine-tune a LoRA on your own chats or text. Each has steps and a copy-paste agent prompt.
What do I need to run Textgen?
Windows, Linux or macOS; Python 3.9+ for the manual install, or a portable build; A GGUF model file from Hugging Face and enough RAM or VRAM for it.
What are alternatives to Textgen?
Other hot AI repos in Personal productivity: Learnharness, Chatbox, Jan, Planning with Files, Shell GPT.
Is Textgen safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.