Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

groq-multi-env-setup

Skill by jeremylongshore

Configures Groq API access across development, staging, and production. It sets a model, retry count, and logging level per environment, with a separate API key for each. It is for developers who run Groq in more than one environment.

  • Score 80
  • 3k stars
  • MIT
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install groq-multi-env-setup

Built from the published package, never by AI.

git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace /tmp/tons-of-skills-marketplace && mkdir -p ~/.claude/skills && cp -r /tmp/tons-of-skills-marketplace/skills/.curated/groq-multi-env-setup ~/.claude/skills/groq-multi-env-setup

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install groq-multi-env-setup in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This skill sets up the Groq API for development, staging, and production. It uses a single config module that picks a model, retry count, timeout, and logging level based on NODE_ENV. Development uses llama-3.1-8b-instant with verbose logs and one retry. Staging and production use llama-3.3-70b-versatile, with 3 and 5 retries.

Each environment gets its own API key from a suitable source. Development reads a git-ignored .env.local file. Staging uses CI/CD secrets, and production uses a secret manager such as AWS Secrets Manager, GCP Secret Manager, or HashiCorp Vault. The skill also covers Docker Compose profiles, a verify script that does a live round-trip, and rate limit checks through response headers. It is aimed at developers who deploy Groq-based Node.js apps.

Written from the project's SKILL.md and checked against it.

What it can do

  • Environment model selectionPicks the Groq model, retries, and logging level based on NODE_ENV.
  • Config moduleBuilds a config/groq.ts file with a per-environment configs record and key validation.
  • Environment-aware serviceWraps Groq calls, logs only when logging is enabled, and surfaces retry-after on 429 responses.
  • Secret sourcingShows how to load keys from .env.local, CI/CD secrets, or a secret manager per environment.
  • Docker Compose profilesInjects a separate key per environment, using an env var for dev and staging and a Docker secret for prod.
  • Verify scriptRuns scripts/verify-groq-env.ts to print the resolved config and test a live connection.
  • Rate limit inspectionReads x-ratelimit-* response headers to check limits for each key.

What you need

  • Groq account with API keys from console.groq.com
  • Node.js project with the groq-sdk package
  • NODE_ENV set to development, staging, or production
  • Secret store such as GitHub Actions, AWS Secrets Manager, GCP Secret Manager, or HashiCorp Vault

Try asking

  • Set up Groq config for dev, staging, and production in this project
  • Create a config/groq.ts that picks the model by NODE_ENV
  • Write a verify script that checks my Groq key for production

Good to know

  • The source does not describe any tools beyond the setup files and scripts it generates.
  • Development can hit free tier rate limits, according to the error table.
  • Deployment pipeline steps are handled by a separate groq-deploy-integration skill.

Security check

B
  • Allowed to use Write, Edit without limitsIn SKILL.md

Checked automatically: skills/.curated/groq-multi-env-setup/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

Allowed tools: ReadWriteEditBash(aws:*)Bash(gcloud:*)Bash(vault:*)

  • SKILL.md7 KB
  • references/implementation.md5 KB
  • references/secrets-and-deployment.md2 KB

Alternatives to groq-multi-env-setup

All alternatives →

Compare with agent-reproduce-align, google_contacts or m06-error-handling

groq-multi-env-setup: common questions

Which Groq model does the skill use in each environment?

Development uses llama-3.1-8b-instant. Staging and production both use llama-3.3-70b-versatile, according to the environment table.

How does it keep production keys out of development?

It recommends separate Groq organizations per environment. Dev reads a git-ignored .env.local file, and production pulls from a secret manager.

How do I check that an environment is set up correctly?

Run the verify-groq-env.ts script with the target NODE_ENV. It prints the resolved model and retries and runs a live connection test.

How do I install groq-multi-env-setup?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is groq-multi-env-setup free?

The code is published under the MIT licence. The service it connects to may have its own pricing.

Is groq-multi-env-setup safe to use?

It scores 80 of 100. Grades: maintenance A, licence A, quality A. Security check: grade B (allowed to use write, edit without limits). Review the code before you install. How grades work.

What are alternatives to groq-multi-env-setup?

Similar skills: agent-reproduce-align, google_contacts, m06-error-handling, caveman.

groq-multi-env-setup Install

Add to stack

Loading.