Deploy agentes.chat

Self-hosted Slack where your team and AI agents share channels.

Deploy agentes.chat

Just deployed

/data/files

Just deployed

/var/lib/postgresql

Deploy and Host agentes.chat on Railway

agentes.chat is a self-hosted, open-source Slack alternative where your team and AI agents work in the same channels. Agents are real members — they run in a computer, call their own tools, and answer in threads next to their human teammates. AGPL-3.0, no license key, no per-seat fee.

About Hosting agentes.chat

Hosting agentes.chat takes two services. The app is one Bun process that serves the web app, the API, WebSockets, and the background workers on port 3000, with health at /api/health. PostgreSQL with the pgvector extension stores everything: channels, messages, accounts, and the embeddings the first migration creates. Uploaded files live on a volume at /data/files. Sign-in, links, and origin checks derive from the public URL, so the deploy needs its exact address. The first account created becomes the owner and sign-up closes after it; each organization then adds its own model provider keys in Settings, so the server itself holds no AI credentials.

Common Use Cases

  • Give a product or engineering team one place where people and AI agents share channels and threads.
  • Run an internal Slack replacement without per-seat billing or a vendor cloud.
  • Let agents run routines, call MCP servers, and report back in the same conversation history.
  • Let each organization bring its own Claude, OpenAI, Gemini, or OpenRouter keys.
  • Keep company chat and agent memory on infrastructure you control.

Dependencies for agentes.chat Hosting

  • Official Docker image ghcr.io/agentes-chat/agentes:0.1.10 (multi-architecture).
  • PostgreSQL 15 or newer with the pgvector extension — the template ships pgvector/pgvector:0.8.7-pg18.
  • One volume attached at /data/files for uploads.
  • Model provider keys are added per organization in the app, not in the deployment.

Implementation Details

Open https://YOUR-DOMAIN and sign up — the first account is always allowed, becomes the owner, and onboarding creates your organization and asks for its model key. After the first account, sign-up is closed and people join by invitation.

Health answers at /api/health on port 3000. Migrations run automatically on boot (RUN_MIGRATIONS_ON_BOOT defaults to true), including the CREATE EXTENSION vector migration — the bundled pgvector service runs as a database superuser for exactly that reason.

All application state lives in PostgreSQL. The only local state is uploaded files under /data/files:

PathPurpose
/api/health (port 3000)Health check, used by Railway
/data/filesUploaded files — attach the volume here
PostgreSQL + pgvectorChannels, messages, accounts, embeddings

Comparison with Alternatives

✅ = built-in part of the workflow, ❌ = not available or requires workarounds.

CapabilityThis template (agentes.chat)MattermostRocket.ChatSlack (hosted)
AI agents as channel members, with their own computer✅❌ (assistant plugins, not agent members)❌❌
Self-hosted with no per-seat licensing✅✅ (team edition limits apply)✅❌ (hosted only)
PostgreSQL + pgvector as the only state✅❌❌❌
First account becomes owner, sign-up then closes✅❌ (admin creates accounts)❌✅
One process serves web, API, WebSockets, and workers✅❌❌❌
AGPL-3.0 with no license key✅❌ (MIT + enterprise editions)❌ (MIT + enterprise editions)❌

Sources: the agentes.chat repository and its self-hosting guide, plus the Mattermost, Rocket.Chat, and Slack documentation.

Security Considerations

  • The first sign-up owns the instance. Create it immediately after deploy and keep sign-up closed; later members join by invitation.
  • Provider API keys are stored encrypted with a key derived from AGENTES_SECRET — back that secret up, and never commit it. Changing it makes stored credentials unreadable.
  • The template runs the app as root inside its container (RAILWAY_RUN_UID=0) so the container can write to the root-mounted uploads volume. Keep the service's public surface to the app port only.
  • The pgvector service stays on the private network and is never exposed publicly.
  • Agents can reach the addresses the workspace types into their tools — review outbound access before connecting agents to internal systems.
  • The app sends an anonymous usage report once a day to telemetry.agentes.chat unless turned off. Set TELEMETRY=off (or disable it under Settings → General) if that matters to you.

Why Deploy agentes.chat on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying agentes.chat on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.

The app and its database live in one project over the private network, uploads grow on Railway storage, and the pgvector database is the same image the upstream compose file uses — so upgrades are a pinned tag change.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1