Setting Up Open Terminal for a Team
When multiple people on your team need terminal access through Open WebUI, you have two options.
| Single Container | Terminals | |
|---|---|---|
| How | One container, separate accounts inside | Each user, chat or model can get its own instance |
| Isolation | Separate workspaces inside one shared container | A separate instance per user, chat or model, with its own files, processes, and resources. On the Docker backend the containers share one network |
| Setup | One extra setting | Additional orchestration service |
| Best for | Small teams where everyone is trusted equally | Production, larger teams, untrusted users |
| Included in | Open Terminal (free) | Terminals (enterprise) |
If your Open WebUI instance has more than one user account and the same terminal-server connection is shared across users, you must use one of the two options below. A single Open Terminal container without OPEN_TERMINAL_MULTI_USER=true (or without per-user containers via Terminals) places every user inside the same shell, the same filesystem, and the same network namespace, which means any user can read, modify, or replace any other user's files, run commands as the shared user, and bind shared ports. This is not a supported configuration for multi-user Open WebUI.
Option 1 separates workspaces. It is not a security boundary between users. Everyone still shares one kernel, one process list, one network namespace and one set of system resources, and provisioning the per-user accounts requires elevated privileges inside that container, so a user who sets out to reach root inside it will get there. Run it where every user on the instance is trusted at the same level.
For deployments with untrusted users (open signup, public-facing portals, users who are not trusted with each other's data), use Option 2 (per-user containers via Terminals) on its Kubernetes backend with a NetworkPolicy, which is the setup that puts a real boundary between users. Layering TERMINAL_PROXY_HEADERS on top of Option 1 restricts what a proxied response can do in the user's browser, and it changes nothing about the shared container itself.
Option 1: Built-in multi-user mode
The simplest approach. Add one setting and each person automatically gets a separate workspace.
docker run -d --name open-terminal -p 8000:8000 \
-v open-terminal:/home \
-e OPEN_TERMINAL_MULTI_USER=true \
-e OPEN_TERMINAL_API_KEY=your-secret-key \
ghcr.io/open-webui/open-terminalWhat happens
When someone uses the terminal through Open WebUI, Open Terminal automatically:
- Creates a personal account for that user (based on their Open WebUI user ID)
- Sets up a private home folder at
/home/{user-id} - Runs all their commands under their own account
- Keeps each user's files under their own folder
Each user sees only their own files in the file browser.
What's shared vs. separate
| Separate per user | Shared | |
|---|---|---|
| Home folder and files | Yes | |
| Running commands | Yes | |
| System packages | Yes | |
| CPU and memory | Yes | |
| Network access | Yes | |
| Process list and command lines | Yes | |
| System state and root inside the container | Yes |
This mode gives everyone their own workspace, and they all run inside the same container. Resource pressure (memory, CPU) is shared. The network namespace is shared, so a port one user binds (e.g. python -m http.server 8080) is reachable from any other user's shell on that container. The port listing and the port proxy are scoped to the user who owns the port, so the port stays out of other users' file navigators, and reaching it takes a direct request from a shell. The process list is shared, so users can watch each other's running commands. Root inside the container is reachable from any account, because provisioning the accounts needs those privileges in the first place.
Treat every user on one instance as equally trusted, and use Option 2 (per-user containers) below, on its Kubernetes backend, when users have to be protected from each other. Layering the TERMINAL_PROXY_HEADERS configuration on top locks proxied responses into a sandbox CSP in the browser, which is worth doing and does not change what happens inside the container.
Option 2: Per-user containers with Terminals
For larger deployments or when you need real isolation, Terminals can give each user their own instance, with files, processes and resources separate from everyone else's.
- Full isolation: with a separate instance per user, each instance has its own files, processes and resources
- On-demand provisioning: instances are created when users start a session and cleaned up when idle
- Resource controls: set CPU, memory and storage limits per terminal, within the server maximums
- Multiple environments: users with write access create terminals with different setups for different teams (e.g., data science, development) and share them with users and groups
- Backends: Docker, Kubernetes or the Kubernetes Operator
- Scoped instances: a terminal can run one instance per user, saved chat or model, see Creating Terminals
- Network on the Docker backend: with
TERMINALS_DOCKER_NETWORKset, instances share that Docker network, the orchestrator reaches each one by name and an instance can reach a port another user's instance has opened. Without it, the orchestrator reaches instances through their published ports on the Docker host. A terminal's Network setting picks one of the network profiles an admin defined inTERMINALS_NETWORK_PROFILES, which can place it on another Docker network. Files and processes stay separate. For mutually untrusted users, run the Kubernetes backend and add a NetworkPolicy
Three deployment backends are available:
- Docker Backend: runs on a single Docker host. Best for small-to-medium teams or environments without Kubernetes.
- Kubernetes: the orchestrator creates the pods, volumes and services itself, with no operator or CRD. Set
TERMINALS_BACKEND=kubernetes. - Kubernetes Operator: production-grade deployment using a CRD-based operator. Deploys alongside Open WebUI via the Helm chart.
Terminals requires an Open WebUI Enterprise License. See the Terminals repository for license details.