Self-hosted Bito AI Code Review Agent for Amazon EKS.
Read the EKS deployment guide »
Releases
·
Explore the docs
·
Learn more
Looking for the GitHub Action or the command-line Code Review Agent? See gitbito/CodeReviewAgent. That repository is MIT-licensed; this one is proprietary (see LICENSE.md).
Table of contents
Bito's AI Code Review Agent reviews your pull requests with the full context of your codebase and posts its comments in your Git provider. This repository delivers it as a Kustomize package for your own Amazon EKS cluster.
You keep your settings in an overlay in your own Git repository, store credentials in AWS Secrets Manager, and give Bito access to Amazon Bedrock through an IAM role. No access key or password is ever written to your repository.
Each release carries the package. The EKS deployment guide walks through every step.
Everything runs in one namespace, bito. To use another one, see What you deploy.
| Workload | Kind | Role |
|---|---|---|
web-ui |
Deployment | The Bito web app. It's the only service you expose: it forwards API calls to the other services. |
integration-service |
Deployment | Connects to your Git provider, receives its webhooks, and starts a review for each pull request |
cra |
Deployment | Coordinates the code reviews |
llm-gateway |
Deployment | Sends every model request to Amazon Bedrock. The only pod that needs AWS access. |
auth-service |
Deployment | Sign-in, users and the license |
analytics, adaptive-learning |
Deployments | Review metrics, and learning from your team's feedback |
embeddings-ollama |
Deployment | A small text-embedding model, run in the cluster, that groups similar review comments |
platform-chart-mysql, -redis, -kafka, -qdrant |
StatefulSets | MySQL 8.4, Redis 7.2, Kafka 4.3 and Qdrant 1.15, included in the package |
platform-chart-mysql-init |
Job | Sets up the databases and accounts. Runs on every deploy and is safe to repeat. |
cra-review-<id> |
Job, one per review | Reviews one pull request, posts the comments, and exits |
Decide these before you start. The example overlay in the package is already set up for the default of each.
| Decision | Options | Default |
|---|---|---|
| Bedrock identity | EKS Pod Identity or IRSA | EKS Pod Identity |
| Secrets | AWS Secrets Manager, or Kubernetes Secrets you create yourself | Secrets Manager |
| Ingress | Your ingress controller or your own route | Your ingress controller |
| License | Fetched from your Bito License Server, or activated in the web app with a key from Bito | Activated in the web app |
| First administrator | A named address, or the first person to sign in with an emailed code | A named address |
| Email service | None, your SMTP relay, or SendGrid | None |
| Images | Docker Hub, or your own registry | Docker Hub |
Put these in place before the first deploy. The guide's Before you begin says what happens if each one is missing.
| Item | Requirement |
|---|---|
| Cluster | Amazon EKS |
| Nodes | amd64 (x86-64) or arm64 (Graviton). Every image is published for both; Bito has validated this release on amd64. |
| Capacity | See Cluster capacity for the services and Review capacity for the reviews |
| Pod Security | The namespace must allow the baseline level |
| Git provider | GitHub.com or GitHub Enterprise Server, GitLab.com or GitLab self-managed, Bitbucket Cloud or Bitbucket Data Center |
The minimum for the Bito services and their databases, which run all the time. Reviews need capacity of their own: see Review capacity.
| vCPU | Memory | Block storage (EBS gp3) |
Shared storage (EFS) | Smallest node size |
|---|---|---|---|---|
| 8 | 32 GiB | 150 GiB | 100 GiB | 4 vCPU, 8 GiB |
Notes
- Storage: The package requests 110 GiB of block storage and 41 GiB of shared storage by default. The rest is headroom.
- Database volumes: Set their sizes before the first deploy. They can't be changed afterwards. See Volume sizes.
Each review runs as its own Kubernetes Job and reserves 2 vCPU and 4 GiB. This capacity comes on top of the cluster minimum. Size it by your pull request volume, and add nodes to add capacity.
| Review node | Reviews at once | Reviews per hour | Minimum node disk |
|---|---|---|---|
| 8 vCPU, 16 GiB | 1 to 4 | 60 to 100 | 100 GiB SSD |
| 16 vCPU, 32 GiB (suggested start) | 1 to 10 | 120 to 200 | 200 GiB SSD |
Notes
- Sizing: Divide the reviews in your busiest hour by the Reviews per hour of one node. Example: 500 reviews in the busiest hour need 3 to 5 nodes of 16 vCPU, 32 GiB.
- Reviews at once: The default reservation fits 3 reviews on 8 vCPU and 6 on 16 vCPU. The high end of the range needs a smaller reservation: see Review size.
- Reviews per hour: Large repositories sit at the low end of the range and small ones at the high end.
- At full capacity: Further reviews wait and start as capacity frees up.
- Scale out: For more reviews at once, add nodes instead of a larger node. Capacity adds up across nodes.
- Minimum node disk: The disk that a node needs changes with your repositories. Estimate it as repository size × reviews at once × 1.25. Use an SSD with at least 3,000 IOPS and 125 MB/s.
- Placement: By default a review runs on any node. Bito validated this release with the reviews on their own node group: see Node placement.
| Tool | Used for |
|---|---|
kubectl 1.31 or later |
Building and applying the overlay |
| bash | The package's scripts (bash 3.2, the macOS default, works) |
| AWS CLI v2 | The IAM roles, the Pod Identity association and the secret |
curl, tar |
Downloading and unpacking the package |
jq |
Reading the license status, and the admin recovery script |
| Needed when you use | Install or create |
|---|---|
| Every install | Permission to create Roles and RoleBindings in the namespace |
| Secrets Manager | External Secrets Operator 0.16.0 or later |
| EKS Pod Identity | The EKS Pod Identity Agent add-on |
| IRSA (for Bedrock, or for the External Secrets Operator) | An IAM OIDC provider for the cluster. Without one, use EKS Pod Identity |
| Every install | The Amazon EFS CSI driver and an EFS file system, and the Amazon EBS CSI driver |
| Every install | An ingress controller or your own route, a DNS name and a certificate |
| From | To |
|---|---|
| Nodes | Docker Hub, unless you copy the images to your own registry |
llm-gateway |
The Bedrock runtime endpoint of your Region, and the EKS Pod Identity Agent or AWS STS |
| External Secrets Operator | AWS STS and Secrets Manager in your Region |
integration-service and the review Jobs |
Your Git server |
Each step links to the full instructions in the EKS deployment guide.
Download the package from this repository's Releases and unpack it into your Git repository. Your Bito contact gives you the version.
VERSION=<VERSION>
BASE=https://github.com/gitbito/CodeReviewAgent-Kustomize/releases/download/$VERSION
curl -fLO $BASE/bito-code-review-agent-kustomize-$VERSION.tar.gz
tar -xzf bito-code-review-agent-kustomize-$VERSION.tar.gz
cd bito-code-review-agent-kustomize-$VERSIONMore in Step 1.
Copy the example overlay, then set your host and Region in its config.env and onprem-config.json.
cp -r kustomize/overlays/customer-example kustomize/overlays/<SITE>More in Step 2.
Generate the secret's values, add the ones only you have, and create the secret bito-cra/platform in AWS Secrets Manager. Then set the role the External Secrets Operator uses in your overlay.
scripts/gen-secrets.sh --aws-secret bito-cra-platform.jsonClusters without an IAM OIDC provider, an existing ClusterSecretStore, and Secrets you create yourself are covered in Step 3.
Create an EFS storage class efs-sc for the shared volumes and an EBS storage class gp3 for the databases. See Step 4.
Route https://<HOST> to the web-ui Service on port 80, with your ingress controller or your own route, and create the DNS record and certificate. See Step 5.
Create the IAM role llm-gateway uses for Amazon Bedrock, with EKS Pod Identity or IRSA. See Step 6.
Set the license and the first administrator in config.env before the first deploy, and optionally the email service, models, node placement and resources. See Step 7.
kubectl kustomize kustomize/overlays/<SITE> | grep -nE 'CHANGE_ME|<[A-Za-z_-]+>'No output means every placeholder is filled in. See Step 8.
scripts/kustomize-apply.sh kustomize/overlays/<SITE>The script checks the overlay, applies it, and waits until every service is running. See Step 9.
kubectl -n bito get externalsecret
kubectl -n bito get pods
curl -sS https://<HOST>/auth/api/license/status | jq '{state, usable, reason, source, workspace_id, admin_email}'With Secrets Manager, all six ExternalSecrets are synced. Every pod is running. See Step 10.
Open https://<HOST>, license the installation (Licensing), sign in as the administrator, connect your Git provider (GitHub, GitLab or Bitbucket, cloud or self-hosted), and open a pull request to see your first review. See Step 11.
Your installation is licensed for one Bito workspace. It gets its license in one of two ways:
| Option | How it works |
|---|---|
| From your Bito License Server | The installation fetches its license when it starts. Install the Bito License Server first. |
| Activated in the web app (default) | The license screen shows an activation code. Send it to your Bito contact and paste the key they send back. |
The settings go in your overlay's config.env:
| Setting | Value |
|---|---|
licenseWorkspaceId |
Your Bito workspace ID. With a license server, the one it's licensed for, and the same as Bito AI Architect's if you run it. |
licenseEnvironment |
production |
licenseServerUrl |
Your license server's address, for example https://license.<YOUR_DOMAIN>. Empty: activated in the web app. |
licenseServerAllowHttp |
true (default) accepts an http:// address; false accepts only https:// |
With a license server, put its access key in the Secrets Manager secret as license-server-access-key. Each installation uses one slot of the license's install limit.
This prints true once the installation is licensed:
curl -sS https://<HOST>/auth/api/license/status | jq .usableMore in License.
The package pulls its images from Docker Hub: Bito's from docker.io/bitoai, including ollama-nomic (Ollama with the embeddings model inside), plus MySQL, Redis, Apache Kafka, Qdrant and busybox. The package's VERSION file lists each one with its tag. To run them from your own registry, copy them with all their architectures and add an images: entry for each to your overlay. See Container images.
| Task | How |
|---|---|
| Change a setting | Edit config.env or a patch and run scripts/kustomize-apply.sh again |
| Rotate a secret | Change it in Secrets Manager, copy it to the cluster, and restart what uses it |
| Restore administrator access | scripts/admin-recovery.sh --email <address> kustomize/overlays/<SITE> |
| Upgrade | Unpack the new package, copy your overlay into it, apply what CHANGES.md lists, and deploy |
Renewing the license, backups and uninstalling are in Day-2 operations.
kubectl -n bito get pods
kubectl -n bito get externalsecret
kubectl -n bito logs deploy/llm-gateway | grep -E 'bedrock credentials mode|provider registered'
curl -sS https://<HOST>/auth/api/license/status | jq .
kubectl -n bito get jobs -wThe guide's Troubleshooting lists each symptom with its likely cause and what to check.
| Area | Limitation |
|---|---|
| Node architecture | The images are published for arm64 (Graviton), but Bito has validated this release on amd64 nodes only. |
| Pod Security | The pods meet the baseline level, not restricted. |
For more about the Code Review Agent, see our documentation. For help, email us at [email protected].