---
title: "Deploy Repowise"
description: "Codebase intelligence dashboard and MCP server for AI coding agents"
category: "AI/ML"
url: https://railway.com/deploy/repowise
---

# Deploy Repowise

Codebase intelligence dashboard and MCP server for AI coding agents

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

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

- **Creator:** Agaz Self-Host
- **Category:** AI/ML

## Template content

### Repowise https://raw.githubusercontent.com/repowise-dev/repowise/v0.62.0/packages/web/public/repowise-logo.png

- **Source:** https://github.com/aalfath/repowise-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# Deploy and Host Repowise on Railway

Repowise is an open-source (AGPL-3.0) codebase intelligence server. It indexes your Git repositories and gives people a web dashboard with code health scores, generated docs, an architecture graph, git hotspots, ownership and dead-code reports, and gives AI coding agents an MCP server they can query for context, symbols and design decisions.

## About Hosting Repowise

Upstream publishes no container image, so this template builds the official v0.62.0 release (PyPI wheel with hash-locked dependencies and the prebuilt web UI) from a public GitHub repo. One service runs the Repowise API, the Next.js dashboard, the streamable-HTTP MCP server and a Caddy front door that adds a login. Clones, indexes, settings and the SQLite stores live on a volume at `/data`. On every boot the service clones the repositories you list in `REPOWISE_REPOS`, registers them and indexes new ones. An LLM key is optional: without one Repowise builds every analysis layer and a template wiki; with one it writes the wiki with a model and enables chat.

## Common Use Cases

* Give Claude Code, Cursor or Codex a remote MCP server that answers questions about your codebase
* Track code health, hotspots, ownership and dead code across one or more repositories
* Keep generated, searchable documentation and architecture diagrams for a team

## Dependencies for Repowise Hosting

* One or more Git repositories reachable over HTTPS (public, or private with `GIT_TOKEN`)
* Optional: an OpenAI-compatible API key for LLM-written docs and chat

### Deployment Dependencies

* Repowise source and docs: https://github.com/repowise-dev/repowise (release v0.62.0)
* Template repo: https://github.com/aalfath/repowise-railway-template

### Implementation Details

The template deploys one service, **Repowise**, with a volume on `/data`:

| Process | Port | What it does |
|---|---|---|
| Caddy | `$PORT` (public) | Basic auth on the dashboard, bearer token on `/mcp`, health check at `/healthz` |
| Repowise API | 127.0.0.1:7337 | Indexing jobs, REST API, SQLite stores |
| Repowise web UI | 127.0.0.1:3000 | The dashboard |
| Repowise MCP server | 127.0.0.1:7338 | Streamable-HTTP MCP for the first repository |

You are asked for one value: `REPOWISE_REPOS`, the Git URLs to index, separated by spaces or commas (for example `https://github.com/YOUR-ORG/YOUR-REPO`). The dashboard password (`REPOWISE_PASSWORD`, user `admin`) and the MCP bearer token (`REPOWISE_API_KEY`) are generated. Find them under the service's Variables tab.

**After deploy:** open the Railway domain, log in as `admin`, and watch the first index run (a repository of about 150 files takes about 3 minutes on 1 vCPU). To add a repository later, append its URL to `REPOWISE_REPOS` and redeploy. To use an LLM, set `OPENAI_API_KEY` and, if needed, `OPENAI_BASE_URL` and `REPOWISE_MODEL` (any OpenAI-compatible endpoint), or choose another provider in Settings → Models.

**Connect an agent** (Claude Code):

```
claude mcp add --transport http repowise https://YOUR-DOMAIN/mcp --header "Authorization: Bearer YOUR-REPOWISE_API_KEY"
```

**Memory:** with 1 GB (Hobby plan and up) everything runs, including the MCP server and medium repositories. At 0.5 GB (Free and Trial) the dashboard, API and small repositories work, but the start script turns the MCP server off and does not auto-index (press Index in the dashboard). If any process stops, the service exits non-zero and Railway restarts it.

**Updates:** the service builds from the template repo's `main` branch. When a new Repowise version is packaged, Railway shows you an update notice; read the repo's `CHANGELOG.md`, then apply it. Data on the volume is kept.

## Why Deploy Repowise 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 Repowise 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.
- [Weaviate](https://railway.com/deploy/weaviate-1) — Vector database with hybrid search and an API key-protected API
- [Möbius Personal AI OS](https://railway.com/deploy/mobius-v01-personal-ai-os) — Self-hosted AI agent that builds and runs apps for you, with memory.

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