---
title: "Deploy Gitterm"
description: "Run Agents Anytime, Anywhere, on Any Cloud"
category: "Other"
url: https://railway.com/deploy/gitterm
---

# Deploy Gitterm

Run Agents Anytime, Anywhere, on Any Cloud

**[Deploy Gitterm on Railway](https://railway.com/template/gitterm)**

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

- **Creator:** OpeOginni's Projects
- **Category:** Other
- **Total deploys:** 56

## Template content

### gitterm-server https://devicons.railway.app/Hono

- **Image:** ghcr.io/opeoginni/gitterm-server

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

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

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

### gitterm-web https://svgl.app/library/nextjs_icon_dark.svg

- **Image:** ghcr.io/opeoginni/gitterm-web

### gitterm-listener https://devicons.railway.app/Hono

- **Image:** ghcr.io/opeoginni/gitterm-listener

### gitterm-idle-reaper-worker https://devicons.railway.app/Bun

- **Image:** ghcr.io/opeoginni/gitterm-idle-reaper-worker

### gitterm-caddy-proxy https://upload.wikimedia.org/wikipedia/commons/e/e5/Caddyserver_logo_-_no_wordmark.svg

- **Image:** ghcr.io/opeoginni/gitterm-proxy
- **Health check:** /health
- **Public domain:** Yes

## Documentation

# Deploy and Host GitTerm on Railway

GitTerm runs your coding agents in remote workspaces you can reopen from anywhere. Pick your agent (OpenCode or T3Code), bring your own model keys, and run workspaces across Railway, AWS, E2B, Daytona, Cloudflare, Vercel, and more.

## About Hosting GitTerm

This template deploys the full GitTerm stack: web app, API server, proxy, background worker, Postgres, and Redis. On first boot the server runs migrations, seeds built in catalog data, and creates your admin user from `ADMIN_EMAIL` and `ADMIN_PASSWORD`. After that you configure workspace providers in the admin UI and start creating workspaces. Path routing works on a single domain with no extra DNS work. Use subdomain routing only if your domain has wildcard DNS and a wildcard TLS cert.

## Why Deploy GitTerm on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you do not have to deal with configuration, while allowing you to vertically and horizontally scale it. By deploying GitTerm on Railway, you are one step closer to supporting a complete full stack setup with minimal burden. Host your app, databases, workers, and AI agents on Railway.

## Common Use Cases

- Run OpenCode or T3Code in the cloud and code from any device
- Keep a persistent workspace alive across sessions and pause it when idle
- Preview workspace apps on live URLs and share them with teammates
- Run agent work on the provider that fits the job, from sandboxes to your own cloud

## Dependencies for GitTerm Hosting

- `web`: dashboard and auth UI
- `server`: main API, runs migrations and seeds on startup
- `listener`: webhook and event ingress
- `worker`: background reaper for idle workspaces. Runs as a cron job on Railway cron, not as an always-on service. Default is every 15 minutes, change it in the worker service cron schedule.
- `proxy`: Caddy reverse proxy in front of everything
- PostgreSQL: primary database
- Redis: cache and pub/sub

### Deployment Dependencies

- `ADMIN_EMAIL` (required): your admin login
- `ADMIN_PASSWORD` (required): your admin password
- Provider credentials later, set inside the admin UI (Railway, AWS, E2B, Daytona, and others)
- GitHub App or PAT for repo access (optional, set inside the admin UI)
- Docs: GitTerm repo README for provider setup guides and routing details

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