Single-User Docker

Run Gamut as a Docker container for headless, always-on operation. Single-user mode has no login screen; secure access at the network level.

When to choose this option

  • Gamut runs on a remote server or NAS and is accessed from a browser.
  • Headless, always-on operation without a desktop environment.
  • A single user, or network-level access control (VPN, firewall, authenticating reverse proxy) restricting who can connect.
  • Gamut managed with Docker Compose alongside other containerized services.

For multi-user deployments with built-in authentication, see Auth Mode.

Prerequisites

  • A Linux server with Docker Engine and Docker Compose v2. This is the supported setup.
  • A model provider. You can connect one after the first start, in Settings → Model Providers. It can be an API key (Anthropic, OpenAI and others), an AI subscription you already pay for, or a local model. You don't need anything ready before installing.

Published image

Gamut publishes pre-built container images to the GitHub Container Registry:

ghcr.io/skillfulagents/superagent:main

Available tags:

TagDescription
mainLatest build from the main branch (single-user mode).
main-authLatest build with authentication enabled. See Auth Mode.
X.Y.Z (e.g. 0.7.0)Pinned release version (single-user).
X.Y.Z-auth (e.g. 0.7.0-auth)Pinned release version with auth.
X.Y (e.g. 0.7)Latest patch in that line (single-user).
X.Y-auth (e.g. 0.7-auth)Latest patch in that line with auth.

See all published versions on the package page.

Images are built for both linux/amd64 and linux/arm64.

Quick start

You can connect a model provider in the app after the first start. To skip that step, set ANTHROPIC_API_KEY in a .env file before the first start, and Gamut adds it as a connection:

ANTHROPIC_API_KEY=sk-ant-...

The key is only read once. To change it later, edit it in Settings → Model Providers. Changing .env has no effect.

Create a docker-compose.yml:

services:
  superagent:
    image: ghcr.io/skillfulagents/superagent:main
    network_mode: host
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - ${HOME}/.superagent:${HOME}/.superagent
    environment:
      - SUPERAGENT_DATA_DIR=${HOME}/.superagent
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
      - PORT=47891

Start the container:

docker compose up -d

Open http://localhost:47891 (or the server's IP address) in a browser.

Docker Compose reference

A complete docker-compose.yml with the common options:

services:
  superagent:
    # Set SUPERAGENT_IMAGE in .env to pin a release, e.g.
    # SUPERAGENT_IMAGE=ghcr.io/skillfulagents/superagent:0.7.0
    image: ${SUPERAGENT_IMAGE:-ghcr.io/skillfulagents/superagent:main}
    restart: unless-stopped
 
    # Host networking is required. On Linux it works as-is.
    # Agent containers publish ports on the host, and the main Gamut
    # container connects to them via 127.0.0.1. Without host networking, 127.0.0.1 inside the main
    # container would be its own loopback, not the host's.
    network_mode: host
 
    volumes:
      # Docker-outside-of-Docker: mount the Docker socket so Gamut
      # can create sibling containers for each agent.
      - /var/run/docker.sock:/var/run/docker.sock
 
      # Persistent data directory. The path inside the container must
      # match the host path so that bind-mounted agent workspaces
      # resolve correctly when passed to sibling containers.
      - ${HOME}/.superagent:${HOME}/.superagent
 
    environment:
      - SUPERAGENT_DATA_DIR=${HOME}/.superagent
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY:-}
      - PORT=47891
      # Browser Vault key (saved logins). Unset keeps it in the data directory.
      - SUPERAGENT_VAULT_KEY=${SUPERAGENT_VAULT_KEY:-}
      - SUPERAGENT_VAULT_KEY_FILE=${SUPERAGENT_VAULT_KEY_FILE:-}

How it works

This Docker deployment uses Docker-outside-of-Docker (DooD) to manage agent containers. (The desktop app and Gamut Cloud run agents differently; see Container runtimes.) Instead of running a Docker daemon inside itself, the main container mounts the host's Docker socket (/var/run/docker.sock) and issues commands to the host daemon, creating sibling containers on the host.

  • Agent containers run as peers of the Gamut container and publish ports on the host's network interface.
  • The Gamut container needs network_mode: host to reach those ports via 127.0.0.1.

Volume persistence

All Gamut state lives in the data directory (~/.superagent by default):

PathContents
superagent.dbSQLite database: agents, sessions, scheduled tasks, audit logs, model connections, app settings and the session-signing secret.
agents/Per-agent directories containing workspaces, message history (JSONL), and downloads.
.vault-keyEncryption key for the Browser Vault (saved website logins). Only present if SUPERAGENT_VAULT_KEY and SUPERAGENT_VAULT_KEY_FILE are unset.

Older versions kept settings in settings.json and the auth secret in .auth-secret. Gamut imports both into the database on first start after an update.

Back up and restore

Back up the whole data directory, not just superagent.db. The saved logins in the Browser Vault are encrypted with .vault-key (or the key in SUPERAGENT_VAULT_KEY). Without that key, a restored database starts with every saved login unreadable.

To keep the key out of the data directory, set SUPERAGENT_VAULT_KEY (or SUPERAGENT_VAULT_KEY_FILE for a mounted secret) and store it in your secrets manager. On an existing install, use the current contents of .vault-key. A different key is rejected at startup.

Important: The host path and the SUPERAGENT_DATA_DIR value must be the same path. Gamut passes this path to agent containers as a bind mount, and those containers run on the host, so the path must be valid on the host filesystem.

To use a custom data directory:

volumes:
  - /data/superagent:/data/superagent
environment:
  - SUPERAGENT_DATA_DIR=/data/superagent

Environment variables

VariableRequiredDefaultDescription
ANTHROPIC_API_KEYNoNoneAnthropic API key, read only on the first start and saved as a connection. Changing it later has no effect: edit the key, or add other providers, in Settings → Model Providers (Model Providers).
SUPERAGENT_DATA_DIRNo~/.superagentPath to the persistent data directory.
PORTNo47891Port the web server listens on.
SUPERAGENT_IMAGENo…/superagent:mainImage the repository's docker-compose.yml runs. Set it to pin a release (see Updating).
SUPERAGENT_VAULT_KEYNoNoneBrowser Vault encryption key (32 bytes, base64). If unset, the key is kept in .vault-key in the data directory. See Back up and restore.
SUPERAGENT_VAULT_KEY_FILENoNonePath to a file holding the vault key, e.g. a Docker secret. Set this or SUPERAGENT_VAULT_KEY, not both.
HOST_PUBLIC_URLNoNonePublic HTTPS address of this instance. Needed for features where an outside service loads a page from Gamut, such as the meeting bot.

Auth mode adds AUTH_MODE, BETTER_AUTH_SECRET, TRUSTED_ORIGINS and AUTH_PROVIDERS_JSON. See Auth Mode.

Advanced:

VariableDefaultDescription
SUPERAGENT_DB_PATH$SUPERAGENT_DATA_DIR/superagent.dbPut the database somewhere other than the data directory.
SUPERAGENT_CACHE_DIR$SUPERAGENT_DATA_DIR/skillset-cacheWhere downloaded skillsets are cached.

Keys for optional services (browser providers, voice, and others) are added in Settings after the container is running.

Port configuration

The default port is 47891. With host networking, the port is exposed directly on the host. To change it, set PORT:

environment:
  - PORT=8080

Then open http://your-server:8080.

Updating

To update to the latest version:

docker compose pull
docker compose up -d

Data persists in the mounted volume, and the SQLite schema migrates automatically on startup when needed.

To pin a specific version instead of tracking main, set the tag in your compose file:

image: ghcr.io/skillfulagents/superagent:0.7.0

With the repository's docker-compose.yml, set SUPERAGENT_IMAGE=ghcr.io/skillfulagents/superagent:0.7.0 in .env instead.

Building from source

To build the image locally:

git clone https://github.com/SkillfulAgents/Gamut.git
cd Gamut
docker compose build
docker compose up -d

The repository's docker-compose.yml includes a build section that builds from the local Dockerfile.

Next steps