Deploy ArcticWorks CodePeer
Self-hosted AI code reviewer for GitHub pull requests.
Just deployed
/var/lib/postgresql/data
arcticworks-codepeer
Just deployed
Deploy and Host ArcticWorks CodePeer on Railway
ArcticWorks CodePeer is a self-hosted AI code reviewer for GitHub. Install it as your own GitHub App and it watches every repository you give it access to: on each pull request it fetches the diff, runs a team of specialist LLM agents over it, and posts a review with a summary, severity-tagged inline comments, and one-click fix suggestions.
About Hosting ArcticWorks CodePeer
CodePeer is a headless Go server with no web UI. It needs two things to run: a Postgres database, which stores installations, reviews, learning signals, and the job queue, and a public HTTPS endpoint that GitHub can deliver webhooks to. This template provisions both, wires DATABASE_URL between them, and exposes the bot on a Railway domain. Database migrations run automatically on startup, and health endpoints at /healthz and /readyz report liveness and database reachability. You supply your own GitHub App credentials and DeepSeek API key at deploy time, so your code and your secrets stay in infrastructure you control.
Common Use Cases
- Automatic review coverage on every pull request across an organization, with findings posted as native GitHub review comments and
suggestionblocks - A second pair of eyes for small teams and solo maintainers who have no one else to review their code
- Repository-level policy enforcement, using per-repo
.codepeer.ymlrules and custom instructions to focus reviews on security, performance, or house style
Dependencies for ArcticWorks CodePeer Hosting
- A PostgreSQL database (provisioned by this template)
- Your own GitHub App: App ID, private key, and webhook secret
- A DeepSeek API key for the review model
Implementation Details
Create the GitHub App before deploying. It needs read and write on Pull requests, Issues, and Checks, read on Contents, and the pull_request, push, issue_comment, installation, and installation_repositories events. Generate a private key and paste it into GITHUB_APP_PRIVATE_KEY — the PEM works base64-encoded, which keeps it to a single line.
After the deploy, copy the service's Railway domain and set the App's webhook URL to https:///webhook, using the GITHUB_WEBHOOK_SECRET value the template generated. Then install the App on the account, organization, or repositories you want reviewed.
Why Deploy ArcticWorks CodePeer 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 ArcticWorks CodePeer 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
arcticworks-codepeer
ArcticWorks-Software-Company/arcticworks-codepeerLLM_API_KEY
DeepSeek API key. Every pull request review is run through this key.
GITHUB_APP_ID
App ID from your GitHub App's settings page.
GITHUB_APP_PRIVATE_KEY
Your GitHub App's private key. Paste the PEM contents, or the PEM base64-encoded to keep it on one line.
