Skip to main content

Updating Open Terminal

Open Terminal is a separate program from Open WebUI, so updating Open WebUI does not update it. If a feature described in these pages is missing, or a preview looks worse than it should, the usual reason is a terminal server that has been running untouched for a while.

Check which version you are running​

Open http://localhost:8000/docs in a browser, using whatever address you gave Open WebUI. The version number sits next to the Open Terminal title at the top of the page.

If you would rather do it from a shell:

curl -s http://localhost:8000/openapi.json | python -c "import json,sys; print(json.load(sys.stdin)['info']['version'])"

Compare that against the latest release. Neither request needs your API key.


Update​

Your files live in a Docker volume or on your own disk, and updating replaces the program rather than the data. Nothing in /home/user is touched.

Three commands: fetch the new image, remove the old container, start a new one.

docker pull ghcr.io/open-webui/open-terminal
docker rm -f open-terminal

Then run the same docker run command you used to start it:

docker run -d \
  --name open-terminal \
  --restart unless-stopped \
  -p 8000:8000 \
  -v open-terminal:/home/user \
  -e OPEN_TERMINAL_API_KEY=your-secret-key \
  ghcr.io/open-webui/open-terminal
Use the same flags as before

docker rm -f deletes the container and its settings, so the new one only gets what you type on this line. In particular keep -v open-terminal:/home/user, which is what carries your files over, and keep the same OPEN_TERMINAL_API_KEY so Open WebUI can still connect. Everything you have forgotten here is simply gone from the new container.

Run docker inspect open-terminal before removing it if you are not sure what the old one was started with.

Using one of the smaller images? Pull the tag you actually run, such as ghcr.io/open-webui/open-terminal:slim, and put that same tag on the docker run line.


Confirm it worked​

Reload http://localhost:8000/docs and check the version number again. As long as the address and the API key stayed the same, there is nothing to change in Open WebUI.


What a newer server gives you​

A few things in the file browser are done by the terminal server rather than by your browser, so they only appear once it is new enough:

VersionWhat it adds
0.12.1Word and PowerPoint files preview as the real thing. The server renders them the way Office does, instead of the browser approximating the layout.
0.12.0The file browser searches file contents as well as file names, and shows the matching lines.
0.11.35A configurable file browser home, read-only markers on files you cannot change, and template variables in custom system prompts.

Office rendering needs the default image. The slim, alpine and openshift images stay deliberately small and leave LibreOffice out, so a document preview there falls back to the browser's own rendering and warns that it may differ from the download.


Troubleshooting​

The version has not changed. Docker keeps using an image it already has when the tag is pinned to a specific version. Check the tag on your docker run line, and pull that tag rather than the bare name.

Word and PowerPoint previews still look approximate. Either the server is older than 0.12.1, or it is one of the small images that ships without LibreOffice. Switch to ghcr.io/open-webui/open-terminal with no tag suffix.

Open WebUI says the terminal is unavailable. The new container did not come up with the same port or key as the old one. Compare the connection in Open WebUI against the flags on your docker run line, and check docker logs open-terminal.

Files are missing after the update. The new container was started without the volume. Stop it, and start it again with -v open-terminal:/home/user, or with whatever volume you used originally. The data is still in the volume and only the new container is failing to see it.


Running Terminals​

Terminals starts the instances itself, so users update the image in the machine itself. Open the machine in the machine menu, change Image under Advanced and save. The new image is used the next time the machine starts an instance. See Creating Machines.

Upgrading Terminals​

Open WebUI needs Terminals 0.4.0 or later, and Terminals 0.4.0 and later need Open WebUI 0.13.4 or later. Terminals 0.3.x and earlier have no automatic upgrade, because the database schema, storage paths and saved terminal selections change and a populated older database is rejected by the new version. Back up both databases and all terminal files, start a fresh Terminals installation with a new, empty database, recreate your policies as templates, copy each workspace's files to its new storage location and select the new terminals in Open WebUI. The steps are in the Terminals changelog. On Kubernetes, update the operator and the Terminal CRD too. Remove TERMINALS_OPEN_WEBUI_URL and TERMINALS_TOKEN_CACHE_TTL from the settings, because the connection authenticates with TERMINALS_API_KEY. From Terminals 0.4.0, replace the image as usual.

A connection no longer has a policy. Policy ID, image, CPU, memory, storage, idle timeout, environment variables, lifecycle and the terminal contexts are gone from the connection form. Users with Write access to the connection create machines instead, and the settings live in each machine. After the upgrade:

  • Create the machines you need and share them.
  • Select one of the new machines again in every model, folder, automation and chat that used the old connection.
  • Reopen older chats and select a machine again, see Chats.
  • Pick agent models again in pins, default models and automations whose model name contained dots, see Model IDs.

See also​

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.