---
title: "Deploy kodus-selfhosted"
description: "Kodus AI self-hosted on Railway with API, Web, Worker, and webhooks."
category: "Other"
url: https://railway.com/deploy/kodus-selfhosted
---

# Deploy kodus-selfhosted

Kodus AI self-hosted on Railway with API, Web, Worker, and webhooks.

**[Deploy kodus-selfhosted on Railway](https://railway.com/template/kodus-selfhosted)**

- **Creator:** Gabriel Malinosqui's Projects
- **Category:** Other
- **Total deploys:** 24

## Template content

### kodus-web

- **Image:** ghcr.io/kodustech/kodus-ai-web
- **Public domain:** Yes

### kodus-ai-webhook

- **Image:** ghcr.io/kodustech/kodus-ai-webhook
- **Public domain:** Yes

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

- **Image:** mongo:8.0
- **Start command:** `docker-entrypoint.sh mongod --ipv6 --bind_ip ::,0.0.0.0 --setParameter diagnosticDataCollectionEnabled=false`

### kodus-mcp-manager

- **Image:** ghcr.io/kodustech/kodus-mcp-manager

### kodus-ai-api

- **Image:** ghcr.io/kodustech/kodus-ai-api
- **Public domain:** Yes

### kodus-rabbitmq

- **Image:** ghcr.io/kodustech/kodus-rabbitmq
- **Start command:** `/usr/local/bin/init-definitions.sh`

### pgvector

- **Source:** https://github.com/kodustech/kodus-installer

### kodus-ai-worker

- **Image:** ghcr.io/kodustech/kodus-ai-worker

## Documentation

# Deploy and Host kodus-selfhosted on Railway

  kodus-selfhosted is the self-hosted version of Kodus AI, an automated code review platform for engineering teams. It ships as a multi-service stack with Web, API, Worker, and Webhook services, backed by PostgreSQL (pgvector), MongoDB, and
  RabbitMQ. Teams can run Kodus in private infrastructure with their own keys and integrations.

  ## About Hosting kodus-selfhosted

  Hosting kodus-selfhosted involves deploying application services and data services that communicate over private networking. The Web service provides the UI, the API handles business logic, Webhooks ingest SCM events, and the Worker
  processes asynchronous jobs through RabbitMQ. PostgreSQL stores transactional and vector-backed data, while MongoDB supports document workloads. In Railway, you expose only the services that need public access (typically Web, API, and
  Webhooks), then wire internal URLs via service references. You configure required secrets, auth/session settings, and optional provider credentials (LLM keys, GitHub App, GitLab, Bitbucket, Azure Repos, Forgejo). Docs and Discord links are
  included for onboarding and troubleshooting.

  ## Common Use Cases

  - Run AI code reviews in private or regulated environments.
  - Bring your own LLM/API keys and control provider routing/cost.
  - Connect multiple SCM providers with a single review workflow.

  ## Dependencies for kodus-selfhosted Hosting

  - PostgreSQL (pgvector), MongoDB, and RabbitMQ.
  - Public domains for Web/API/Webhooks plus private service networking.

  ### Deployment Dependencies

  - Kodus Docs: https://docs.kodus.io
  - Kodus Deploy Guide: https://docs.kodus.io/how_to_deploy/en/deploy_kodus/generic_vm
  - Kodus Discord: https://discord.gg/QFzwwmNmdN
  - Railway Template Docs: https://docs.railway.com/templates/create
  - Railway Variables Reference: https://docs.railway.com/reference/variables

  ### Implementation Details

  ```env
  WEB_SUPPORT_DOCS_URL=https://docs.kodus.io
  WEB_SUPPORT_DISCORD_INVITE_URL=https://discord.gg/QFzwwmNmdN
  API_RABBITMQ_URI=amqp://${{kodus-rabbitmq.RABBITMQ_DEFAULT_USER}}:${{kodus-rabbitmq.RABBITMQ_DEFAULT_PASS}}@kodus-rabbitmq:5672/kodus-ai?heartbeat=60

  ## Why Deploy kodus-selfhosted 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 kodus-selfhosted 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

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — A Self-Hosted & Modern Roleplaying Platform
- [Letta Code Remote](https://railway.com/deploy/letta-code-remote) — Run a Letta Code agent 24/7. No inbound ports, just deploy.

Open this page in a browser: https://railway.com/deploy/kodus-selfhosted
