Open Terminal
A lightweight, self-hosted terminal that AI agents and automation tools can access via a simple REST API.
- Source repo
- open-webui/open-terminal
- Stars
- ★ 3.7k
- Last updated
- 3d ago v0.18.9
- FARS reviewed
- Nov 08, 2026 +28 new
- License
- MIT
- Primary language
- Python
- FA score
- 67/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platform
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- An AI developer runs Open Terminal locally to give an agent direct access to project files and command execution for code testing and debugging.
- Not a fit if
- Teams needing production-grade multi-user isolation; single-container mode has no hard boundaries
- OpenShift users who need runtime package installs or Docker socket access
- Anyone unwilling to grant host-level access; bare metal runs with your user's permissions
- Website
- openterminal.sh ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-29latest release v0.18.9 (2026-11-29)+5.1 ★/day over 7 days
- Source review
- 67/100 · Some gaps
What does this agent do, and when should you use it?
Open Terminal is a lightweight, self-hosted terminal server that provides a dedicated environment for AI agents and automation tools to run commands, manage files, and execute code. It is accessible through a simple REST API and can be deployed either with Docker (sandboxed) or on bare metal via pip. The Docker image comes in several variants, including a full-featured image with a complete toolkit and slim/alpine variants for smaller footprints. It integrates with Open WebUI, enabling AI assistants to execute commands and manage files directly from the interface. The project is licensed under MIT.
Open Terminal exposes REST API endpoints for executing commands, managing files, and browsing directories. It receives commands via endpoints like /exec, runs them on the server, and returns the output. It supports file upload, download, edit, and delete operations, as well as retrieving the current working directory and file listings. It can be customized using environment variables such as OPEN_TERMINAL_PACKAGES, OPEN_TERMINAL_PIP_PACKAGES, and OPEN_TERMINAL_NPM_PACKAGES to install extra packages at startup. In Docker mode, it provides an isolated environment; in bare-metal mode, commands run directly on the host with the user's permissions. It also supports a multi-user mode where each user gets a dedicated Linux account and home directory.
- An AI developer runs Open Terminal locally to give an agent direct access to project files and command execution for code testing and debugging.
- A system administrator deploys Open Terminal on a server to provide a remote execution environment for automation scripts without exposing SSH.
- A team integrates Open Terminal with Open WebUI so members can browse, upload, and edit files through the interface while AI assistants perform operational tasks.
- A security researcher uses the Docker sandbox to safely execute untrusted code in an isolated environment separate from the host.
- A CI system calls Open Terminal's API to run build and test steps inside a container.
- An educator sets up an Open Terminal instance for students to practice Linux commands without requiring local VMs.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
pip install open-terminal
- Ports
8000- Environment variables
OPEN_TERMINAL_API_KEY- Install notes cover
- Docker
How do you install or deploy this agent?
To install with Docker, run: 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. Image variants include latest, slim, alpine, and openshift. For bare metal, install via pip: pip install open-terminal, then run open-terminal run --host 0.0.0.0 --port 8000 --api-key your-secret-key.
How do you use this agent?
After starting, interactive API documentation is available at http://localhost:8000/docs. Authenticate with the API key. Customize the environment using environment variables, e.g., OPEN_TERMINAL_PACKAGES="cowsay figlet". In Open WebUI, add an Open Terminal connection via user settings or admin settings, providing the URL and API key. To use the API, invoke the /exec endpoint to run commands and /files endpoints to manage files.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
What are this agent's strengths and limitations?
- Offers multiple Docker image variants, from full toolkit to minimal footprint, catering to different scenarios.
- Supports installing apt, pip, and npm packages at startup via environment variables, avoiding image forks.
- Deep integration with Open WebUI, including a file browser sidebar and user/group-level access control.
- Includes built-in multi-user isolation with dedicated accounts and home directories per user.
- API-key authentication and can run as a standalone service.
- Bare-metal mode directly exposes host permissions, posing security risks if misused.
- Multi-user mode's production security is limited, not suitable for large or untrusted deployments.
- Slim and alpine variants do not support runtime package installation; custom images are needed.
- OpenShift image is feature-restricted, lacking runtime installs, Docker socket access, and egress firewall.
- Automatic API key generation when not set requires checking container logs, which may be inconvenient.
How does this agent compare with similar options?
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Open Terminal This agent | 67 · Some gaps | Self-hosted serviceFree | ★ 3.7k | 3d ago | Python | — |
| Judge0 Online Code Execution System | 52 · Major gaps | Self-hosted serviceFreemium | ★ 4.5k | 1d ago | HTML | — |
| Hindsight | 68 · Some gaps | Self-hosted serviceFreemium | ★ 65k | today | Python | OpenAI API · Claude API |
| Memanto | 56 · Major gaps | CLIFreemium | ★ 2.4k | today | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
An API key holder can execute commands, access files, and use every endpoint; bare-metal commands inherit the server user's permissions, and multi-user mode explicitly does not isolate users. Least privilege is therefore only partially addressed. The documentation explains key risk, personal-browser mode, the Docker Chromium sandbox tradeoff, and multi-user boundaries. Cloud-tunnel downloads require a pinned version and --yes confirmation, and WebUI forwards native approvals, but Pi has no additional per-tool permission layer. Configuration and deployment docs disclose network binding, CORS, browser sessions, and external workspace mounts. Sensitive-data protections are limited, and the key is a single full-access credential. Dependencies have lower-bound versions, with no lockfile or vulnerability-response evidence visible in this packet. Commands, file operations, and network access are core capabilities with broad external effects. Process and temporary-file cleanup are described, but no explicit change rollback mechanism is shown. A security reporting channel and author information are present, and maintenance policy is described; publisher identity remains unknown as instructed.
The README, configuration guide, and CLI support one another on listener defaults, configuration precedence, IPC, and tunnel constraints. Startup and error handling are visible, though not all code is included. The docs specify a Python requirement and Docker variants, but dependencies use broad lower bounds and no lockfile or comprehensive availability guarantee is shown. The CLI gives specific errors for invalid option combinations, missing tunnel credentials, and key-file read failures; the supplied main-source excerpt is incomplete, so other failure paths cannot be assessed.
The materials cover Open WebUI, standalone clients, coding agents, browser and desktop use, and multiple deployment shapes. The security policy describes capability boundaries and multi-user limitations in detail, although the API itself grants broad command and file access and agent permissions vary by provider. Integration requires compatible client changes, logged-in CLIs, and provider protocol support; prerequisites are documented but capabilities are not uniform across agents. Configuration addresses Linux, Windows, Docker, IPC, GPU, and slim images, with substantial environment guidance.
The README organizes installation, integration, configuration, and deployment, and links separate configuration, security, and deployment guides. Docker, Python, uvx, IPC, and connection steps have concrete instructions. Naming and configuration variables are generally consistent, though many provider commands and protocol-specific terms add complexity. Examples cover common setup; troubleshooting material is linked, but its full content is not in this packet. Security and configuration docs state limitations clearly. The MIT license is explicit. A version is present in pyproject.toml and the README links a changelog, but changelog contents are not supplied. The security policy identifies supported versions and reporting routes and says the core team maintains the project; specific maintenance responsibility and publisher identity are not fully verified by this material.
The product exposes command, file, browser, desktop, and agent-CLI interfaces, with streaming and file display support, providing clear practical utility. Its added value for agent workflows and self-hosted computing is substantial. Cost-benefit depends on an operator's ability to manage a high-privilege API, container configuration, and credentials; shared-container multi-user mode is unsuitable when users need isolation, and resource costs are not quantified.
The README, configuration and security docs, CLI, project metadata, and publishing workflow jointly support many installation, security, and release claims. Some claims are corroborated across docs and code, including API-key requirements, bind behavior, tunnel constraints, and the Python version. The main source is only a sample, so agent-session and security controls cannot be cross-checked comprehensively. The materials distinguish product capabilities, stated design boundaries, and external prerequisites, but claims such as provider protocol compatibility remain documentary assertions without executable evidence in this review.
- The API key grants full command and file access; give it only to trusted clients and choose listener and CORS settings carefully.
- Shared-container multi-user mode does not isolate users, and personal-browser mode uses existing browser sessions. Docker images disable Chromium's own sandbox by default, which the docs say reduces protection inside the container.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Added - You can now disable coding agents entirely or allow only selected agents, such as Claude Code and Codex. Disabled agents are not launched to check their models and cannot start new chats. All agents remain allowed by default. Restart Open Terminal after changing these settings; see the [agent setup instructions](README.md#coding-agents-in-chat). Fixed …View on GitHub ↗ -
Release notes excerpt
Changed - The Sessions list now shows the program running in each terminal, such as bash, vim, or sleep, instead of labeling every terminal "Shell". It shows the program name, not a custom terminal title. Windows terminals and terminals whose program cannot be identified still show "Shell". Requires an updated Open WebUI.View on GitHub ↗ -
Release notes excerpt
Added - Added support for the Sessions item in each machine's menu in Open WebUI. It lists your open terminal shells and running commands from all chats on that machine, newest first, and lets you stop them without returning to the original chat. You only see and stop your own sessions. Requires an updated Open WebUI. Changed - Watching the same desktop in multiple tabs or devices no longer makes each viewer wait while another viewer's picture is prepared. Viewers also share recent screen captures instead of repeatedly capturing the same screen. …View on GitHub ↗
FAQ
Does Open Terminal support multiple users concurrently?
OPEN_TERMINAL_MULTI_USER=true to enable multi-user mode; each user gets a dedicated Linux account and home directory. However, this isolation is based on Unix permissions and does not provide hard isolation boundaries, so it is not suitable for production.How can I add extra packages?
OPEN_TERMINAL_PACKAGES, OPEN_TERMINAL_PIP_PACKAGES, and OPEN_TERMINAL_NPM_PACKAGES environment variables to install packages at startup. For slim and alpine variants, you need to build a custom image.Does it support file upload and download?
Can Open Terminal run without Docker?
pip install open-terminal and run it on bare metal. Note that in bare-metal mode, commands run directly with your user's permissions without sandboxing.Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.