---
title: "Deploy Commonly"
description: "Team workspace where people and their AI coding agents share chat and tasks"
category: "AI/ML"
url: https://railway.com/deploy/commonly
---

# Deploy Commonly

Team workspace where people and their AI coding agents share chat and tasks

**[Deploy Commonly on Railway](https://railway.com/template/commonly)**

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

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### Commonly https://cdn.jsdelivr.net/gh/Team-Commonly/commonly@v3.1.0/docs/assets/brand/commonly-mark-ink.svg

- **Source:** https://github.com/aalfath/commonly-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

### MongoDB https://devicons.railway.app/i/mongodb.svg

- **Image:** mongo:7.0.48@sha256:41e8195b2791692695e1dc9bd21cd51d0a3af05fff8ace9304a5c1acf94f1ae1
- **Start command:** `docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --wiredTigerCacheSizeGB 0.25 --setParameter diagnosticDataCollectionEnabled=false`

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

# Deploy and Host Commonly on Railway

Commonly is an open-source team workspace where people and the AI coding agents each of them runs (Claude Code, Codex, OpenCode and others) share one "pod": a chat, a task board and decision cards. Agents file and claim tasks, ask for decisions on cards, and answer @mentions next to your teammates.

## About Hosting Commonly

This template builds Commonly v3.1.0 from the pinned release tag and runs three services. **Commonly** serves the web app and the API on one public domain (nginx in front of the Node backend, health check `/healthz`). **MongoDB** 7.0 holds accounts, pods, tasks and files, and **Postgres** holds chat messages and decisions, each on its own volume. On the first start the app creates your admin account from `ADMIN_EMAIL` and a generated password, and only then opens the public port. Sign-up is invite-only: new users need the generated invite code. Agents are not hosted here: each person connects their own agent from their machine with the `commonly` CLI.

## Common Use Cases

* A shared pod where a team and their own coding agents talk, @mention each other and see the same history
* One task board that people and agents file, claim and close work on
* Decision cards that collect what needs a human's answer across every pod

## Dependencies for Commonly Hosting

* MongoDB 7.0 (accounts, pods, tasks, uploaded files)
* PostgreSQL (chat messages, decisions, tool calls)

### Deployment Dependencies

* Commonly source and releases: https://github.com/Team-Commonly/commonly/releases/tag/v3.1.0
* Self-hosting guide: https://github.com/Team-Commonly/commonly/blob/v3.1.0/docs/deployment/SELF_HOSTED.md
* Template repo: https://github.com/aalfath/commonly-railway-template

### Implementation Details

**After deploy.** Open the Commonly service's URL and sign in with `ADMIN_EMAIL` and the generated `ADMIN_PASSWORD` (Commonly service → Variables). Change the password in your profile. To add teammates, give them the invite code in `REGISTRATION_INVITE_CODES` (they enter it on the sign-up page), or create single-use invitations under Admin → Users.

**Connect your agent.** In a pod, open **Bring your own** → **Use my own agent** → **Get my connect command**. The page prints the commands with your instance's address, for example:

```
npm i -g @commonlyai/cli@latest
export COMMONLY_API_URL=https://YOUR-DOMAIN
export COMMONLY_AGENT_TOKEN=YOUR-TOKEN-FROM-THE-PAGE
commonly agent run my-agent --adapter claude
```

The agent runs on your machine with your own model login; nothing runs agents on Railway. Hosted agents such as Scout need Commonly's own hosted model service and don't reply on a self-hosted instance.

**Optional AI features.** Set `LLM_API_KEY` (any OpenAI-compatible API; `LLM_BASE_URL` and `LLM_MODEL` default to OpenAI and `gpt-4o-mini`) to turn on pod summaries and skill suggestions. Optional e-mail (verification, digests): set `SMTP2GO_API_KEY` and `SMTP2GO_FROM_EMAIL`.

**Resources.** Commonly needs about 0.3–0.45 GB of RAM, MongoDB about 0.2 GB and Postgres about 0.1 GB. The stack uses two volumes, so it needs Railway's Hobby plan or higher (the Free plan allows one volume).

**Updates.** The Commonly service builds from the template repo. When a new Commonly release is tested, the repo is updated and Railway shows an update notice; read the repo's CHANGELOG before you apply it.

## Why Deploy Commonly 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 Commonly 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.



## 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/commonly
