Deploy Codra
Self-hosted AI code review engine for GitHub pull requests
Just deployed
Redis
Just deployed
/data
Just deployed
/var/lib/postgresql/data
Deploy and Host Codra on Railway
Codra is an open-source, queue-backed AI code review engine for GitHub pull requests. This template deploys automated PR review workers, a built-in React dashboard, PostgreSQL storage, and Redis (BullMQ) queues.
About Hosting Codra
The template provisions three services: Postgres (review history, repo config overrides, encrypted LLM credentials), Redis (BullMQ review queues and dashboard session cache), and Codra itself (API, dashboard, and review workers in one container). Database migrations run automatically as a pre-deploy command before traffic is routed.
Common Use Cases
- Automated AI review of every GitHub pull request
- Self-hosted code review with your own LLM provider keys
- Team dashboard for review history and per-repository configuration
Dependencies for Codra Hosting
- A GitHub App (private key, App ID, webhook secret)
- A GitHub OAuth App (client ID and secret) for dashboard login
- An LLM provider key (configured in the dashboard after deploy)
Deployment Dependencies
Post-Deployment Steps
- Copy the generated Railway domain from the Codra service (
https://.up.railway.app). - In your GitHub App settings, set:
- Homepage URL:
https:// - Webhook URL:
https:///webhook - Callback URL:
https:///auth/github/callback
- Homepage URL:
- Log in to the Codra dashboard via GitHub OAuth.
Why Deploy Codra 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 Codra 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
GITHUB_APP_ID
Numeric GitHub App ID from your GitHub App's developer settings.
APP_PRIVATE_KEY
GitHub App private key in PEM format (-----BEGIN RSA PRIVATE KEY----- or -----BEGIN PRIVATE KEY-----).
GITHUB_CLIENT_ID
GitHub OAuth App Client ID used for dashboard authentication.
GITHUB_CLIENT_SECRET
GitHub OAuth App Client Secret used for dashboard authentication.
DASHBOARD_ALLOWED_USERS
Comma-separated GitHub usernames allowed to access the dashboard (e.g. alice,bob).
GITHUB_APP_WEBHOOK_SECRET
Webhook secret configured on your GitHub App.
Redis
redis:8.2
