---
title: "Deploy Open Ship"
description: "Self-hosted Review, Steward and Approvals for GitHub pull requests."
category: "Automation"
url: https://railway.com/deploy/open-ship
---

# Deploy Open Ship

Self-hosted Review, Steward and Approvals for GitHub pull requests.

**[Deploy Open Ship on Railway](https://railway.com/template/open-ship)**

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

- **Creator:** Karolis Stulgys's Projects
- **Category:** Automation
- **Total deploys:** 3

## Template content

### open-ship

- **Image:** ghcr.io/kstulgys/open-ship:0.1.2
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Open Ship with Railway

Open Ship is a self-hosted service for GitHub pull requests. Its Review posts findings as a check and as comments. Its Steward fixes failing checks, merge conflicts and review comments, and pushes the fixes. Its Approvals check holds a pull request until your policy allows the merge. You run it with your own model API key.

## About Hosting Open Ship

Open Ship is one Node.js process with a SQLite database on a volume at `/data`. This template starts it from the image `ghcr.io/kstulgys/open-ship`. The first deploy starts in setup state. Open the setup URL from the deploy log on the public domain, and the setup page creates your GitHub App. Then redeploy the service: Open Ship reads the new app from the volume, so you do not change `OPEN_SHIP_CONFIG_YAML`. Run one replica only. The full guide is the Railway page of the docs: https://github.com/kstulgys/open-ship/blob/main/docs/hosting/railway.md

## Common Use Cases

- Review each new pull request with a model and post the findings as comments
- Keep pull requests green: the Steward fixes failing checks and merge conflicts
- Hold merges until a pull request passes an Approvals policy

## Dependencies for Open Ship Hosting

- An Anthropic API key (`ANTHROPIC_API_KEY`)
- An E2B API key (`E2B_API_KEY`): the Steward runs its Sandboxes on E2B, because Railway has no Docker daemon
- A GitHub account that can create a GitHub App

### Deployment Dependencies

- Open Ship on GitHub: https://github.com/kstulgys/open-ship
- E2B: https://e2b.dev
- Anthropic API keys: https://console.anthropic.com

### Implementation Details

The template sets `PORT=3000` (Railway sends the health check to this port), the health check path `/healthz`, and `RAILWAY_RUN_UID=0`, so that the container can write to the volume. Set your Repos in `repos` of `OPEN_SHIP_CONFIG_YAML` before you deploy. The form shows that config on one line, in YAML flow style, so you can change `repos: [acme/app]` there.

## Why Deploy Open Ship 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 Open Ship 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

- [N8N Main + Worker](https://railway.com/deploy/n8n-main-worker) — Deploy and Host N8N with Inactive worker.
- [Evolution API with n8n](https://railway.com/deploy/evolution-api-with-n8n) — Automate WhatsApp workflows with Evolution API, n8n, and Postgres.
- [Postgres Backup](https://railway.com/deploy/postgres-s3-backups) — Cron-based PostgreSQL backup to bucket storage

Open this page in a browser: https://railway.com/deploy/open-ship
