groq-multi-env-setup
Installation
SKILL.md
Groq Multi-Environment Setup
Overview
Configure Groq API access across development, staging, and production with the right model, rate limit strategy, and secret management per environment. Key insight: use llama-3.1-8b-instant in development (cheapest, fastest), match production model in staging, and harden production with retries and fallbacks.
Prerequisites
- A Groq account with API keys from console.groq.com/keys — ideally a separate key (or organization) per environment.
- Node project with the
groq-sdkpackage installed (npm install groq-sdk). NODE_ENVset per environment (development/staging/production).- A secret store for staging/production keys: GitHub Actions secrets, AWS Secrets Manager, GCP Secret Manager, or HashiCorp Vault.
Environment Strategy
| Environment | API Key Source | Default Model | Retry | Logging |
|---|---|---|---|---|
| Development | .env.local |
llama-3.1-8b-instant |
1 | Verbose |
| Staging | CI/CD secrets | llama-3.3-70b-versatile |
3 | Standard |
| Production | Secret manager | llama-3.3-70b-versatile |
5 | Structured |