How Groq works
Groq Cloud provides fast LLM inference with OpenAI-compatible APIs. Built for speed and simplicity, Groq offers ultra-fast inference for popular models like Llama, Deepseek, and more. The platform is designed to be simple to integrate and easy to scale, making it perfect for production applications.Recommended Models
We recommend good coding models with high context windows and fast inference.For the most updated information, please visit Groq’s models page.
Model | Context Window | Speed |
---|---|---|
Llama 3.3 70B Versatile recommended | ~128k tokens | Ultra Fast |
Deepseek R1 Distill Llama 70B | ~128k tokens | Ultra Fast |
Llama 3.1 70B Versatile | ~128k tokens | Ultra Fast |
Creating API Key
Groq Cloud Account is required to create API Key.
- Go to Groq Console
- Sign in or create your account
- Navigate to “API Keys” in the top navigation
- Click on “Create API Key” button
- Give it a name like ‘Kodus’ or any descriptive name
- Copy the API Key and save it somewhere safe
Only team owners or users with the developer role may create or manage API keys in Groq.
How to use
System Requirements
Recommended Hardware
Recommended Hardware
- CPU: 2+ cores - RAM: 8GB+ - Storage: 60GB+ free space
Required Software
Required Software
- Docker (latest stable version) - Node.js (latest LTS version) - Yarn or NPM (latest stable version) - Domain name or fixed IP (for external deployments)
Required Ports
Required Ports
- 3000: Kodus Web App - 3001: Orchestrator API - 5672, 15672: RabbitMQ - 5432: PostgreSQL - 27017: MongoDB
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.
Domain Name Setup (Optional)
If you're planning to integrate Kodus with cloud-based Git providers (GitHub, GitLab, or Bitbucket), you'll need public-facing URLs for both the Kodus Web App and its API. This allows your server to receive webhooks for proper Code Review functionality and ensures correct application behavior. We recommend setting up two subdomains:- One for the Web Application, e.g.,
kodus-web.yourdomain.com
. - One for the API, e.g.,
kodus-api.yourdomain.com
.
Note: If you're only connecting to self-hosted Git tools on your network and do not require public access or webhooks, you might be able to use a simpler setup, but this guide focuses on public-facing deployments.
Get the Kodus Installer
Clone our installer repository:Configure Environment Variables
First, copy the example environment file:- 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)
- CODE_MANAGEMENT_SECRET (use openssl rand -hex 32)
- CODE_MANAGEMENT_WEBHOOK_TOKEN (use openssl rand -base64 32 | tr -d '=' | tr '/+' '_-')
Never commit your
.env
file to version control. Keep your API keys and
database credentials secure..env
file with the following required variables:
Configure Groq in Environment File
Edit your.env
file and configure the core settings. For LLM Integration, use Groq in Fixed Mode:
Fixed Mode is ideal for Groq because it provides OpenAI-compatible APIs with ultra-fast inference. This gives you the best performance with simple configuration.
Run the Installation Script
Looking for more control? Check out our docker-compose
file
for manual deployment options.
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
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.
Set Up Reverse Proxy (For Production)
For webhooks and external access, configure Nginx:Verify Groq Integration
Além da verificação básica da instalação, confirme que o Groq está funcionando:For detailed information about SSL setup, monitoring, and advanced configurations, see our complete deployment guide.
Troubleshooting
API Key Issues
API Key Issues
- Verify your API key is correct and active in Groq Console
- Check if you have sufficient credits or quota in your Groq account
- Ensure there are no extra spaces in your
.env
file
Model Not Found
Model Not Found
- Check if the model name is correctly spelled in your configuration
- Verify the model is available in Groq’s current model list
- Try with a different model from our recommended list
Connection Errors
Connection Errors
- Verify your server has internet access to reach
api.groq.com
- Check if there are any firewall restrictions
- Review the orchestrator logs for detailed error messages
Rate Limiting
Rate Limiting
- Groq has rate limits based on your plan
- Check the Groq rate limits documentation
- Consider upgrading your plan for higher limits