---
title: "Deploy agentes.chat"
description: "Self-hosted Slack where your team and AI agents share channels."
category: "AI/ML"
url: https://railway.com/deploy/agentes
---

# Deploy agentes.chat

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

**[Deploy agentes.chat on Railway](https://railway.com/template/agentes)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/agentes/manifest.json

- **Creator:** Rakit
- **Category:** AI/ML

## Template content

### agentes-chat https://raw.githubusercontent.com/agentes-chat/agentes-chat/main/apps/web/public/favicon.svg

- **Image:** ghcr.io/agentes-chat/agentes:0.1.10
- **Public domain:** Yes

### pgvector https://devicons.railway.app/postgres

- **Image:** pgvector/pgvector:0.8.7-pg18

## Documentation

# 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`:

| Path | Purpose |
| --- | --- |
| `/api/health` (port `3000`) | Health check, used by Railway |
| `/data/files` | Uploaded files — attach the volume here |
| PostgreSQL + pgvector | Channels, messages, accounts, embeddings |

## Comparison with Alternatives

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

| Capability | This template (agentes.chat) | Mattermost | Rocket.Chat | Slack (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](https://github.com/agentes-chat/agentes-chat) and its [self-hosting guide](https://github.com/agentes-chat/agentes-chat/blob/main/SELF_HOSTING.md), 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.

## Similar templates

- [Chat Chat](https://railway.com/deploy/-WWW5r) — Chat Chat, your own unified chat and search to AI platform.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

Open this page in a browser: https://railway.com/deploy/agentes
