Self-hosting AI agents just got more robust with the release of agentes.chat v0.1.12, an AGPL-3.0 licensed workspace that gives developers full control over model credentials and data privacy. The new deployment guide, verified against the official SELF_HOSTING.md and docker-compose.yml files, details how to spin up a private instance on a Linux VPS using Docker Compose and PostgreSQL 18 with pgvector support. This setup eliminates the need for license keys, offering a secure, open-source alternative for teams wanting to keep their AI interactions on-premises.
Choosing Your OS and Resource Budget
The guide strongly recommends Debian 12 or 13 over Ubuntu for production environments. Debianβs systemd includes BPF_FRAMEWORK, which allows system mode isolation where each agent runs in its own Linux user, preventing cross-agent file and process access. Ubuntu only supports simple mode, where all agents share a single unprivileged user. For hardware, while the baseline is 2 vCPU and 4 GB RAM, the sweet spot for daily use with live browser agents is 8 GB RAM and 4 vCPU to accommodate Chrome and virtual desktops. Be cautious with the AGENTES_MEMORY cap; on shared VPS instances, manually set this to 2g or 4g to prevent the app container from starving the database or browser processes.
Secure Networking: Tailscale vs. Caddy
By default, the application binds to 127.0.0.1:3000, ensuring it never exposes port 3000 to the public internet due to Dockerβs iptables behavior. For the most secure setup, the guide recommends the Tailscale profile (v1.102.5), which uses userspace networking to serve real HTTPS at a private .ts.net URL with zero open ports on the public internet. Alternatively, the Caddy profile (2.11.7-alpine) can be used for public domains, automatically managing Letβs Encrypt certificates on ports 80 and 443. A critical security step for public deployments is creating the owner account via an SSH tunnel before enabling the public domain, as the first signup automatically closes open registration.
Maintenance and Backup Strategies
Backing up a self-hosted instance requires more than just dumping the database; you must also archive the /data/files volume and secure the AGENTES_SECRET from your .env file. The guide suggests using the built-in backup service to dump PostgreSQL to S3 or Cloudflare R2, optionally encrypting dumps with age encryption keys generated off-server. Upgrades are forward-only for database migrations, meaning you must dump the database and run migrations before starting a new container image. Common pitfalls include WebSocket disconnections when proxies strip upgrade headers and 'Invalid origin' errors caused by mismatched PUBLIC_URL settings, which require exact scheme and host matches in the configuration.
Key Takeaways
- Debian 12/13 provides superior agent isolation via BPF_FRAMEWORK compared to Ubuntuβs shared-user model.
- Use Tailscale for zero-port public exposure or Caddy for public domains with automatic HTTPS.
- Always set AGENTES_MEMORY explicitly on smaller VPS instances to prevent resource starvation.
- Backups must include the Postgres dump, the /data/files volume, and the AGENTES_SECRET.
- Create the owner account via SSH tunnel before exposing the service to the public internet.
The Bottom Line
Agentes.chat v0.1.12 offers a compelling path to private AI agent orchestration, but the security model hinges on strict adherence to the recommended Debian setup and careful memory management. For developers serious about data sovereignty, this self-hosted route beats cloud dependencies any day.