Generic Virtual Machine
Deploy Kodus on a Generic Virtual Machine.
System Requirements
Internet access is only required if you plan to connect with cloud-based Git services like GitHub, GitLab, or Bitbucket. For self-hosted Git tools within your network, external internet access is optional.
Deployment Process
Need help?
Schedule a call with our founder to get help with your deployment.
1. Domain Name Setup (Optional)
If you’re planning to integrate Kodus with cloud-based Git providers (GitHub, GitLab, or Bitbucket), you’ll need a domain name or fixed IP address. This allows your server to receive webhooks for proper Code Review functionality.
We recommend using a subdomain like kodus.yourdomain.com
. After acquiring your domain, configure the DNS records to point to your server’s IP address.
Note: If you’re only connecting to self-hosted Git tools on your network, you can skip this step.
2. Get the Kodus Installer
Clone our installer repository:
3. Configure Environment Variables
First, copy the example environment file:
Generate secure keys for the required environment variables using:
You’ll need to generate values for these security keys:
- WEB_NEXTAUTH_SECRET (use openssl rand -base64 32)
- WEB_JWT_SECRET_KEY (use openssl rand -base64 32)
- API_CRYPTO_KEY (use openssl rand -hex 32)
- API_JWT_SECRET (use openssl rand -base64 32)
- API_JWT_REFRESHSECRET (use openssl rand -base64 32)
Never commit your .env
file to version control. Keep your API keys and
database credentials secure.
Then update your .env
file with the following required variables:
LLM Integration Settings
Configure your AI providers by adding the following variables:
LLM API Keys Resources
When configuring your environment variables, you’ll need API keys for AI providers. Use these official resources:
Git Provider Configuration
Choose and configure your preferred Git provider. For basic token-based authentication, you only need to set the webhook URL:
For token-based authentication, you only need to configure the webhook URL. The other variables are required only if you want to use OAuth for authentication.
Never commit your .env
file to version control. Keep your API keys and
database credentials secure.
4. Run the Installation Script
Looking for more control? Check out our docker-compose file for manual deployment options.
Set the proper permissions for the installation script:
Run the script:
.env variables that you need to change
KODUS_ORCHESTRATOR_API_URL
: The URL of the Kodus Orchestrator API.KODUS_WEB_APP_URL
: The URL of the Kodus Web Application.KODUS_GIT_PROVIDER
: The Git provider you want to use.KODUS_GIT_PROVIDER_API_KEY
: The API key for the Git provider.
What the Installer Does
Our installer automates several important steps:
- Verifies Docker installation
- Creates networks for Kodus services
- Clones repositories and configures environment files
- Runs docker-compose to start all services
- Executes database migrations
- Seeds initial data
🎉 Success! When complete, Kodus Orchestrator API and Web Application should be running on your machine.
You can verify your installation by visiting http://localhost:3000
- you should see the Kodus Web Application interface.
Code Review features will not work yet unless you complete the reverse proxy setup. Without this configuration, external Git providers cannot send webhooks to your instance.
Setting Up a Reverse Proxy
To make your Kodus instance accessible from external systems (required for Code Review webhooks), you’ll need to configure a reverse proxy with Nginx.
Here’s a sample Nginx configuration:
Save this configuration to /etc/nginx/sites-available/kodus
and create a symbolic link to enable it:
Post-Installation Guide
After successfully deploying Kodus on your VM, follow these steps to get the most out of your installation:
Enabling SSL (Recommended)
For production deployments, we strongly recommend setting up SSL with Let’s Encrypt:
This will automatically configure your Nginx setup to use HTTPS and redirect HTTP traffic.
Completing Initial Setup
Once you access the web interface for the first time, you’ll need to:
- Create your admin account - This will be the first user with full system access
- Configure your Git provider - Connect GitHub, GitLab, or Bitbucket following the on-screen instructions
- Select repositories for analysis - Choose which code repositories Kody will review
For detailed steps on the initial configuration process, refer to our Getting Started Guide.
Updating Kodus
To update your Kodus installation to the latest version:
Monitoring Your Installation
You can monitor your Kodus installation using the following tools:
Accessing Service Logs
When troubleshooting or monitoring your Kodus installation, you may need to access service logs:
Troubleshooting Common Issues
Get help with our community
Join our community to get help with your deployment.