Deploy Open Terminal
Sandboxed Linux computer AI agents and Open WebUI drive over an HTTP API
Open Terminal
Just deployed
/home/user
Deploy and Host Open Terminal on Railway
Open Terminal is an open-source sandboxed Linux computer for AI agents, made by the Open WebUI team. Agents and apps drive it over an authenticated HTTP API: they run shell commands, read, write and search files, use git and install packages. Open WebUI uses it for its terminal panel and file browser.
About Hosting Open Terminal
This template runs Open Terminal 0.17.22 from its official slim image, pinned by digest and built from a public GitHub repo, as one service with a volume on /home/user. Your files, git checkouts and pip install --user packages live on that volume and survive redeploys and restarts. An API key is generated on the first deploy, so there is nothing to fill in, and the server refuses to start without one. Railway gives the service an HTTPS domain and checks /health. When we bump the version, Railway shows you an update notice; read the repo's CHANGELOG before applying it.
Common Use Cases
- Give Open WebUI a real terminal and file browser for coding, data analysis and file conversion in chat
- Let your own AI agents or scripts run commands and edit files in a disposable remote workspace instead of on your laptop
- Keep a persistent cloud shell with Python 3.12, git and pip that any HTTP client can drive
Dependencies for Open Terminal Hosting
- One Railway service built from the template repo (official
ghcr.io/open-webui/open-terminal:0.17.22-slimimage) - One Railway volume mounted at
/home/user
Deployment Dependencies
- Open Terminal source and docs: https://github.com/open-webui/open-terminal
- Release 0.17.22: https://github.com/open-webui/open-terminal/releases/tag/v0.17.22
- Open WebUI integration guide: https://docs.openwebui.com/features/open-terminal/
- Template repo, README and CHANGELOG: https://github.com/aalfath/open-terminal-railway-template
Implementation Details
What you get: one service, Open Terminal, listening on port 8000 over IPv4 and IPv6, so it answers on its public domain and on the private network (open-terminal.railway.internal:8000).
After deploy:
- Copy
OPEN_TERMINAL_API_KEYfrom the service's Variables tab and the URL from Settings, Networking. - Test it:
curl -H "Authorization: Bearer YOUR-KEY" https://YOUR-DOMAIN/system/info. Interactive API docs are athttps://YOUR-DOMAIN/docs. - In Open WebUI, open Admin Settings, Integrations, Open Terminal (or the same page under User Settings), add the URL and the key, and enable it.
Good to know: the slim image has Python 3.12, pip, git, curl and jq; install more with pip install --user. The browser-tab and desktop features of the upstream full image (Chromium, XFCE, about 1.8 GB) are switched off because they don't fit small plans. Docker-in-Docker, the egress firewall and multi-user mode need privileges Railway doesn't grant, so they are not available. The server idles at about 60 MB and fits Railway's Free plan (0.5 GB); what your agents run counts against the same limit, so raise the service's memory for heavy jobs. Anyone with the key can run commands in the container: keep it secret and rotate it by changing the variable and redeploying.
Why Deploy Open Terminal on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying Open Terminal on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
Open Terminal
aalfath/open-terminal-railway-template
