Skip to content

Deployment

Talon is a Node.js daemon. The recommended production setup is a systemd service on a Linux host. A wake-only timer mode is available for low-traffic deployments.

  • Node.js 24+
  • npm
  • A Linux host with systemd
Terminal window
# build
npm install
npm run build
# apply migrations
npx talonctl migrate
# verify the setup
npx talonctl doctor

The deploy/install-service.sh script installs Talon as a systemd service:

Terminal window
sudo ./deploy/install-service.sh
# Or with explicit options
sudo ./deploy/install-service.sh --user talon --dir /home/talon/talon

The script generates /etc/systemd/system/talond.service from deploy/talond.service with your user, directory and Node path. The unit reads environment variables from .env in the project root. It includes security hardening:

[Service]
NoNewPrivileges=true
PrivateTmp=true
ProtectKernelTunables=true
ProtectKernelModules=true
PrivateDevices=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
SystemCallFilter=@system-service

If you use Codex subscription sub-agents, add --codex-runner to the install command. It installs a systemd dependency that starts the contained Codex runner through Docker Compose before talond. The daemon itself gets no access to the Docker socket.

To manage the service:

Terminal window
sudo systemctl start talond
sudo systemctl stop talond
sudo systemctl status talond
# view logs
journalctl -u talond -f

The service unit configures Restart=on-failure and RestartSec=5. If the daemon crashes, systemd restarts it.

The daemon shuts down gracefully on SIGTERM and SIGINT. SIGHUP reloads the config, which is what systemctl reload talond and talonctl reload use. Changes to the images block need a full restart.

For low-traffic deployments where you don’t want the daemon running 24/7, use the systemd timer units in deploy/:

Terminal window
sudo cp deploy/talond-wake.service /etc/systemd/system/
sudo cp deploy/talond.timer /etc/systemd/system/
sudo systemctl daemon-reload
sudo systemctl enable --now talond.timer

The timer starts talond-wake.service one minute after boot and then every 5 minutes. Adjust OnUnitActiveSec in talond.timer to change the interval. Check the paths, user and group in talond-wake.service against your install before you enable the timer. The wake service conflicts with talond.service, so use one mode or the other.

See the Docker deployment guide for the complete setup. The quickest container path is a starter bundle with the published image ghcr.io/ivo-toby/talond (linux/amd64 and linux/arm64):

Terminal window
curl -fsSL https://github.com/ivo-toby/talon/releases/latest/download/talon-starter.tar.gz | tar xz
cd talon-starter
./install.sh
cp .env.example .env # fill in secrets
cp config/talond.example.yaml config/talond.yaml # edit for your setup
docker compose up -d

To build the image from a source clone instead:

FilePurpose
deploy/DockerfileMulti-stage daemon image on node:24-slim with tini, provider CLIs and a health check
deploy/docker-compose.yamlExample Compose setup with security hardening and resource limits
Terminal window
cp config/talond.example.yaml config/talond.yaml
# Edit with your channels and personas
cp deploy/.env.example deploy/.env
# Fill in your secrets
mkdir -p personas data
docker compose -f deploy/docker-compose.yaml up -d

The image runs as non-root (1000:1000). The Compose file drops all Linux capabilities. The image includes Codex CLI, Gemini CLI and GitHub CLI (gh). Claude Code ships inside the Claude Agent SDK dependency.

Browser voice is off by default. When you enable it, the daemon opens an HTTP listener on voice.host and voice.port. The default host is 127.0.0.1.

  • Route /voice/ on your HTTPS host to voice.host:voice.port.
  • The proxy must preserve the public Host and Origin headers and send X-Forwarded-Proto: https.
  • Set voice.port to a fixed port. The default is 0.
  • Set voice.publicHost or voice.allowedOrigins to the public origin.
  • Keep the loopback default when the proxy shares the daemon’s network namespace. If the proxy runs in another VM, container or network namespace, set voice.host to an address the proxy can reach, or to 0.0.0.0, and restrict network access to the port.

All runtime config lives in talond.yaml. Point the daemon at it:

Terminal window
node dist/index.js --config /path/to/talond.yaml

Or set TALOND_CONFIG_PATH in the environment. The daemon resolves all ${ENV_VAR} references at startup from the environment and from a .env file in the working directory. Set TALOND_ENV_FILE to load a different file.

Use talonctl doctor to verify your deployment before starting:

Terminal window
npx talonctl doctor

This checks the Node.js version, Docker availability, config validity, database access, and the data directories.