---
title: "Deploy outpost"
description: "AI coding agent with webhook automation and built-in dashboard"
category: "AI/ML"
url: https://railway.com/deploy/outpost
---

# Deploy outpost

AI coding agent with webhook automation and built-in dashboard

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

- **Creator:** Aditya's Projects
- **Category:** AI/ML

## Template content

### outpost

- **Image:** ghcr.io/mathuraditya724/outpost:8ead0f1d00f1189e084c08c7c84f054db98a70ff
- **Health check:** /global/healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Outpost on Railway

Outpost is a self-hosted [OpenCode](https://opencode.ai) web UI packaged as a Docker image with a bundled webhook-to-agent pipeline. It gives you a browser-based AI coding agent that autonomously reacts to GitHub events — resolving issues, reviewing PRs, fixing CI, and responding to comments.

## About Hosting Outpost

Outpost deploys as a single Docker container exposing the OpenCode web UI and an internal webhook server. Set at least one LLM provider key (e.g. `ANTHROPIC_API_KEY`) and a `GH_TOKEN` to get started. The bundled `opentower` plugin receives GitHub webhooks, verifies HMAC signatures, and dispatches them as agent sessions. Attach a volume at `/home/developer/dev` to persist projects and session history across redeploys. The container has no built-in auth — front it with Cloudflare Access or an equivalent proxy before exposing publicly.

## Common Use Cases

- **Autonomous issue resolution** — assign a GitHub issue and the agent clones the repo, implements a fix, and opens a draft PR.
- **Automated PR review** — the agent reviews pull requests, posts structured findings, and can self-fix issues it discovers.
- **CI failure remediation** — when a check suite fails, the agent diagnoses the error and pushes a fix (up to 3 attempts).

## Dependencies for Outpost Hosting

- At least one LLM provider API key (`ANTHROPIC_API_KEY`, `OPENAI_API_KEY`, `GEMINI_API_KEY`, etc.)
- A GitHub Personal Access Token (`GH_TOKEN`) with `repo`, `read:org`, and `workflow` scopes

### Deployment Dependencies

- [OpenCode](https://opencode.ai) — the underlying AI coding agent
- [opentower plugin](./packages/opentower/) — webhook ingestion and agent dispatch
- [Cloudflare Access](https://developers.cloudflare.com/cloudflare-one/applications/configure-apps/self-hosted-public-app/) (recommended) — auth proxy for the public-facing UI

## Why Deploy Outpost 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 Outpost 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.
- [stella](https://railway.com/deploy/stella) — Self-host stella with web, API, Postgres, Redis, and object storage.
- [Hermes Agent | OpenClaw Alternative with Dashboard](https://railway.com/deploy/hermes-agent-or-openclaw-alternative-wit) — Self-Hosted Hermes AI Agent for Telegram, Discord & Slack

Open this page in a browser: https://railway.com/deploy/outpost
