Skip to main content

Setting Up Open Terminal for a Team

When multiple people on your team need terminal access through Open WebUI, you have two options.

Single ContainerTerminals
HowOne container, separate accounts insideEach user, chat or model can get its own instance
IsolationSeparate workspaces inside one shared containerA separate instance per user, chat or model, with its own files, processes, and resources. On the Docker backend the containers share one network
SetupOne extra settingAdditional orchestration service
Best forSmall teams where everyone is trusted equallyProduction, larger teams, untrusted users
Included inOpen Terminal (free)Terminals (enterprise)
Required for multi-user Open WebUI deployments

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-terminal

What happens​

When someone uses the terminal through Open WebUI, Open Terminal automatically:

  1. Creates a personal account for that user (based on their Open WebUI user ID)
  2. Sets up a private home folder at /home/{user-id}
  3. Runs all their commands under their own account
  4. 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 userShared
Home folder and filesYes
Running commandsYes
System packagesYes
CPU and memoryYes
Network accessYes
Process list and command linesYes
System state and root inside the containerYes
Good for small trusted teams, not production

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_NETWORK set, 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 in TERMINALS_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.
Enterprise license required

Terminals requires an Open WebUI Enterprise License. See the Terminals repository for license details.

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.