Deploy Commonly

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

Deploy Commonly

Just deployed

/data/db

/var/lib/postgresql/data

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

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.


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