Skip to main content

Docker

Run NeoAgent as a container on a server, home server, NAS or VPS you control.

🚀 Quick start​

  1. Make a folder and fetch the compose file:
mkdir neoagent && cd neoagent
curl -fsSLO https://raw.githubusercontent.com/NeoLabs-Systems/NeoAgent/main/compose.yaml
  1. Start NeoAgent:
docker compose up -d
  1. Open http://localhost:3333/app and create the first account. It becomes the admin.
  2. Continue with First run.
  • Image. ghcr.io/neolabs-systems/neoagent for linux/amd64 and linux/arm64.
  • Secrets. The first start generates SESSION_SECRET and the cloud computer token in the data volume.
  • Health. docker compose ps shows healthy once /api/health answers.
  • Claim it first. Create the admin account before anyone else can reach the port.
Signing in from another device

Browsers sign in only from addresses listed in ALLOWED_ORIGINS; empty means localhost only. Set it in compose.yaml before opening NeoAgent from another machine, for example http://192.168.1.20:3333,http://localhost:3333.

TagTracks
latestNewest stable release
betaNewest release, beta or stable
X.Y.Z, X.YOne release, or the newest patch of a stable minor line

💾 Where data lives​

Everything NeoAgent writes goes to the neoagent_neoagent-data volume, mounted at /data.

PathHolds
/data/.envGenerated secrets and every setting saved in the app
/data/data/neoagent.dbAccounts, chats, tasks and settings (SQLite)
/data/data/computersThe cloud computer system image and each account's disks
/data/agent-dataMemory, skills and workspaces
  • The container holds no state. Remove and recreate it freely; the volume keeps everything.
  • Bind mount instead of a volume? The folder must be writable by uid 1000, for example sudo chown -R 1000:1000 ./neoagent-data.
  • /data/.env wins. Its values override the environment: block in compose.yaml.
  • Change a saved value. Use Admin › Configuration or neoagent env set (see Commands).

🔄 Updating​

docker compose pull
docker compose up -d
  • Data stays. Database migrations run on start.
  • Admin guidance. Admin › Server › Updates identifies Docker and provides copyable update commands to run on the host. In-container self-update and neoagent update stay off; Compose replaces the image.
  • Switch channel or pin a version. Change the image: tag, then run the two commands above.

🖥️ Cloud computer backends​

Each account's cloud computer runs where the compose files say.

SetupAddNeedsYou get
DefaultnothingnothingQEMU in software emulation: desktop, browser, shell, files, Teach Mode. Slower, one computer at a time
KVMcompose.kvm.yamlLinux host with /dev/kvmSame features with hardware acceleration; several computers at once as memory allows
Dockercompose.docker.yamlLinux host, Docker socket, host networkingOne container per account: browser, shell, files. No desktop or Teach Mode
  • First start. Each cloud computer installs its software once; the shared Debian image downloads on first use.
  • Disk. Each computer gets an 8 GiB system disk plus a data disk of up to NEOAGENT_COMPUTER_MAX_DISK_GIB.

⚡ KVM​

Compose reads the .env file next to compose.yaml for these values. NeoAgent never sees that file.

curl -fsSLO https://raw.githubusercontent.com/NeoLabs-Systems/NeoAgent/main/compose.kvm.yaml
cat >> .env <<EOF
COMPOSE_FILE=compose.yaml:compose.kvm.yaml
KVM_GID=$(stat -c %g /dev/kvm)
EOF
docker compose up -d

🐳 Docker socket​

curl -fsSLO https://raw.githubusercontent.com/NeoLabs-Systems/NeoAgent/main/compose.docker.yaml
cat >> .env <<EOF
COMPOSE_FILE=compose.yaml:compose.docker.yaml
DOCKER_GID=$(stat -c %g /var/run/docker.sock)
EOF
docker compose up -d
  • Host networking. NeoAgent listens on the host's port 3333 directly; set PORT to change it.
  • First computer. The host builds the neoagent-guest-agent image once, which takes a few minutes.
The Docker socket is root

Mounting /var/run/docker.sock gives NeoAgent root-level control of the host. Use this backend only on a machine you dedicate to NeoAgent.

TERMINAL_ENV=host

It runs every account's commands inside the NeoAgent container, next to the database and secrets. No compose file sets it.

⚙️ Settings that matter​

Set these under environment: in compose.yaml, then run docker compose up -d.

VariableDefaultPurpose
ALLOWED_ORIGINSempty: localhost onlyBrowser addresses allowed to sign in; once set, list http://localhost:3333 too
PUBLIC_URLemptyHTTPS address behind a proxy; also turns on secure cookies and proxy trust
NEOAGENT_ALLOW_SIGNUPonfalse makes new accounts need a one-time sign-up key; the first account can always register
TERMINAL_ENVqemuCloud computer backend; compose.docker.yaml sets docker
NEOAGENT_COMPUTER_MAX_DISK_GIB12Largest data disk per cloud computer
NEOAGENT_HOME/dataSet by the image; where the volume is mounted
  • Another port. Change the left side of "3333:3333", for example "8080:3333".
  • Every other variable. See Configuration.
  • Not in the image. Chromium for slide and video export, ffmpeg and yt-dlp.

🔒 HTTPS and reverse proxy​

  1. Point the proxy at http://<docker-host>:3333. It must pass WebSocket upgrades; Caddy does by default.
  2. Set both addresses in compose.yaml:
environment:
ALLOWED_ORIGINS: "https://agent.example.com,http://localhost:3333"
PUBLIC_URL: "https://agent.example.com"
  1. Run docker compose up -d.
  • Proxy on the same host. Publish "127.0.0.1:3333:3333" so plain HTTP stays off the network.
  • Saved in the app before? /data/.env wins; change the value in Admin › Configuration.
  • More detail. Reach it from other devices and Configuration.

🧰 Commands​

CommandDoes
docker compose logs -f neoagentFollows the server log
docker compose exec neoagent neoagent doctorRuns read-only checks
docker compose exec neoagent neoagent admin grant <username>Makes an account admin
docker compose exec neoagent neoagent env set KEY valueWrites a setting to /data/.env; apply it with docker compose restart
  • Apps on phones and desktops. Nearby-server discovery does not cross Docker's network; enter the address by hand.

🗄️ Backup and restore​

Stop NeoAgent first so the database and computer disks are consistent.

docker compose stop
docker run --rm -v neoagent_neoagent-data:/data:ro -v "$PWD":/backup alpine \
tar czf /backup/neoagent-backup.tgz -C /data .
docker compose start

Restore into the same volume:

docker compose down
docker run --rm -v neoagent_neoagent-data:/data -v "$PWD":/backup alpine \
sh -c 'find /data -mindepth 1 -delete && tar xzf /backup/neoagent-backup.tgz -C /data'
docker compose up -d
  • Keep the archive private. It contains /data/.env with the session secret and saved keys.
  • Size. Cloud computer disks are included and can take several GB.