/nord-skills:open-terminal-guidefrom nord-skills
Complete guide to Open Terminal, a self-hosted terminal REST API for AI agents. Covers API endpoints, Docker/bare-metal deployment, configuration, Open WebUI integration, architecture, debugging, and client code.
Ships in nord-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Open Terminal is a lightweight self-hosted REST API that gives AI agents and automation tools a dedicated environment to run commands, manage files and execute code. It is part of the Open WebUI ecosystem.
| Mode | Description | Security |
|---|---|---|
| Docker | Isolated container with preinstalled Python, Node.js, git, ffmpeg, LaTeX, data science libraries, etc. | Sandbox, safe for AI agents |
| Bare metal | pip install open-terminal and run directly on the machine | Commands run with the user's privileges — no isolation |
# Set the key up front via a secret manager or env file
export OPEN_TERMINAL_API_KEY='<random-secret-from-secret-store>'
export OPEN_TERMINAL_IMAGE='ghcr.io/open-webui/open-terminal@sha256:<verified-digest>'
# Docker (recommended)
docker pull "$OPEN_TERMINAL_IMAGE"
docker run -d --name open-terminal --restart unless-stopped \
-p 127.0.0.1:8000:8000 \
-v open-terminal:/home/user \
-e OPEN_TERMINAL_API_KEY="$OPEN_TERMINAL_API_KEY" \
"$OPEN_TERMINAL_IMAGE"
# Bare metal via uvx (no install)
uvx open-terminal run --host 127.0.0.1 --port 8000 --api-key "$OPEN_TERMINAL_API_KEY"
# Bare metal via pip
pip install open-terminal
open-terminal run --host 127.0.0.1 --port 8000 --api-key "$OPEN_TERMINAL_API_KEY"
An API key auto-generated into the logs is only fine for a local throwaway test. For a persistent environment set the key explicitly via an env var or a _FILE secret.
All endpoints except /health require a Bearer token:
Authorization: Bearer $OPEN_TERMINAL_API_KEY
WebSocket terminals use first-message auth — the first message after connecting must be JSON:
{"type": "auth", "token": "$OPEN_TERMINAL_API_KEY"}
/files/upload with a url field, notebook source and /proxy/{port}/{path} only for trusted sources. Do not download URLs or execute fetched content without manual review.| Group | Purpose |
|---|---|
POST /execute | Run commands as background processes |
GET /execute/{id}/status | Poll output and status |
POST /execute/{id}/input | Send stdin to the process |
DELETE /execute/{id} | Terminate (kill) the process |
GET /files/list | List a directory |
GET /files/read | Read a file (text/PDF/binary) |
POST /files/write | Write a file |
POST /files/replace | Find-and-replace in a file |
GET /files/grep | Search file contents |
GET /files/glob | Find files by name (glob patterns) |
GET /files/display | Open a file in the user's UI |
POST /files/upload | Upload a file (multipart or URL) |
POST /api/terminals | Create an interactive PTY session |
WS /api/terminals/{id} | WebSocket for the terminal |
GET /ports | Detect listening TCP ports |
/proxy/{port}/{path} | Reverse proxy to localhost:{port} |
GET /health | Health check (no auth) |
Details for every endpoint are in references/api.md.
Commands are started via POST /execute as background processes:
LOG_DIRrunning → done (or killed)GET /execute/{id}/status with offset and tailThe wait parameter (0–300 s) lets you wait for completion inline — handy for short commands.
PTY sessions are managed via REST + WebSocket:
POST /api/terminals — create a session (limit: MAX_TERMINAL_SESSIONS, default 16)WS /api/terminals/{id} — connect (first-message auth → binary input/output frames){"type": "resize", "cols": 120, "rows": 40}Precedence (highest to lowest):
--host, --port, --api-key)OPEN_TERMINAL_*)~/.config/open-terminal/config.toml/etc/open-terminal/config.tomlThe full table of environment variables and parameters is in references/configuration.md.
| Variable | Description |
|---|---|
OPEN_TERMINAL_PACKAGES | Space-separated apt packages installed at startup |
OPEN_TERMINAL_PIP_PACKAGES | Space-separated pip packages installed at startup |
Handled by entrypoint.sh on every container start.
The _FILE convention is supported (as in PostgreSQL):
OPEN_TERMINAL_API_KEY_FILE=/run/secrets/api_key — the value is read from the fileVAR and VAR_FILE cannot be set at the same timeFor Docker CLI access from the container (build images, run containers):
docker run -d -p 8000:8000 \
-v /var/run/docker.sock:/var/run/docker.sock \
-v open-terminal:/home/user \
"$OPEN_TERMINAL_IMAGE"
entrypoint.sh adds the user to the socket's group automatically. Mounting the Docker socket is equivalent to root on the host — do it only in a trusted environment.
Open Terminal integrates with Open WebUI in two ways:
The user connects their instance via User Settings → Integrations → Open Terminal. Requests go straight from the browser.
The admin configures it via Admin Settings → Integrations → Open Terminal. Requests are proxied through the Open WebUI backend. Several terminals can be configured with per-user/group access control.
In both cases the connection is added in the Open Terminal section (not as a tool server) — this provides a file sidebar for browsing, uploading and editing files.
For working on the open-terminal source see references/architecture.md.
Open Terminal can run as an MCP (Model Context Protocol) server:
# Requires: pip install open-terminal[mcp]
open-terminal mcp --transport stdio
open-terminal mcp --transport streamable-http --host 0.0.0.0 --port 8000
All FastAPI endpoints are exposed as MCP tools automatically via FastMCP.from_fastapi().
Hidden endpoints (not in the OpenAPI schema) for per-cell notebook execution:
POST /notebooks — create a session (bound to an .ipynb file, starts a kernel)POST /notebooks/{session_id}/execute — run a cell (by index, optionally overriding source)GET /notebooks/{session_id} — session statusDELETE /notebooks/{session_id} — stop the kernelSessions are removed after 30 minutes of inactivity. The notebook is saved to disk after each execution.
Russian version: references/README.ru.md.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub nordz0r/skills --plugin all-skills28 skills in this plugin
/administering-linuxHands-on Linux administration of a systemd host: journalctl, systemctl, unit, drop-in, failed-service after reboot, OOM, df, ssh, Ubuntu Debian. Not Docker and not Ansible. Triggers: journalctl, unit file, drop-in, oom killer, disk full, sshd, ubuntu server, failed unit, vendor unit, host troubleshooting, сервер, диск заполнен, служба не стартует, логи, линукс./agency-database-optimizerDatabase design, migration safety, indexing, EXPLAIN analysis, query tuning, connection management, and production-safe PostgreSQL or MySQL changes. Use whenever the user mentions Postgres, PostgreSQL, MySQL, MariaDB, slow queries, schema design, migrations, locking risk, indexing, SQL plans, or wants to move an app between database engines safely./Other plugins' skills for the same job
2 plugins in one repository ship this exact skill · first indexed Nov 15, 2026