Skip to content

Configuration reference ​

Technical details for operators. For everyday use, start with Install Nimbot.

Environment variables ​

Set these in the .env file passed to the container. Keep it private (chmod 600 .env) and never commit it.

VariablePurpose
PANEL_URLExact browser-facing origin, without a path. Used for links and webhooks.
TASK_TIMEOUT_SECONDSMaximum duration of a task.
PANEL_PASSWORD_HASHOptional scrypt password hash. Generate it with the image's apps/server/dist/password.js.
PANEL_PASSWORDOptional plain password, hashed in memory and never saved to disk by the Server.
BACKUP_MAX_BYTESPanel backup limit (see Backups).
NIMBOT_LOGSet to silent to suppress logs. MCP history is still kept.

Inside the container, SERVER_STATE_DIR defaults to /data and PANEL_HOST to 0.0.0.0. Don't override them with native development values. The installer also writes PANEL_PUBLISH_PORT to .env; it's installer metadata that the Server ignores.

Panel password ​

Nimbot uses the first available source:

  1. PANEL_PASSWORD_HASH
  2. PANEL_PASSWORD
  3. The hash saved by web setup in SERVER_STATE_DIR/panel-auth/password-hash (/data/panel-auth/password-hash in Docker)

Empty variables are ignored. Environment values override the saved hash without changing it; removing them brings the saved password back, or requires activation if none was saved. An invalid hash, unreadable file, or wrong file permissions stop authentication. Nimbot never reopens password setup in that case. Passwords must be 8–256 characters long.

The web-setup hash survives container recreation and is included in panel backups. The activation token is temporary, excluded from backups, invalidated on restart, and never printed in normal logs. Creating a password signs you in. Changing an existing password from the panel is not available yet.

Installer details ​

  • Without a configured password, the installer prints an activation link.
  • For unattended setup, pass PANEL_PASSWORD_HASH or PANEL_PASSWORD in the installer's environment. The hash takes priority, and only a hash is written to .env. When piping the script, export variables before the pipeline.
  • Existing installations keep their saved .env; environment values don't replace it. To change the port or URL, edit .env and recreate the container manually.
  • The installer reuses a folder's source, password, and data when run again. It rejects old installation markers without deleting data.
  • Containers and volumes are named nimbot-<installation ID> and nimbot-<installation ID>-data, so several installations can coexist with different ports. Local Unix Docker contexts are supported.
  • The .nimbot-installation marker's first line is subprocess-v1, then the installation ID, the local Docker endpoint, and the downloaded revision. It's metadata; never run it with source.
  • The installer doesn't use Compose and never mounts the Docker socket. It waits for application health only.
  • The uninstall script only touches its exact container and volume names and refuses resources with foreign ownership labels.

Where data is stored ​

Everything lives in the /data volume:

LocationContents
server.sqliteAgent identity, desired process state, owner links, queues, schedules, approvals, peer grants and notes, MCP catalog and notification delivery intent
bot-secrets/, discord-secrets/, host-secrets/, mcp-secrets/, git-secrets/Private connection credentials; SQLite stores references
agents/<agent ID>/workspace/Files, imports and exports
agents/<agent ID>/tasks/Host task records/results, memory and ordinary-session reference
ai-providers/Shared provider credentials, workspace-scoped OpenCode sessions, and OAuth refresh state
agents/<agent ID>/engine/Agent-specific OpenCode configuration and cache, plus any retained pre-upgrade engine database
agents/<agent ID>/browser/Persistent Chromium profile
agents/<agent ID>/home/, tmp/Per-agent home and temporary files
panel-auth/Saved panel password hash
mcp-runtime/npm, pnpm, and uv caches and uv-managed Python installations for local MCP packages
skills/Shared skill library

The application runs as node (UID 1000). A new named volume is initialized from the image. A bind mount must be writable by UID 1000. Each installation needs its own volume.

When upgrading an existing installation, Nimbot moves OpenCode conversations into the shared database. If agents had different credentials for the same provider, AI providers shows Reconnect required. Old engine databases are kept in agent folders and may still contain old credentials.

Backups ​

BACKUP_MAX_BYTES limits both uploaded archive size and expanded file contents. The default is 10 GiB (10737418240). Set a positive integer to change it. Nimbot also checks free disk space: a restore needs room for the uploaded archive and the extracted state next to the current one, and an export extracts a verification copy before offering the download.

Panel exports keep these runtime folders as empty directories; they're recreated as needed:

  • agents/<agent-id>/tmp/
  • agents/<agent-id>/engine/cache/
  • ai-providers/agents/management/tmp/
  • ai-providers/agents/management/engine/cache/

How backup and restore work internally:

  • An export enters maintenance, stops integrations and agent processes, waits for writes, and closes SQLite before reading files. The panel stays available.
  • Restore validates paths, sizes, checksums, build compatibility, and the database. It keeps the previous state in SERVER_STATE_DIR/.nimbot-backups/previous/ (replaced by the next restore), writes a recovery journal before moving data, and signs out all sessions on success.
  • Interrupted restores are rolled back on the next start. The .nimbot-backups folder is excluded from exports.
  • The destination keeps its own deployment configuration. Environment password settings still take priority over the restored password.