New Tool Radar

Local AI

How to Install and Enable an Extension in Text Generation WebUI

Enable a built-in extension in Text Generation WebUI with the --extensions flag, and install a community extension by placing its folder under extensions/, using SuperBooga's ChromaDB retrieval as the worked example.

Schematic diagram with three steps: find the extension folder under extensions/, start the server with --extensions superbooga, and ask the model a question answered from your documents.

Text Generation WebUI ships with the chat, notebook, and training features built in, but many extras — voice input, text-to-speech, translation, retrieval — arrive as extensions. An extension is a small add-on the app loads when it starts, and the worked example here is SuperBooga, the built-in retrieval extension that lets the model answer from your own documents.

Understand what an extension is

Extensions are defined by files named script.py inside subfolders of text-generation-webui/extensions. They are loaded at startup if specified with the --extensions flag. That folder name is the extension’s name: for instance, extensions/silero_tts/script.py gets loaded with python server.py --extensions silero_tts. Built-in extensions already sit in that folder; a community extension is one you place there yourself. The built-in list includes api, google_translate, silero_tts, whisper_stt, multimodal, and superbooga.

Enable a built-in extension at startup

Start the web UI with the --extensions flag followed by the extension’s folder name. SuperBooga is the worked example:

python server.py --extensions superbooga

You can activate more than one extension at a time by providing their names separated by spaces, and the input, output, and bot prefix modifiers will be applied in the specified order:

python server.py --extensions enthusiasm translate

There is also a way to enable extensions without typing the flag every time: activate the extension in the Session tab and click Apply flags/extensions and restart — optionally save the configuration with Save UI defaults to settings.yaml. Or pass several at once on the command line, for example --extensions openai superboogav2. Note the second name: in current builds the same retrieval extension is called superboogav2, so if superbooga does not load, start it as python server.py --extensions superboogav2 instead.

Install a community extension

Installing a community extension means putting its folder under extensions/ so that its script.py sits at extensions/<name>/script.py, then starting the server with that folder name. Browse the extensions/ directory or the community extension lists to find one, copy or clone its folder into place, and check the extension’s own README for any extra install step it needs before you start the server. Extensions load at startup, so after adding one, restart the web UI — enabling it while the app is already running does nothing until the next start.

Try SuperBooga with your own text

SuperBooga is an extension that uses ChromaDB to create an arbitrarily large pseudocontext, taking as input text files, URLs, or pasted text. Open the SuperBooga controls in the UI and paste a short practice note, for example: “The lighthouse keeper named Mara checks the lamp at noon, and the supply boat arrives on Tuesdays.” Then ask the model when Mara checks the lamp. A working SuperBooga answers from the note you gave it. The newer superboogav2 build takes extra information through text input, multiple URLs, or multiple files and stores them as embeddings: it reads TXT, PDF, EPUB, HTML, CSV, ODT/ODS/ODP, and DOCX/PPTX/XLSX files.

Check What you should see If you do not see it
Folder A folder called superbooga under extensions/ holding a script.py file You are looking in the wrong directory — the folder is text-generation-webui/extensions
Started The server starts with --extensions superbooga and the extension appears in the UI The flag was missing, or the current build calls it superboogav2 — try that name
Loaded text Your pasted note, file, or URL appears in the SuperBooga input The extension did not load — restart the server with the flag
Answer The model answers “at noon” from your note, not from general knowledge The note was not ingested, or the model is answering without the retrieval context

Expected result. We checked Text Generation WebUI’s own Extensions docs for the script.py definition, the –extensions flag, the multiple-extension order, and the SuperBooga ChromaDB description, and the SuperBoogaV2 README for the Session-tab activation, the supported file formats, and the embeddings store. We did not run Text Generation WebUI.

Limits

Extensions load only at startup, so a newly added or newly enabled extension does nothing until you restart the server. When several extensions define the same hook, such as custom_generate_reply or custom_generate_chat_prompt, only the first declaration encountered is used and the rest are ignored. SuperBooga answers from the documents you give it, so a wrong or missing document gives a wrong or missing answer — retrieval does not make the model know things it was not given. The practice note above is fictional. We did not run Text Generation WebUI, so no extension behaviour here is a recorded result.

Sources

See all