
Deploy Repowise
Codebase intelligence dashboard and MCP server for AI coding agents
Just deployed
/data
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.
Template Content
REPOWISE_REPOS
Git HTTPS URLs to clone and index, separated by spaces or commas, e.g. https://github.com/you/app. Add one later and redeploy.

