Skip to main content

Configuration Reference

Hrida Terminal has sensible defaults out of the box. This page covers all the settings you can customize if you need to.

Settings are applied in this order (later ones override earlier ones):

  1. Built-in defaults
  2. System config file (/etc/hrida-terminal/config.toml)
  3. User config file (~/.config/hrida-terminal/config.toml)
  4. Environment variables (HRIDA_TERMINAL_*)
  5. CLI flags (--host, --port, etc.)

All Settings​

SettingDefaultEnvironment VariableDescription
Host0.0.0.0HRIDA_TERMINAL_HOSTNetwork address to listen on
Port8000HRIDA_TERMINAL_PORTPort number
API KeyAuto-generatedHRIDA_TERMINAL_API_KEYPassword for connecting
API Key File—HRIDA_TERMINAL_API_KEY_FILELoad the key from a file (for Docker secrets)
Log Directory~/.local/state/hrida-terminal/logsHRIDA_TERMINAL_LOG_DIRWhere to save log files
Max Sessions16HRIDA_TERMINAL_MAX_SESSIONSMaximum concurrent terminal sessions
Enable TerminaltrueHRIDA_TERMINAL_ENABLE_TERMINALTurn the interactive terminal on/off
Enable NotebookstrueHRIDA_TERMINAL_ENABLE_NOTEBOOKSTurn Jupyter notebook run on/off
Enable System PrompttrueHRIDA_TERMINAL_ENABLE_SYSTEM_PROMPTServe the built-in system prompt that tells the AI how to use the terminal
System Prompt—HRIDA_TERMINAL_SYSTEM_PROMPTReplace the built-in system prompt with your own text
Environment Info—HRIDA_TERMINAL_INFOShort description of this environment, added to the system prompt
TERMxterm-256colorHRIDA_TERMINAL_TERMTerminal color support
Execute TimeoutUnsetHRIDA_TERMINAL_EXECUTE_TIMEOUTHow long (seconds) to wait for command output
Execute Description—HRIDA_TERMINAL_EXECUTE_DESCRIPTIONCustom text telling the AI about installed tools
Multi-UserfalseHRIDA_TERMINAL_MULTI_USEREnable per-user isolation
User Prefix—HRIDA_TERMINAL_USER_PREFIXPrefix for per-user Linux account names in multi-user mode
Session CWD TTL604800HRIDA_TERMINAL_SESSION_CWD_TTLSeconds to remember each chat session's working directory
Max Log Size50000000HRIDA_TERMINAL_MAX_LOG_SIZEBytes per process log before logging stops
Log Retention604800HRIDA_TERMINAL_LOG_RETENTIONSeconds to keep logs of finished processes
Log Flush Interval0HRIDA_TERMINAL_LOG_FLUSH_INTERVALMinimum seconds between log writes (0 = write every chunk)
Binary MIME PrefixesimageHRIDA_TERMINAL_BINARY_MIME_PREFIXESFile types returned to the AI as raw binary instead of text
Event LoopautoHRIDA_TERMINAL_UVICORN_LOOPServer event loop (auto, asyncio, uvloop)
CORS Origins—HRIDA_TERMINAL_CORS_ALLOWED_ORIGINSAllowed cross-origin domains
Allowed Domains—HRIDA_TERMINAL_ALLOWED_DOMAINSEgress firewall: only allow outbound connections to these domains

Docker-Only Settings​

These only work with the Docker image:

SettingEnvironment VariableDescription
System PackagesHRIDA_TERMINAL_PACKAGESSpace-separated list of system packages to install at startup
Python PackagesHRIDA_TERMINAL_PIP_PACKAGESSpace-separated list of Python packages to install at startup
npm PackagesHRIDA_TERMINAL_NPM_PACKAGESSpace-separated list of global npm packages to install at startup
No New PrivilegesHRIDA_TERMINAL_NO_NEW_PRIVILEGESRead by the bundled Compose files to set Docker's no-new-privileges option (default true). Set to false for multi-user mode. Must be in the .env next to the Compose file
Note

These packages are reinstalled every time the container starts. If you need many packages, consider building a custom image instead.


Config File​

Instead of environment variables, you can put settings in a file:

~/.config/hrida-terminal/config.toml
host = "0.0.0.0"
port = 8000
api_key = "your-secret-key"
log_dir = "/var/log/hrida-terminal"
max_terminal_sessions = 16
enable_terminal = true
enable_notebooks = true
execute_timeout = 5
execute_description = "This terminal has ffmpeg and ImageMagick installed."
Why use a config file?

It keeps your API key out of the command line and shell history. Anyone running ps or htop on the machine won't see it.

To use a config file in a custom location:

bash
hrida-terminal run --config /path/to/my-config.toml

Docker Secrets​

For production Docker deployments, you can load the API key from a secret file:

docker-compose.yml
services:
  hrida-terminal:
    image: ghcr.io/hrida-ai/hrida-terminal
    environment:
      - HRIDA_TERMINAL_API_KEY_FILE=/run/secrets/terminal_api_key
    secrets:
      - terminal_api_key

secrets:
  terminal_api_key:
    file: ./terminal_api_key.txt

Image Variants​

Hrida Terminal comes in three sizes:

latestslimalpine
Best forGeneral use, AI agentsSmaller footprintSmallest footprint
Size~4 GB~430 MB~230 MB
IncludesNode.js, Python, compilers, ffmpeg, Docker CLI, data science libsgit, curl, jqgit, curl, jq
Can install packages✔ (has sudo)✘✘
Multi-user✔✘✘

If you're not sure, use latest. It has everything pre-installed so the AI can work with any tool without waiting for installs.

For OpenShift, build Dockerfile.openshift. It runs as a non-root arbitrary UID and does not support multi-user mode, egress filtering or startup package installs. See OpenShift.

Hrida.ai is proprietary software of Zlabs Innovation. See the license for terms. © 2026 Zlabs Innovation.