Open WebUI Open Terminal for agent workloads

Open Terminal gives Open WebUI models a execution environment for running code, installing packages and producing files. This page covers the isolation and multi-user settings to plan first.

On this page

When Open WebUI Open Terminal makes sense for agent workloads

A team needs Open Terminal when it wants models to run code, install packages and return files in addition to answering in chat. Open Terminal gives Open WebUI a command execution environment, so a model can test a script, transform a dataset and hand a generated file back to the user. Teams that only need answers, summaries or retrieval from knowledge bases do not need this component. Before planning the build, confirm in the current Open WebUI documentation how Open Terminal is installed, where it runs, and how files move between the terminal and the chat, because these details change between releases and should not be assumed from older guides.

Code execution moves risk onto the server and into everything the model can reach from that environment. A model that installs packages can pull code from external package indexes, a script can read any file the environment can see, and internal hosts on the same network path become reachable through a prompt. Prompt injection from web pages or uploaded documents can also steer a model into running commands its user never intended. Map the hosts, mounted volumes, credentials and internal services the execution environment can reach, and treat that map as the scope of what a compromised prompt could touch.

For a shared deployment, decide who may use Open Terminal before enabling it. Start with Open WebUI's role-based access control, groups and per-resource permissions, and confirm which roles can reach the terminal, using the SSO and access control settings to tie those roles to your identity provider. Most users should not run code on shared infrastructure by default. If you run several replicas, review the Open WebUI scaling guide and confirm whether generated files persist across replicas, since the guide requires shared file storage for uploads and knowledge.

How a model request reaches the terminal and returns files

The request starts in a browser where a signed-in user sends a prompt. The Open WebUI server checks that user's session and permissions before it passes any tool call to Open Terminal, and the model provider is reached through a separate egress path. Output files travel back through Open WebUI to the user. Check each boundary: who may invoke the terminal, what leaves the network, and where shared state such as sessions and uploads is kept for every replica.

Request path from user to terminal, with trust boundaries and shared state marked.

Open Terminal configuration options and when each fits

This table compares the six configuration decisions a team makes before enabling Open Terminal: isolation, session model, network reach, package policy, file storage and resource limits. Read each row for the single-team evaluation case and the shared company case, then confirm the named settings in the current Open Terminal documentation before you commit.

DecisionSingle-team evaluationShared company deployment
Execution isolation (container or host placement)A container on a disposable test host is usually enough to learn how models use the terminal. Confirm what the container can reach on the host network.Run Open Terminal in a dedicated container or VM with no access to other workloads, credentials or the host filesystem. Confirm the exact isolation boundary the current release provides.
Per-user or shared terminal sessionsOne shared session is simple, and the team accepts that all users see the same files and processes.Give each user a separate session so one person's files, installed packages and running processes do not reach another user. Confirm how session identity is tied to Open WebUI sign-in.
Outbound network accessOpen network access helps experiments that fetch data or packages, and the risk stays limited to test data.Allow only the destinations the work needs, such as an approved package mirror and specific internal APIs. Confirm how egress rules can be set and logged.
Package installation policyLet the team install whatever a model requests, and record what was installed so the environment can be rebuilt.Install packages from an approved mirror or a pinned list, and block arbitrary installs in production. Confirm whether package managers can be restricted per session.
File storage locationLocal ephemeral storage on the test host is acceptable if nothing sensitive is uploaded.Place generated files on storage with defined retention, backup and access controls, and keep them out of the container image. Confirm where the current release writes files and how they are cleaned up.
Resource limits (CPU, memory, disk, time)Loose limits are fine for a few testers, but set a ceiling so a runaway script cannot take down the test host.Set explicit CPU, memory, disk and execution time limits per session so one user cannot starve others. Confirm which limits the current release enforces natively and which need container runtime settings.

Choosing Open Terminal settings by deployment situation

A single-team evaluation exists to learn what agent workloads need, so the goal is a contained trial rather than a production design. Keep the instance on one Open WebUI replica. The scaling guide accepts SQLite for evaluation only when the database file sits on locally attached SSD or NVMe storage, so keep the trial on that storage and off shared network volumes. Use synthetic or public data, and keep the instance away from internal networks where it could reach systems it does not need.

  • Execution boundary: Confirm whether the terminal runs in a process or container separate from the Open WebUI server, and what it can see on the host file system and network.
  • Package installation: Decide whether the team may install packages during the trial, and keep a record of every package installed so the list can be reviewed later.
  • Produced files: Check where generated files are stored, how long they persist, and how they are removed when the trial ends.
  • Credentials: Do not place production API keys, tokens or service accounts in the environment or in prompts.

Before go-live, show that a generated script cannot read host credentials or reach internal addresses that were never granted to it.

Security risks of giving models a code execution environment

A code execution environment gives a model a place to run what it writes, and that place can read, write, call out and consume resources. The six risks below share one root cause: the model acts on behalf of a user, so every permission the environment has becomes a permission the model can try to use. The exact controls depend on how Open Terminal is configured in your deployment, so confirm each one against your own setup.

Code reading data the user should not see

Code run for one user may be able to reach files, databases or mounted storage that belong to another user or to the platform itself. Open Terminal is only as contained as its isolation boundary, so the question is whether each user's session can see anything beyond its own workspace. Check which filesystem paths, network shares and databases are visible from inside a session, and whether sessions are separated per user. Ask the vendor how Open Terminal scopes sessions before you open it to more than one team.

Outbound calls from installed packages

Packages a model installs can make network requests when imported or run, sending data to external hosts or pulling additional code at runtime. Package installation also widens the attack surface, because any dependency can behave unexpectedly. The control is egress filtering: decide which destinations the environment may reach, block everything else, and log denied attempts. Confirm whether your network layer can enforce this for the environment's container or VM, not only for the browser.

Credentials exposed inside the environment

API keys, tokens and passwords stored as environment variables, config files or mounted secrets can be read by any code that runs in the session. A model that is steered into printing or transmitting them has already exposed them. Keep long-lived credentials out of the environment, scope any credential it does need to a single purpose and short lifetime, and rotate them on a schedule. Review what the platform injects into a session before you grant a team access.

Files left behind between users

Files written to a shared or reused environment can persist after a session ends and become visible to the next user. Generated outputs, cached datasets and temporary credentials are common leftovers. Define how long session files are kept, when they are deleted, and whether an environment is reset between users. Test cleanup by writing a marker file in one session and checking that a second user's session cannot find it.

Resource exhaustion

A loop, a large download or a runaway process can consume CPU, memory, disk and process slots that other users depend on. Left unbounded, one session can slow or stop the shared host. Set limits on CPU, memory, disk and session duration for each environment, and alert when a session approaches them. Ask how Open Terminal enforces these limits and whether they can be set per user group.

Prompt injection that steers code execution

Instructions hidden in web pages, documents or tool output can lead a model to write and run code the user never asked for. Because the code runs inside the environment, a successful injection can reach every risk above at once. Limit damage by restricting which tools can reach Open Terminal, requiring approval for sensitive actions and keeping the environment's permissions narrow. Test this with known injection payloads before rollout, and retest after changes to tools or models.

Why multi-user isolation is the hard part of Open Terminal

For one user on a workstation, an execution environment is simple: the user's code, packages and output files share one machine and one owner. Once several people share an Open WebUI deployment, the harder questions are whether one user's sessions, files and installed packages stay separate from another's, and whether a user can reach output that belongs to someone else. Those answers depend on how Open Terminal is attached to the platform, not only on the terminal itself, so they need to be settled before the first shared rollout.

The scaling facts make the file question concrete. The scaling guide requires PostgreSQL instead of SQLite for multi-instance deployments, and for multiple replicas it requires Redis for sessions, websocket connections and application state, plus shared file storage so uploads and knowledge stay reachable from every replica. Generated files from a terminal session carry the same requirement. If a session's working directory or its produced files sit on one replica's local disk, a user routed to another replica may not find their output, or may find a stale copy. Illustrative example: a user generates a chart on replica A, the next request lands on replica B, and the file download fails.

Verify these behaviors in the target environment rather than assuming them: which user owns each terminal session and where its files are written, whether a file is visible only to its owner and to explicitly granted users, whether installed packages persist across sessions or leak between users, how sign-out and token expiry affect a running session, and which replica handles websocket traffic for a terminal. Ask the platform owner to confirm each point in a staging deployment with at least two replicas and a second test user before any shared access is granted.

Setting up Open Terminal with checks at each step

This sequence takes Open Terminal from an unverified idea to a tested, access-controlled capability for a limited group. Each step ends with a check that confirms the setup before the next one begins, so problems surface in a test instance rather than in front of the wider team.

  1. Confirm the Open WebUI version and install method

    The platform team records the exact Open WebUI version, the install method (Docker, Docker Compose, Kubernetes with Helm, or pip), the database, and whether the deployment runs one replica or several. Compare the version against the release notes on the project's GitHub releases page, since Open Terminal behavior and configuration can change between releases. Confirm the installed version with the admin settings or the container image tag, and check that the version matches the one in your change record. The step is done when the version, install method and replica count are written into the deployment record and nobody can name a different value.

  2. Decide the isolation and network model

    Before anything is deployed, the security and platform leads decide where Open Terminal runs, which host or container it lives on, which networks it can reach, and which outbound destinations it may use for package downloads. Write the decision as a short table: runtime location, filesystem paths it can read and write, whether it can reach internal services, and which package sources are permitted. Ask the vendor or check the Open Terminal documentation to confirm how it isolates processes and what it can access by default. The step is done when a reviewer can point to each network path and each writable location and say whether it is intended.

  3. Deploy Open Terminal in a test instance

    The platform team deploys Open Terminal into a separate test instance of Open WebUI, never into the production deployment, using the same install method as production. Keep the test instance on the isolated network model from the previous step and do not mount production data, shared knowledge stores or production secrets. Start the service and confirm it responds to health checks from the Open WebUI server. The step is done when the test instance starts cleanly, the health check passes, and the logs show no errors on startup.

  4. Connect Open Terminal to Open WebUI for intended groups

    An Open WebUI administrator registers the Open Terminal endpoint in the test instance and grants access only to the user groups named in the rollout plan, using role-based access control with groups and per-resource permissions. Create two test accounts, one in the intended group and one outside it, so access can be checked from both sides. Confirm that the endpoint appears for the in-group account and is absent for the out-of-group account. The step is done when the group test passes in both directions and the grant is recorded with the name of the approver.

  5. Run package and file output tests as two users

    Run the same two tests under each test account. First, ask the model to install a small, approved Python package and run a short script that prints its version. Second, ask the model to produce a file, such as a CSV, and confirm it can be downloaded. Repeat both tests as the in-group user and then as the second user, and confirm that files created by one user are not visible to the other unless sharing was intended. The step is done when both users complete the install and file tests, and the cross-user visibility result matches the access plan.

  6. Verify that files and logs land where expected

    Check the storage locations and log sinks before going further. Confirm that generated files appear in the expected directory or object store, that they are removed or retained according to the retention decision, and that package installs do not write outside the permitted paths. Then open the Open WebUI logs and the Open Terminal logs and confirm that the test session, the user identity, the command and the outcome are each recorded. If any log line lacks a user identity or a command record, stop and resolve it before expanding access. The step is done when every test artifact can be traced to a file location and a log entry.

  7. Review audit and access settings before wider enablement

    Before enabling Open Terminal for a larger group, the security reviewer checks the audit trail, admin access, secrets handling and the outbound network rules together. Confirm who can change Open Terminal settings, whether the audit log is shipped to a system that the platform team cannot silently edit, and whether package sources and outbound destinations match the approved list from the isolation decision. Document any deviations and their owners. The step is done when the reviewer signs off on a written checklist, the test results are attached, and a named owner has accepted any open items before the group is widened.

Limits to confirm in your environment before rollout

Open Terminal gives models a real execution environment, so several of its behaviors depend on the release and configuration you run. The items below are assumptions to verify, not facts to rely on. Get each answer from the vendor documentation or from a test instance built the way production will be built.

Supported isolation options

Confirm which isolation boundaries the current Open Terminal release supports, such as per-user containers, separate hosts or shared processes, and what each one protects against. Ask whether one user's sessions can read another user's files, environment variables or network traffic. Record the answer for each option you plan to use, because a shared runtime and a per-user runtime carry very different risks.

Package persistence across sessions

Test whether packages a model installs with pip or other package managers persist after a session ends, after a restart and across users. Find out whether installs modify a shared environment that other users or future sessions pick up. A package installed for one user should not change what another user's code can import unless you have decided that on purpose.

Storage and cleanup of generated files

Find out where files produced by code runs are stored, who can read them, how long they remain and what triggers deletion. Confirm whether deleting a chat or a user removes the associated files and whether backups capture them. Generated files often contain data from uploads, so cleanup rules belong in your data retention schedule.

Resource limits and enforcement

Ask which limits Open Terminal enforces for CPU, memory, disk, process count and run time, and whether they apply per session, per user or per container. Test a runaway loop, a large file write and a fork bomb on a test instance to see whether the limit holds or only logs a warning. Unenforced limits let one user degrade the service for everyone.

Compatibility with your Open WebUI version

Check which Open WebUI releases the Open Terminal integration supports and whether it needs a specific configuration or API setting. Confirm how upgrades of either component are tested and whether a new Open WebUI release can break existing terminal connections. Pin both versions in your change records and retest after every upgrade.

Latest release supplied
v0.12.3
Open WebUI releases

Branding and licensing terms

Determine whether enabling Open Terminal for your users changes your obligations under the Open WebUI License. The branding clause applies to deployments above 50 users in any rolling 30-day period, unless you hold an enterprise license or written contributor permission. Ask your legal team to confirm how that threshold is counted and whether any terminal or extension feature affects it.

Open WebUI License

Questions teams ask before running Open Terminal in production

What does it cost to run Open Terminal in production?

Cost depends on how much isolation you need, how many people will use the terminal, how restricted your network is and how much testing you require. No public price is available for this work, so ask for a fixed-scope written quote built from your environment. Costs fall into a one-time build (environment design, isolation, identity integration, testing and documentation) and recurring work (patching, upgrades and periodic testing). Ask each quote to separate those two categories and to list what you must supply, such as cloud accounts, compute and network access. Open WebUI itself is licensed under the Open WebUI License, so check the license terms for your user count before you budget.

How long does a pilot of Open Terminal take?

A pilot's length depends on the isolation model you choose, the identity integration you need and the number of user groups you test with. No fixed duration applies across environments, so ask for a timeline in the written scope rather than relying on a generic estimate. A useful pilot covers one isolated execution environment, one identity path, a small set of test users and a review of file and network behavior. Expansion to more users, stricter network rules or additional environments adds scope and time. Agree on exit criteria at the start so the pilot ends with a clear decision.

What must our team provide before an engagement starts?

You need to supply the target infrastructure, a named technical owner, access to your identity provider, and a security sign-off path. Expect to provide a Kubernetes or VM environment or cloud accounts where the terminal will run, network rules that define what it can reach, and an existing Open WebUI deployment or a plan for one. Security sign-off should name who approves the isolation design, the allowed outbound destinations and the test results. Confirm these items in the written scope so delays in access do not change the fixed scope or timeline unexpectedly.

Can our internal team set up Open Terminal without a partner?

Yes, if your team already runs containers, identity integration and network segmentation, and has someone who can review code execution risk. Open Terminal lets models run code, install packages and produce files, so the hard parts are isolation, least-privilege access and logging rather than installation. Teams without that experience often underestimate the security review and the testing needed before users start working. A partner can take the build, the testing or both, while your team keeps ownership of the decisions. Compare the cost of internal staff time, delay risk and the testing you would otherwise need to buy.

Which parts of Open Terminal need ongoing maintenance?

Ongoing work covers upgrades to Open WebUI and the terminal component, patching of the execution environment and base images, review of installed packages and network rules, and periodic security testing. Upgrade practice matters because the Open WebUI release line moves often, and release dates are listed on the project's GitHub releases page. Assign an owner for each recurring task and decide whether that owner is internal or covered by a retainer. Ask any provider to state which of these tasks are included in a support agreement and which are billed separately.

What should our engineers check before letting users run code?

Engineers should confirm that each user session runs in its own isolated environment, that file access is limited to that session and that outbound network access follows an allowlist. They should also verify how package installation is controlled, where logs are sent and whether terminal activity can be tied to a signed-in user. Test these controls against prompt injection and unsafe package requests before opening access to a group. Document the results so compliance and security reviewers can see what was tested, when and by whom.

Does running Open Terminal affect our compliance evidence?

It can. Code execution, file output and network access all create records that auditors and security reviewers may ask for, so plan the evidence before rollout. Keep access control records, logs of terminal sessions, configuration baselines and test reports together. DeployOpen prepares systems, controls and evidence for compliance assessments, but it does not issue audit reports or certifications. Independent auditors and certification bodies make those decisions, so confirm early which framework and evidence your assessor expects.

How DeployOpen scopes and delivers Open Terminal rollouts

DeployOpen plans, builds, tests, documents and supports Open WebUI Open Terminal inside your own infrastructure, starting from a written scope that defines the execution environment, the users and the isolation boundary. The work covers the platform, the access model and the evidence your security and compliance teams need to review it.

How we scope

  • Agree in writing which models, users and groups may request code execution through Open Terminal
  • Map the networks, storage and identity sources the execution environment may and may not reach
  • Define the package sources, file outputs and retention rules that the written scope covers

How we build

  • Deploy Open Terminal in the isolation pattern chosen during scoping, inside your cloud accounts or data centers
  • Configure per-user and per-group permissions so that only approved roles can run code or install packages
  • Test escape paths, outbound network controls, file handling and credential exposure before any user access

How we hand over

  • Deliver configuration, architecture notes, runbooks and the test results that support your review
  • Walk your platform, security and operations staff through the controls, logging and recovery steps
  • Document open items and the decisions your team must confirm before wider rollout

How we support

  • Offer ongoing support, upgrades and continuous testing as retainers after the fixed-scope delivery
  • Retest the environment after Open WebUI upgrades or changes to the execution image and permissions
  • Confirm support terms, response expectations and upgrade responsibilities in the written agreement

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.