Skip to main content
Groq Cloud provides ultra-fast LLM inference using its custom Language Processing Units (LPUs) with OpenAI-compatible APIs. Combining Groq with ScanDrix’s Tree-sitter AST engine gives engineering teams deep semantic code reviews with virtually zero waiting time. 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

A verified Groq Cloud account is required to generate API credentials.
  1. Navigate to the Groq Console.
  2. Sign in or create an account.
  3. Select API Keys in the left sidebar navigation.
  4. 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.
  1. Open the ScanDrix dashboard and navigate to Settings → AI Providers.
  2. Click Add Provider and select Groq.
  3. Paste your Groq API Key (gsk_...).
  4. Select llama-3.3-70b-versatile as your primary review model.
  5. 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:
Expected log output:

Troubleshooting

  • 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.
  • Check for spelling mistakes (e.g. llama-3.3-70b-versatile vs llama-3.3-70b).
  • Verify whether Groq has updated or retired the model slug on their active models page.
  • 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.