GR

groq-deploy-integration

Recipes for deploying Groq-based applications to production, including edge function handlers and container configuration.

Install

mkdir -p .claude/skills/groq-deploy-integration && curl -L -o skill.zip "https://agentskills.codes/api/skills/download/5978" && unzip -o skill.zip -d .claude/skills/groq-deploy-integration && rm skill.zip

Installs to .claude/skills/groq-deploy-integration

Activation

This is the description your AI agent reads to decide when to run this skill — the better it matches your request, the more reliably it fires.

Deploy Groq integrations to Vercel, Cloud Run, and containerized platforms.
75 charsno explicit “when” trigger
Intermediate

Key capabilities

  • Deploy Groq applications to Vercel Edge
  • Deploy Groq applications to Cloud Run
  • Deploy Groq applications to Docker containers
  • Configure platform-specific secrets for Groq API keys
  • Add health checks for Groq integrations

How it works

The skill provides recipes for writing API handlers, storing secrets securely on platforms like Vercel or Cloud Run, deploying the application, and adding a health check endpoint.

Inputs & outputs

You give it
Groq-powered application code, Groq API key
You get back
Deployed Groq inference endpoint, registered secret, health check endpoint, warm serverless configuration

When to use groq-deploy-integration

  • Deploying Groq-powered apps to Vercel Edge
  • Containerizing AI applications for Cloud Run
  • Configuring production environment variables for Groq
  • Setting up streaming server-side handlers for AI models

About this skill

Groq Deploy Integration

Overview

Deploy applications using Groq's inference API to Vercel Edge, Cloud Run, Docker, and other platforms. Groq's sub-200ms latency makes it ideal for edge deployments and real-time applications.

This SKILL.md is the high-level workflow. Every platform recipe — full source for the Vercel Edge Function, Dockerfile, Cloud Run command, Express health-check server, and Vercel AI SDK handler — lives verbatim in references/implementation.md. End-to-end walkthroughs that chain those recipes are in references/examples.md.

Prerequisites

  • Groq API key stored in GROQ_API_KEY
  • Application using groq-sdk (or @ai-sdk/groq for the Vercel AI SDK path)
  • Platform CLI installed (vercel, docker, or gcloud)

Instructions

Pick the deployment target, then follow its recipe in references/implementation.md.

  1. Write the handler. For Vercel Edge, create app/api/chat/route.ts with export const runtime = "edge" and stream Server-Sent Events when the request asks for them; otherwise return a JSON completion. See Step 1 in references/implementation.md.
  2. Store the secret. Never bake GROQ_API_KEY into an image. Use the platform's secret store — see the Environment Variable Config table below.
  3. Deploy. vercel --prod for Vercel (Step 2); build the Dockerfile (Step 3) and gcloud run deploy --source . for Cloud Run (Step 4) — all in references/implementation.md.
  4. Add a health check. The Express server (Step 5) exposes /health that pings Groq with the cheapest model (llama-3.1-8b-instant, max_tokens: 1) and reports latency, so orchestrators can probe liveness cheaply.
  5. Keep instances warm. On serverless platforms set min-instances=1 to keep cold-start latency off the request path.

The essential Vercel Edge skeleton looks like this — the full streaming body is in the reference:

// app/api/chat/route.ts
import Groq from "groq-sdk";
export const runtime = "edge";

export async function POST(req: Request) {
  const groq = new Groq({ apiKey: process.env.GROQ_API_KEY! });
  const { messages } = await req.json();
  const completion = await groq.chat.completions.create({
    model: "llama-3.3-70b-versatile",
    messages,
    max_tokens: 2048,
  });
  return Response.json(completion);
}

Environment Variable Config

PlatformCommand
Vercelvercel env add GROQ_API_KEY production
Cloud Rungcloud secrets create groq-api-key --data-file=-
Fly.iofly secrets set GROQ_API_KEY=gsk_...
Railwayrailway variables set GROQ_API_KEY=gsk_...
Docker-e GROQ_API_KEY=gsk_... or Docker secrets

Output

Following this skill produces:

  • A deployed Groq inference endpoint (POST /api/chat) on the chosen platform that streams text/event-stream chunks on demand and returns JSON completions otherwise.
  • The secret registered in the platform's secret store — never committed to source or an image layer.
  • A /health liveness endpoint returning { status: "healthy", groq: { connected: true, latencyMs: N } } (HTTP 200) or { status: "unhealthy", ... } (HTTP 503) for orchestrator probes.
  • A warm serverless configuration (min-instances=1) keeping cold-start latency off the request path.

Error Handling

IssueCauseSolution
Rate limited (429)Too many requestsImplement request queuing with backoff
Edge timeoutResponse > 25sUse streaming for long completions
Model unavailableCapacity or deprecationFall back to llama-3.1-8b-instant
Cold start latencyServerless function initSet min-instances=1 on Cloud Run
API key not foundSecret not configuredCheck platform secret config

Examples

Full worked walkthroughs live in references/examples.md:

  • Example A — Vercel Edge streaming chat: drop in the Step 1 handler, vercel env add + vercel --prod, get a streaming POST /api/chat URL.
  • Example B — Cloud Run with a liveness probe: Dockerfile HEALTHCHECK + Express /health + gcloud run deploy --min-instances=1, yielding a 200/503 health signal Cloud Run consumes.
  • Example C — Vercel AI SDK path: swap the raw client for @ai-sdk/groq streamText + toDataStreamResponse() for zero manual stream plumbing.

Resources

Next Steps

For multi-environment setup (separate dev/staging/prod secrets and pipelines), see the groq-multi-env-setup skill in this pack.

When not to use it

  • When not deploying Groq-powered applications
  • When not using Vercel, Cloud Run, or Docker for deployment
  • When a different AI SDK than Vercel AI SDK is preferred

Prerequisites

Groq API key stored in GROQ_API_KEYApplication using groq-sdkPlatform CLI installed (vercel, docker, or gcloud)

Limitations

  • Edge timeout occurs if response is over 25 seconds
  • Model unavailability may require falling back to a different model
  • Cold start latency can occur on serverless functions

How it compares

This skill offers platform-specific deployment instructions for Groq applications, ensuring secure secret handling and performance-tuned health checks.

Compared to similar skills

groq-deploy-integration side by side with the closest alternatives in the catalog.

SkillInstallsUpdatedSafetyDifficulty
groq-deploy-integration (this skill)126dReviewIntermediate
openevidence-deploy-integration126dCautionIntermediate
apollo-deploy-integration126dCautionIntermediate
agent-sandbox16moNo flagsIntermediate

Try saying

Example prompts that trigger this skill in your AI assistant.

More by jeremylongshore

View all by jeremylongshore

analyzing-logs

jeremylongshore

Analyze application logs to detect performance issues, identify error patterns, and improve stability by extracting key insights.

14123

ollama-setup

jeremylongshore

Configure auto-configure Ollama when user needs local LLM deployment, free AI alternatives, or wants to eliminate hosted API costs. Trigger phrases: "install ollama", "local AI", "free LLM", "self-hosted AI", "replace OpenAI", "no API costs". Use when appropriate context detected. Trigger with relevant phrases based on skill purpose.

1167

backtesting-trading-strategies

jeremylongshore

Backtest crypto and traditional trading strategies against historical data. Calculates performance metrics (Sharpe, Sortino, max drawdown), generates equity curves, and optimizes strategy parameters. Use when user wants to test a trading strategy, validate signals, or compare approaches. Trigger with phrases like "backtest strategy", "test trading strategy", "historical performance", "simulate trades", "optimize parameters", or "validate signals".

1071

generating-database-seed-data

jeremylongshore

Process this skill enables AI assistant to generate realistic test data and database seed scripts for development and testing environments. it uses faker libraries to create realistic data, maintains relational integrity, and allows configurable data volumes. u... Use when working with databases or data models. Trigger with phrases like 'database', 'query', or 'schema'.

1033

cursor-codebase-indexing

jeremylongshore

Execute set up and optimize Cursor codebase indexing. Triggers on "cursor index setup", "codebase indexing", "index codebase", "cursor semantic search". Use when working with cursor codebase indexing functionality. Trigger with phrases like "cursor codebase indexing", "cursor indexing", "cursor".

885

testing-mobile-apps

jeremylongshore

Execute mobile app testing on iOS and Android devices/simulators. Use when performing specialized testing. Trigger with phrases like "test mobile app", "run iOS tests", or "validate Android functionality".

810

Search skills

Search the agent skills registry