Deploy
Self-hosting
Run MergeHarbor in your own environment, on Kubernetes or a single VM, including air-gapped networks. Components, requirements and sizing.
Self-hosted MergeHarbor runs entirely in your environment: the console, the API, background workers, the review agent and the database. Your code, reviews and audit log stay on your infrastructure. Reviews call only the model providers you configure, which can be models served inside your own network.
You need a license key to run reviews; see Self-hosted licensing. Contact sales for a license, an evaluation key, or access to the release images.
Install options
| Option | Best for | Guide |
|---|---|---|
| Kubernetes with Helm | Production on EKS, GKE, AKS, OpenShift or any conformant cluster, with your managed PostgreSQL | Helm |
| Docker Compose on one VM | Small teams, on-premises servers, evaluations | Docker Compose |
| AWS with Terraform | A new AWS account: networking, EKS, Aurora PostgreSQL, S3 and KMS, then the Helm chart | Helm → AWS |
Both the Helm chart and the Compose bundle also install in networks with no internet access. See Air-gapped install.
Components
| Component | Role |
|---|---|
| Console | The web app (static files served by nginx) |
| API | Console API, sign-in, webhooks from your code hosts, SCIM |
| Workers | Indexing and reviews; each keeps repository mirrors on local disk |
| Review agent | Calls your model providers. It never connects to the database. |
| PostgreSQL 15+ with pgvector | Organizations, reviews, findings, audit log, job queues and code search vectors |
| Embeddings endpoint | Turns code into vectors for search: any OpenAI-compatible /v1/embeddings server. The Compose bundle includes one. |
| Object storage (optional) | Review archives, proof-run files, exports, compliance reports and operation files, in any S3-compatible store |
For very large estates, repositories are spread across cells, each with its own database and workers, so capacity grows by adding cells.
Object storage permissions
When object storage is on, MergeHarbor writes only under these prefixes of the bucket. Give
its credentials s3:PutObject, s3:GetObject and s3:DeleteObject on each
(<bucket>/<prefix>/*) and s3:ListBucket on the bucket:
| Prefix | Holds |
|---|---|
reviews/ |
Review archives |
sandbox/ |
Proof-run and coding-task sources, logs and artifacts |
exports/ |
Organization exports |
compliance/ |
Compliance reports for auditors |
insights-exports/ |
Insights exports |
operations/ |
Operation input and result files |
If a prefix is missing from the policy, the jobs that write there fail. People see a plain message with a reference, and your logs show the storage error.
Requirements
- A code host: GitHub (cloud or Enterprise Server), GitLab, Bitbucket, Azure DevOps, Gitea or Perforce. The code host must be able to reach MergeHarbor’s webhook URL.
- A model provider: the Anthropic API, Amazon Bedrock, or your own OpenAI-compatible server (vLLM, Ollama, TGI). Only providers you configure are ever called.
- A host name and a TLS certificate for the console and API.
- An SMTP relay for invitations and notifications (optional, but recommended).
- A license key from MergeHarbor.
Sizing
One setting sizes the installation: profile in the Helm chart and RESOURCE_PROFILE in the Compose bundle. You can still override any single value.
| Profile | Typical team | Docker Compose VM | Kubernetes (all MergeHarbor pods) | PostgreSQL |
|---|---|---|---|---|
small |
Up to about 50 developers | 4 vCPU, 8 GB RAM, 50 GB disk | One replica each; about 2 vCPU and 6 GB requested | 2 vCPU, 4 GB |
medium |
Up to about 500 developers | 8 vCPU, 16 GB RAM, 200 GB disk | Two or more replicas with autoscaling | 4 vCPU, 16 GB |
large |
Thousands of developers | Use Kubernetes | Three or more replicas; workers sized for large monorepos | 8+ vCPU, 32+ GB, read replica |
Worker disk holds repository mirrors. Plan about twice the size of the repositories you connect. Mirrors and search indexes can be rebuilt from your code hosts, so only PostgreSQL needs backups.
Repositories are indexed by recent activity: those with a pull request or default-branch push in the last INDEX_HOT_DAYS (30) days right away, those pushed in the last INDEX_WARM_DAYS (180) in the background, older ones on their next push or pull request. A repository inactive for INDEX_COLD_EVICT_DAYS (14) days gives back its mirror and search index on the worker, and after INDEX_COLD_DROP_EMBEDDINGS_DAYS (180) its semantic vectors (rebuilt when it is active again). Set INDEX_ALL_REPOS=true to index and keep everything; organizations can also choose this under Repositories. Bursts of pushes are indexed once per INDEX_PUSH_COALESCE (90s).
For disk, memory, PostgreSQL and vector storage per 1,000 repositories, the choice of embedder, and when to add Qdrant or a cell, see the Sizing guide.
Security checklist
- Keep secrets in your secret manager or Kubernetes Secrets, never in values files.
- Terminate TLS in front of the API and console.
- Configure single sign-on and keep the break-glass
ADMIN_TOKENdisabled. - Turn on the chart’s egress network policy and list the private ranges MergeHarbor needs.
- Stream the audit log to your SIEM (Settings → Audit log → Streaming).
- Set
AIR_GAPPED=trueif MergeHarbor must never reach the internet. Every outbound call is then limited to private addresses.
MergeHarbor sends no telemetry and makes no update checks, in any mode. Traces are exported only when you set an OpenTelemetry endpoint.