Skip to content

Install Nimbot ​

Nimbot runs the Server, panel and Agent Host subprocesses in one non-root Docker container. Docker Compose and a Docker socket mount are not required. Native development is documented in CONTRIBUTING.md.

Fresh installation requirement ​

This subprocess release requires a new data volume. It does not migrate or import previous per-agent container installations. Existing databases are rejected and old containers, volumes and files remain until you explicitly remove them. The optional installer uses the same Docker CLI layout. The previous automatic upgrade and per-agent-volume recovery scripts are retired.

Optional assisted installation ​

Docker Engine or Docker Desktop must already be running. On Linux and macOS, run this command (you can download and inspect it first):

sh
curl -fsSL https://raw.githubusercontent.com/celeris-it/nimbot/main/install.sh | bash

The script downloads source, builds one application image, creates one named data volume, and starts one application container without asking questions or requiring a terminal. The panel defaults to http://localhost:3000. When no password is configured, the installer prints an activation link. Open it to create and confirm your administrator password in the browser. Keep this link private until setup is complete. It stops working after setup or a server restart.

Use --port 3100 to select another host port and --url https://nimbot.example.com for an existing HTTPS proxy. A busy port causes an error with retry instructions; the installer does not silently select another port. It does not use Compose or mount the Docker socket. Configuration is saved in a private .env; its additional PANEL_PUBLISH_PORT setting is installer metadata, not a Server bind setting.

For unattended configuration, pass PANEL_PASSWORD_HASH or PANEL_PASSWORD to the installer environment. The hash takes priority; only a hash is written to .env. When piping the script, export variables before the pipeline so they reach Bash. Existing installations retain their saved .env; environment values do not replace it. To change the port or URL, edit .env and recreate the container using the manual Docker procedure.

Use --directory /absolute/path to choose an empty destination, and optionally --version vX.Y.Z for an initial release tag that includes this layout:

sh
curl -fsSL https://raw.githubusercontent.com/celeris-it/nimbot/main/install.sh | bash -s -- --directory "$HOME/nimbot"

The default destination is ~/.local/share/nimbot. Previous installation markers are rejected without deleting data. Re-running with the same directory reuses source, password and retained data; it does not download updates. Local Unix Docker contexts are supported. Containers and volumes are named using a generated installation ID so separate installations can coexist with different panel ports. The marker's first line is subprocess-v1; never execute its contents as shell.

After a failed installation, fix the reported error and retry the same command. Resources and configuration are retained. The script waits for application health; agent and provider readiness are checked separately in the panel.

Install with Docker CLI ​

Use Docker Engine on Linux or Docker Desktop on macOS. Start from a checkout of the desired Nimbot revision. Node.js, pnpm, OpenCode and Chromium are installed inside the image; they are not prerequisites on the Docker host.

sh
docker build -f infrastructure/docker/nimbot.Dockerfile -t nimbot:local .

Create a private .env file beside the checkout:

dotenv
PANEL_URL=http://localhost:3000
TASK_TIMEOUT_SECONDS=600

Run chmod 600 .env. You can leave the password unset to create it from the web. Alternatively, set PANEL_PASSWORD_HASH (generated with the image’s apps/server/dist/password.js command) or PANEL_PASSWORD in your private deployment configuration. Never commit credentials.

Create a new named volume and start the application:

sh
docker volume create nimbot-data
docker run -d --init --name nimbot --restart unless-stopped --stop-timeout 30 \
  --env-file .env -p 127.0.0.1:3000:3000 \
  --mount type=volume,source=nimbot-data,target=/data nimbot:local

Get your private activation link:

sh
docker exec nimbot node apps/server/dist/setup-link.js

Open the link to set your password. If the password is already configured, this command prints the sign-in URL instead. After a restart, run the command again to get the current link. With an installer-managed container, use the exact container name shown in its logs command, or rerun the installer in the same directory. For a remote host using the default URL, first open an SSH tunnel:

sh
ssh -L 3000:127.0.0.1:3000 YOUR_USER@YOUR_SERVER

The link uses PANEL_URL; an HTTPS deployment still needs its existing reverse proxy configured before opening the panel. The installation starts with zero agents. Only the panel is published. Agent Hosts and OpenCode APIs bind to container loopback; each Host has its own API token. The complete application runs as node (UID 1000). All persistent state lives under /data, including Server SQLite, bot and MCP credentials, agent workspaces, task state, provider state and browser profiles. Docker initializes a new named volume from the image's writable data directory. If you choose a bind mount, ensure it is writable by UID 1000 before starting.

Use a different container name, volume name and published port for a separate installation. Never share the data volume between running installations. Do not override SERVER_STATE_DIR or PANEL_HOST with native development values in the container; the image defaults are /data and 0.0.0.0 respectively.

Using your own HTTPS domain ​

Keep the Docker port bound to host loopback. Configure an existing reverse proxy with TLS, point it at http://127.0.0.1:3000, and set PANEL_URL to the exact HTTPS origin (no path). Recreate the application container after changing .env. Remote access requires HTTPS. Proxy provisioning is outside Nimbot's scope.

Password configuration and storage ​

Authentication uses the first available source: PANEL_PASSWORD_HASH, PANEL_PASSWORD, or the hash saved in SERVER_STATE_DIR/panel-auth/password-hash (/data/panel-auth/password-hash in Docker). Empty environment variables are ignored. An invalid explicit hash or invalid saved file stops authentication; it never silently reopens setup. Passwords must be 8–256 characters long.

Web setup stores only a scrypt hash in a private file, retained across container recreation and included in panel backups. Environment credentials override the saved hash without changing it; removing those variables restores the saved password, or requires activation if none was saved. A password supplied directly to the Server through PANEL_PASSWORD is hashed in memory, not saved to disk. The installer instead converts it to a hash in its private .env.

The activation token is temporary, excluded from panel backups, and never printed in normal Server logs. Creating a password signs you in automatically. Changing an existing password from the panel is outside this initial setup flow.

Trust model ​

One installation is a single trust domain under one OS account. Agents can read or modify each other's files, memory and provider credentials, and can access Server state including bot tokens, MCP credentials, Host secrets and server.sqlite. A prompt-injected agent could read Server secrets or change Server state. Approvals, grants and rules guide normal behavior; they are not a security boundary against an agent with shell access. Use separate installations when separation is required. Never mount the Docker socket into the application.

Create your first agent ​

  1. Sign in to the panel, choose Create agent, and enter its name and optional instructions.
  2. Wait for its Agent Host to start. If startup fails, choose Start agent on Overview.
  3. Open Channels and connect either or both messaging platforms.
    • Telegram: Use /newbot in @BotFather to create a bot. Under Telegram connection, enter your numeric Telegram user ID and the bot token, then choose Connect Telegram.
    • Discord: Create a bot in the Discord Developer Portal. Copy your user ID with Discord Developer Mode enabled. Under Discord connection, enter that ID and the bot token, then choose Connect Discord.
  4. Choose AI providers in the sidebar. You can connect providers before creating an agent. Save an API key for OpenAI, Anthropic, Google, or OpenRouter. For OpenAI, you can instead choose Sign in with ChatGPT, open the displayed OpenAI link, and enter the device code there. Enable device code login in your ChatGPT account security settings or workspace permissions if required. To connect a Console workspace for Console budgets or the Go allowance, choose Sign in to OpenCode Console and complete authorization using the displayed link and code. Wait for the panel to confirm completion. The panel shows connection status after saving. All agents share the saved connections.
  5. In Model and usage, choose an enabled model or leave Automatic to use OpenCode's default.
  6. Send the connected bot a task in a private message from the configured owner account. The first message links the owner chat automatically.

The Docker image includes npx, pnpm 10.33.0 (pnpm dlx), and uvx for local MCP integrations, plus build-essential (make and C/C++ compilers) to build native package dependencies at runtime. Packages may require additional system libraries. For native deployments, install Node.js with npm, pnpm 10.33.0 if you use pnpm MCP packages, and Astral uv if you use Python MCP packages. Each launcher you use must be on the Nimbot Server’s PATH. See MCP catalog and access.

Each messaging connection uses a distinct bot and accepts private messages from its configured owner. OpenCode stores shared provider credentials in the installation’s ai-providers/ directory and renews OAuth tokens there. Change the selected model from each agent’s Model and usage page.

You can cancel device login from the panel. Failed, cancelled, or timed-out attempts keep the previous credential. Device login has a ten-minute limit. Restarting Nimbot interrupts a pending login. Refreshing the browser recovers an attempt that is still running. After a credential change, the next agent turn uses the updated connection.

To replace a revoked token, open the agent's token form, enter a replacement for the same bot, and choose Restart agent in the panel.

Upgrade ​

There is no upgrade or import path from the previous per-agent container release. For another revision of this subprocess installation, stop the application and back up its entire data volume first. Build the target image, remove only the stopped application container, and run the same Docker command with the retained volume and .env. Active tasks can be interrupted during the maintenance window. See upgrade and recovery for the manual procedure. upgrade.sh reports unsupported automatic upgrades without changing resources. Keep the previous image and a complete backup before replacing it.

Uninstall ​

For an installer-managed deployment, use its saved script:

sh
bash /absolute/path/to/installation/uninstall.sh

It asks for confirmation and retains the data volume and .env. Add --purge-data only to permanently erase them; this requires a second typed confirmation. Images, source, backups and the installation marker remain. The script inspects only its exact application and data-volume names and refuses foreign ownership labels. Rerun the installer with the same directory to resume retained data.

For a manual deployment, stop and remove the application while retaining data:

sh
docker stop nimbot
docker rm nimbot

The nimbot-data named volume, source checkout, image and .env remain. Only when you explicitly want to erase all installation data, remove the volume:

sh
docker volume rm nimbot-data

This permanently deletes Server state, agents, files, histories, provider credentials and browser profiles. Back up what you need first. Removing an agent from the panel retains its own data unless you select the explicit purge option.

Configuration and operations ​

docker logs -f nimbot shows application logs. docker restart nimbot stops the Server and its Hosts, then restores agents whose desired state was running. For panel lifecycle actions, use Start agent, Stop agent or Restart agent. /stop in a chat cancels only that agent's current task. Use Settings → Backups for manual application-state backups and restoration to the same Nimbot build. Preserve deployment configuration and the matching Docker image separately. The optional BACKUP_MAX_BYTES environment setting defaults to 10 GiB for uploads and expanded file contents.

See OPERATIONS.md for complete-volume backups, recovery, troubleshooting and the shared trust model. Old per-agent-container and Compose recovery procedures do not apply.

Optional Discord connection ​

Open an existing agent in the panel and find Discord connection. Create a bot in the Discord Developer Portal, copy its bot token, and enter it with the owner's Discord user ID. Enable Developer Mode in Discord to copy the user ID; enter the full ID as shown. Nimbot verifies the token before saving it privately on the server.

The panel can configure, replace, test, and remove the connection. Use Send Discord test to send a fixed message to the saved owner. Check last test status reuses the request without sending again. If delivery is uncertain, check your DMs before starting another test. Five new attempts per minute per agent are allowed. Private text messages on either configured bot enter the agent's shared queue. Progress, approvals, and results return to the channel that received the task. Use /stop in the Discord owner DM to cancel its active task. Discord may restrict DMs when the owner blocks the bot, disables direct messages, or does not share a server with it. The server now opens a Gateway connection using the direct-message intent; privileged intents are not required. Discord conversations use the shared agent task runner.

To replace a token or owner, submit both fields again. Removing the connection keeps the agent and its Telegram connection; revoke or delete the Discord bot separately if it is no longer needed. Remove Discord before deleting its agent.