Recommended models
We recommend high-context coding and reasoning models with strong instruction-following capabilities:For the most up-to-date model identifiers and context limits, consult the Groq Models documentation.
Creating an API Key
- Navigate to the Groq Console.
- Sign in or create an account.
- Select API Keys in the left sidebar navigation.
- Click Create API Key, label it
scandrix-code-review, and copy the secret key (gsk_...).
Configuration options
You can configure Groq either in the cloud dashboard, in repository configuration, or in self-hosted backend environment variables.Option 1: Via the ScanDrix Dashboard (Recommended for SaaS)
- Open the ScanDrix dashboard and navigate to Settings → AI Providers.
- Click Add Provider and select Groq.
- Paste your Groq API Key (
gsk_...). - Select
llama-3.3-70b-versatileas your primary review model. - Click Test Connection to send a synthetic health ping.
Option 2: Via Repository Config (.scandrix.yaml)
To enforce Groq as the review engine for a specific repository:
Option 3: Via Self-Hosted Backend (.env)
If deploying the self-hosted ScanDrix Go backend, configure your environment file:Production Reverse Proxy Setup
For self-hosted instances with external Git webhooks, configure Nginx to forward requests to the Next.js frontend (port 3000) and the Go backend API (port 8080):Verifying Groq integration
Verify that Groq is responding to pull request analysis requests:Troubleshooting
Invalid API Key (HTTP 401)
Invalid API Key (HTTP 401)
- Ensure your key begins with
gsk_. - Verify that the key has not been revoked or expired in Groq Console.
- Ensure there are no surrounding whitespace or quote characters in your environment variable.
Model Not Found (HTTP 404)
Model Not Found (HTTP 404)
- Check for spelling mistakes (e.g.
llama-3.3-70b-versatilevsllama-3.3-70b). - Verify whether Groq has updated or retired the model slug on their active models page.
Rate Limits & Quota Exhaustion (HTTP 429)
Rate Limits & Quota Exhaustion (HTTP 429)
- Groq applies requests-per-minute (RPM) and tokens-per-minute (TPM) limits based on your tier.
- Check your current usage at Groq Rate Limits.
- ScanDrix automatically retries with exponential backoff on HTTP 429, but persistent spikes require upgrading your Groq tier or setting up a secondary fallback provider.
