docs / self-hosting
Self-hosting
Run the chat and retrieval locally, with weekly knowledge snapshots from us.
Self-hosting
The self-host stack runs the chat, Open WebUI, retrieval and (optionally) the model on your hardware. You pull the ready-made community knowledge base from us — no indexing or ingestion on your side.
What you get
docker composestack and theknowledge-base-syncagent (MIT licensed).- A local Open WebUI with the retrieval filter.
- Weekly signed knowledge snapshots from us.
- Your choice of model: a local Ollama model, a local llama.cpp server, any provider key, or our inference from credits.
It's free: no subscription, and no account for the first knowledge download.
Freshness: weekly, not daily
The hosted chats update daily. Self-host snapshots are published weekly.
- A registered key updates automatically once a week.
- A manual update (
docker compose restart knowledge-base-sync) fetches the latest weekly snapshot. - Without a key, the first pull is anonymous and rate-limited. You can still bootstrap and update manually.
First run
- Clone the self-host repository for TouchDesigner.
- Copy
.env.exampleto.envand setWEBUI_ADMIN_PASSWORD(your chat admin login, withWEBUI_ADMIN_EMAIL) andWEBUI_SECRET_KEY. - Leave
KNOWLEDGE_API_KEYempty for the first anonymous pull, or create a free key in the dashboard for automatic updates. docker compose up -d.- Open Open WebUI at
http://localhost:3100and ask a question.
The stack pulls the embedding model (nomic-embed-text) on first boot. If that download fails, retrieval cannot work until it succeeds.
Connect the plugin
Point the plugin chat at your stack so you can ask about your open project with your local setup. See plugin chat → use a self-hosted chat. Everything that runs on your PC works with a self-hosted chat too: TDMCP, the device simulator and Files and terminal. So do the coding agents (Claude Code, Codex, GitHub Copilot, Antigravity) and the models of Ollama, LM Studio or llama.cpp on that PC (Models on this PC): the plugin reaches your stack through its relay, once it is linked from the This PC card (plugin 0.6.1 or newer). Remote is the exception: it links your PC through your account and the hosted chat, so it needs the hosted chat on your other devices — the plugin hides it on a self-hosted chat. To reach the machine from another device there, expose it with a tunnel (Tailscale, Cloudflare) and add the tunnel URL as an Open WebUI admin Open Terminal connection (or an MCP connection for your editor tools).
Updating
Two things update separately: the knowledge (forum and docs snapshots) and the stack (the containers: Open WebUI, the gateway, the sync agent and the rest).
Knowledge
- With a key: automatic weekly.
- Without a key:
docker compose restart knowledge-base-syncat any time; it fetches the latest weekly snapshot. - For a fully offline install: mirror the snapshot artifacts and point
knowledge-base-syncat your mirror.
The stack (containers)
The containers never update themselves. Each stack release pins image versions we have tested together, Open WebUI included, so the stack only changes when you update it. From the self-host folder:
git pull --ff-only
./scripts/upgrade.sh
The script checks your .env first, backs up the chat database, pulls the new images, recreates only the containers that changed, then checks that the gateway and the sync agent are healthy. Chats, users, uploads and the knowledge base live in Docker volumes and stay. ./scripts/upgrade.sh --dry-run shows the plan without changing anything.
On Windows, run the script from Git Bash or WSL. Without either, do the same steps by hand (this skips the database backup, so copy the owui_data volume first if your chats matter):
git pull --ff-only
docker compose pull
docker compose up -d --remove-orphans
After an update:
- Compare your
.envwith.env.example; new options show up there. - The repository's
CHANGELOG.mdlists what changed and any upgrade notes.
Knowing an update exists: the sync agent logs stack update available when a newer release is out (docker compose logs knowledge-base-sync). If a new knowledge snapshot needs a newer stack, the agent keeps serving the current one and logs the update command instead of applying it.
Open WebUI's own "update available" notice is off: the stack pins a tested version, so the prompt would only invite an untested upgrade. "See what's new" still opens Open WebUI's changelog. If you run ahead of the pin, set ENABLE_VERSION_UPDATE_CHECK=true in .env to see its release check again.
Rolling back: git checkout <previous tag>, then ./scripts/upgrade.sh --no-pull. The containers go back; the knowledge base stays on the newest snapshot it applied.
A newer Open WebUI than we pin: docker compose pull alone won't fetch one, because the version is pinned. To run ahead, set OPENWEBUI_VERSION in .env to the newer tag and run docker compose up -d. That combination is untested, so read the Open WebUI release notes first and pin back if something breaks.
Studio profile: back up the Postgres and Qdrant volumes before updating. Open WebUI runs its own database migrations on new versions, and the script reminds you.
Running Open WebUI
The chat is a standard Open WebUI. For admin questions (users and groups, roles and permissions, model connections, SSO, web search, voice, backups) the Open WebUI docs are the reference; everything there applies to this stack.
What this stack adds or presets:
- Admin login:
WEBUI_ADMIN_EMAILandWEBUI_ADMIN_PASSWORDin.env. Open WebUI creates this admin on first start, and the sync agent signs in with it to install the retrieval filter. Sign-ups are off; add users in Admin → Users. - The retrieval filter (Admin → Functions) is installed and kept current by
knowledge-base-sync. Leave it on; its settings survive updates. - The vector store must stay on Qdrant. Retrieval reads it directly, so switching Open WebUI to another vector database breaks community knowledge.
- The
ollamacontainer only does embeddings. Connect your chat models in Admin → Settings → Connections (see Local models).
Local models
A local model is the most common reason to self-host. Point Open WebUI at Ollama or an OpenAI-compatible llama.cpp server. The knowledge search works the same; only the model changes. Small models do well with the knowledge base behind them.
Your own provider keys
To use OpenAI, Anthropic, OpenRouter or another provider with your own key, add it in your stack's Open WebUI under Admin → Settings → Connections. The key is stored in your Open WebUI, on your machine. It never reaches us, and the ai keys page of the dashboard is not involved: that page is for the hosted chat only. For Claude, use Open WebUI's native Anthropic connection so prompt caching works.
Authors and self-hosting
Self-hosted questions stay on your machine, so we never see them. Your chat still credits the authors by name under each answer, but those reads can't pay them. If supporting the authors matters to you, a subscription does it.
Use our inference (managed credits)
If you would rather not run a model, the stack can use ours and pay from your prepaid credits — the same credits the hosted chat uses, debited 1:1 at provider cost with no token markup.
- Create a free account and open Dashboard → self-host.
- Tick managed inference on the key you use for the stack (the toggle is per key and off by default). The stack's
KNOWLEDGE_API_KEYmust be that key — it is the credential.
That's it. Within about ten minutes knowledge-base-sync adds an OpenAI-compatible connection to your chat, so the managed models appear alongside your own. Untick the toggle and it removes that connection again, leaving your own connections alone. No .env change, no restart. To keep it out whatever the toggle says, set MANAGED_INFERENCE_URL=off in .env.
If your balance runs out you get a clear "insufficient credits" error and your local models keep working.
Privacy in this mode: your prompts, and the knowledge excerpts the filter attaches, are sent to us and on to the model provider — that is the trade for not running a model locally. With the toggle off, nothing about inference leaves your machine.
Scaling for studios
Running the chat for a team, or more than one instance? The stack ships a studio Compose profile that moves it from SQLite to Postgres + Redis and lets it scale horizontally. See Scaling for studios.
Accounts and support
Self-hosting is free without an account for the first pull. An account gives you a key for automatic updates, credits you can spend in the hosted chat or in your own stack (managed inference, above), and attribution earnings.
If the stack fails, include docker compose logs knowledge-base-sync in your support request. For questions about Open WebUI itself, start with the Open WebUI docs.