Install and configure Groq SDK authentication for TypeScript or Python.

MITAuto-check: notesBackend & APIs

Install Groq Install Auth

skills CLI
$ npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-install-auth -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install jeremylongshore/tons-of-skills-marketplace groq-install-auth --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/jeremylongshore/tons-of-skills-marketplace.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/.curated/groq-install-auth .claude/skills/groq-install-auth && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
groq-install-auth
GitHub stars
2.8k
Token cost
~1.3k tokens
SKILL.md length
434 words
Files
4 (incl. references)
Skills in repo
3,342
Repo updated
First seen
Licence
MIT

At a glance

Install and configure Groq SDK authentication for TypeScript or Python.

  • Works in 4 steps: Install the SDK → Get Your API Key → Configure Environment → …
  • Setting up a new Groq integration
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 5 more sections
  • Calls npm, pip and node; reaches api.groq.com; needs GROQ_API_KEY

What it does

Groq Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. Install and configure Groq SDK authentication for TypeScript or Python. Use when setting up a new Groq integration, configuring API keys, or initializing the groq-sdk in your project. Trigger with phrases like "install groq", "setup groq", "groq auth", "configure groq API key".

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 4 other files, including reference files (for example `references/configuration.md`, `references/troubleshooting.md` and `references/verification.md`). Compatibility notes: Designed for Claude Code

It sits in Backend & APIs. It works with Python, TypeScript and OpenAI. The repository describes itself as: Model-agnostic agent-skills platform with a harness-free canonical layer, verified adapters, and the ccpi package manager. Explore at tonsofskills.com. The licence is MIT.

When your agent uses it

  • Setting up a new Groq integration
  • Configuring API keys
  • Initializing the groq-sdk in your project
  • With phrases like install groq

Example prompts

  • “install groq”
  • “setup groq”
  • “groq auth”
  • “/groq-install-auth”

Requirements

  • Python 3
  • Node.js
  • A credential in GROQ_API_KEY
  • Compatibility (from SKILL.md): Designed for Claude Code
  • Pre-approved tools (allowed-tools): Bash(npm:*), Bash(pip:*), Bash(export:*)

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Install the SDK
  2. Get Your API Key
  3. Configure Environment
  4. Verify the Connection

What it can do on your machine

Read from SKILL.md and the folder at commit cfae287. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash(npm:*)
    • Bash(pip:*)
    • Bash(export:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • npm
    • pip
    • node
    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Hosts in commands or code, which the agent is likely to contact:

    • api.groq.com

    Also links to:

    • console.groq.com
    • npmjs.com
    • github.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names these keys or tokens, usually read from environment variables:

    • GROQ_API_KEY

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

  • Compatibility

    Designed for Claude Code

    From compatibility in the SKILL.md frontmatter.

Context cost

Groq Install Auth loads about 1.3k tokens when it runs, and up to ~2.2k if it reads all its reference files. Until then it costs about 74 tokens; SKILL.md has 434 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~74
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.2k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:65
    **before** writing any `.env` file so a key can never be committed:
  • NoteMentions a .env fileSKILL.md:71
    # Or create .env file (add .env to .gitignore first)
  • NoteMentions a .env fileSKILL.md:72
    echo 'GROQ_API_KEY=gsk_your_key_here' >> .env
  • NoteMentions a .env fileSKILL.md:96
    I_KEY` available in the environment (or `.env`, with `.env` gitignored).
  • NoteMentions a .env fileSKILL.md:125
    ostics (checking the exported variable, `.env` loading, key
  • NoteMentions a .env fileSKILL.md:135
    node --env-file=.env verify.mjs   # lists models → auth confirmed

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from jeremylongshore/tons-of-skills-marketplace at commit cfae287, republished under its MIT licence (© jeremylongshore). 434 words, ~1,302 tokens.

Download SKILL.mdSave it as .claude/skills/groq-install-auth/SKILL.md (or your agent's skills folder). This skill also uses 3 other files; get the full folder from GitHub.
name
groq-install-auth
description
Install and configure Groq SDK authentication for TypeScript or Python. Use when setting up a new Groq integration, configuring API keys, or initializing the groq-sdk in your project. Trigger with phrases like "install groq", "setup groq", "groq auth", "configure groq API key".
allowed-tools
Bash(npm:*), Bash(pip:*), Bash(export:*)
compatibility
Designed for Claude Code
version
1.11.0
license
MIT
author
Jeremy Longshore <jeremy@intentsolutions.io>
tags
saas, groq, api, authentication

Groq Install & Auth

Overview

Install the official Groq SDK and configure API key authentication. Groq provides ultra-fast LLM inference on custom LPU hardware through an OpenAI-compatible REST API at api.groq.com/openai/v1/.

The workflow is four steps: install the SDK, mint an API key, export it as an environment variable, and verify the connection by listing models. Each step is summarized below; deep detail lives in references/.

Prerequisites

  • Node.js 18+ or Python 3.8+
  • Package manager (npm, pnpm, or pip)
  • Groq account at console.groq.com
  • API key from GroqCloud console (Settings > API Keys)

Instructions

Step 1: Install the SDK
bash
set -euo pipefail
# TypeScript / JavaScript
npm install groq-sdk

# Python
pip install groq
Step 2: Get Your API Key
  1. Go to console.groq.com/keys
  2. Click "Create API Key"
  3. Copy the key (starts with gsk_)
  4. Store it securely -- you cannot view it again
Step 3: Configure Environment

Add the .gitignore template before writing any .env file so a key can never be committed:

bash
# Set environment variable (recommended)
export GROQ_API_KEY="gsk_your_key_here"

# Or create .env file (add .env to .gitignore first)
echo 'GROQ_API_KEY=gsk_your_key_here' >> .env
Step 4: Verify the Connection

Run a short script that lists the models your key can access — a successful list proves authentication end-to-end. The essential TypeScript skeleton:

typescript
import Groq from "groq-sdk";

const groq = new Groq({ apiKey: process.env.GROQ_API_KEY });
const models = await groq.models.list();
console.log(models.data.map((m) => m.id));

Full runnable TypeScript and Python verification scripts, with expected output: verification walkthrough.

Output

A successful setup produces:

  • groq-sdk (Node) or groq (Python) installed in the project.
  • GROQ_API_KEY available in the environment (or .env, with .env gitignored).
  • A verification run that prints the accessible models, for example:
Connected! Available models:
  llama-3.3-70b-versatile (owned by Meta)
  llama-3.1-8b-instant (owned by Meta)

If the verification run prints a 401 instead of a model list, authentication failed — see Error Handling.

SDK Defaults & Key Formats

The SDK auto-reads GROQ_API_KEY from the environment when no apiKey is passed. Groq uses a single gsk_ key type with full API access (no read/write scopes). Constructor options (baseURL, maxRetries, timeout), the OpenAI-SDK compatibility path, and the key-format table are in the configuration reference.

Show full SKILL.md (150 more words)Show less

Error Handling

ErrorCauseSolution
401 Invalid API KeyKey missing, revoked, or mistypedVerify key at console.groq.com/keys
MODULE_NOT_FOUND groq-sdkSDK not installedRun npm install groq-sdk
ModuleNotFoundError: No module named 'groq'Python SDK missingRun pip install groq
ENOTFOUND api.groq.comNetwork/DNS issueCheck internet connectivity and firewall

Extended diagnostics (checking the exported variable, .env loading, key rotation): troubleshooting reference.

Examples

Example 1 — Node project from scratch:

bash
npm install groq-sdk
export GROQ_API_KEY="gsk_your_key_here"
node --env-file=.env verify.mjs   # lists models → auth confirmed

Example 2 — Python project:

bash
pip install groq
export GROQ_API_KEY="gsk_your_key_here"
python verify.py                  # prints accessible models

Example 3 — reuse an existing OpenAI codebase: point the OpenAI SDK at Groq by overriding baseURL to https://api.groq.com/openai/v1 and passing your gsk_ key. See the configuration reference.

Complete, runnable versions of the verification scripts are in the verification walkthrough.

Resources

Next Steps

After successful auth, proceed to the groq-hello-world skill to run your first chat completion. For SDK tuning (retries, timeouts, custom base URL), read the configuration reference.

© jeremylongshore, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 3 other files (references) in skills/.curated/groq-install-auth of jeremylongshore/tons-of-skills-marketplace.

  • SKILL.md
  • references/configuration.md
  • references/troubleshooting.md
  • references/verification.md

Open the folder on GitHubat commit cfae287

Compare with similar skills

Groq Install Auth next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Groq Install Auth compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Groq Install Auth this skilljeremylongshore/tons-of-skills-marketplace2.8k—~1.3kAutomated safety check: NotesMIT
Add Example AgentGetBindu/Bindu10k—~1.1kAutomated safety check: NotesCustom licence
Azure Openai To Responsesmicrosoft/ai-agents-for-beginners77k—~6kAutomated safety check: NotesMIT
Opikcomet-ml/opik-mcp220—~2.1kAutomated safety check: PassApache-2.0
Azure Openai To Responsesmicrosoft/ai-agents-for-beginners77k—~6kAutomated safety check: NotesMIT
Tool Designagentailor/fullstack-langgraph-nextjs-agent132—~3.2kAutomated safety check: PassMIT

Similar skills

  • Add Example Agent

    GetBindu/Bindu

    Add a new self-contained example agent under examples/. An agent skill from GetBindu/Bindu.

    10k GitHub stars~1.1k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check: notes
  • Azure Openai To Responses

    microsoft/ai-agents-for-beginners

    Official

    Migrate Python apps from Azure OpenAI Chat Completions to the Responses API.

    77k GitHub stars~6k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • Opik

    comet-ml/opik-mcp

    Reference for the Opik SDK — tracing, span types, framework integrations, threads, and the prompt library (Python, TypeScript, REST).

    220 GitHub stars~2.1k tokensUpdated 2 days ago
    AI & LLM EngineeringAuto-check passed
  • Azure Openai To Responses

    microsoft/ai-agents-for-beginners

    Official

    Shift Python apps dem from Azure OpenAI Chat Completions go Responses API.

    77k GitHub stars~6k tokensUpdated yesterday
    AI & LLM EngineeringAuto-check: notes
  • Tool Design

    agentailor/fullstack-langgraph-nextjs-agent

    Design and verify tools that AI agents can actually use — for any framework or language (MCP servers, LangChain/LangGraph, function-calling, raw JSON schema; TypeScript, Python, or otherwise).

    132 GitHub stars~3.2k tokensUpdated 1 mo ago
    AI & LLM EngineeringAuto-check passed
  • Mmsp Dev

    Prism-Shadow/model-message-stream-protocol

    Fixed workflow for developing MMSP itself — adding or updating model support, and changing its pages.

    113 GitHub stars~7.2k tokensUpdated yesterday
    Testing & QAAuto-check passed

More from jeremylongshore/tons-of-skills-marketplace

All 3,342 skills in this repo
  • Performing Security Code Review

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to conduct a security-focused code review using the security-agent plugin.

    2.8k GitHub starsUsed in 2 repos~1.3k tokens
    Auto-check: notes
  • Adapting Transfer Learning Models

    jeremylongshore/tons-of-skills-marketplace

    Build this skill automates the adaptation of pre-trained machine learning models using transfer learning techniques.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Agent Context Loader

    jeremylongshore/tons-of-skills-marketplace

    Execute proactive auto-loading: automatically detects and loads agents.md files.

    2.8k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Aggregating Performance Metrics

    jeremylongshore/tons-of-skills-marketplace

    Aggregate and centralize performance metrics from applications, systems, databases, caches, and services.

    2.8k GitHub stars~1.2k tokensUpdated today
    Auto-check passed
  • Analyzing Capacity Planning

    jeremylongshore/tons-of-skills-marketplace

    Execute this skill enables AI assistant to analyze capacity requirements and plan for future growth.

    2.8k GitHub stars~947 tokensUpdated today
    Auto-check passed
  • Analyzing Database Indexes

    jeremylongshore/tons-of-skills-marketplace

    Process use when you need to work with database indexing. An agent skill from jeremylongshore/tons-of-skills-marketplace.

    2.8k GitHub stars~2k tokensUpdated today
    Auto-check passed

Categories

Questions about Groq Install Auth

What does Groq Install Auth do?

Install and configure Groq SDK authentication for TypeScript or Python. Groq Install Auth is an agent skill from jeremylongshore/tons-of-skills-marketplace. Install and configure Groq SDK authentication for TypeScript or Python.

When should I use Groq Install Auth?

Groq Install Auth fits situations like: setting up a new Groq integration; configuring API keys; initializing the groq-sdk in your project; with phrases like install groq.

How do I install Groq Install Auth in Claude Code?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-install-auth -a claude-code`. Or copy the skill folder (skills/.curated/groq-install-auth in jeremylongshore/tons-of-skills-marketplace) into .claude/skills/groq-install-auth in your project. Claude Code loads it when a task matches its description.

How do I install Groq Install Auth in Codex?

Run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-install-auth -a codex`. Or copy the skill folder (skills/.curated/groq-install-auth in jeremylongshore/tons-of-skills-marketplace) into .agents/skills/groq-install-auth in your project. Codex loads it when a task matches its description.

Can I use Groq Install Auth in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jeremylongshore/tons-of-skills-marketplace --skill groq-install-auth -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/groq-install-auth, .gemini/skills/groq-install-auth, .github/skills/groq-install-auth and .opencode/skills/groq-install-auth in your project.

What does Groq Install Auth need to run?

Going by SKILL.md and its folder, Groq Install Auth needs the command-line tools its instructions call (npm, pip, node and python) and credentials named GROQ_API_KEY. Our summary lists: Python 3; Node.js; A credential in GROQ_API_KEY. Its frontmatter pre-approves these tools: Bash(npm:*), Bash(pip:*), Bash(export:*). Compatibility (from SKILL.md): Designed for Claude Code.

Does Groq Install Auth access the network?

SKILL.md names 4 domains. In commands or code: api.groq.com; the agent is likely to contact it when it follows the instructions. As links in the text: console.groq.com, npmjs.com and github.com. This is read from the text; nothing was executed.

Is Groq Install Auth safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Groq Install Auth use?

Groq Install Auth is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Groq Install Auth use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 920 tokens, read only when the agent opens those files.

What are the alternatives to Groq Install Auth?

Skills that share tags, products or a category with Groq Install Auth: Add Example Agent (GetBindu/Bindu, 10k stars), Azure Openai To Responses (microsoft/ai-agents-for-beginners, 77k stars), Opik (comet-ml/opik-mcp, 220 stars) and Azure Openai To Responses (microsoft/ai-agents-for-beginners, 77k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Groq Install Auth?

jeremylongshore (a GitHub user) maintains it in jeremylongshore/tons-of-skills-marketplace, which has 2,827 GitHub stars. The repository holds 3,342 skills in this directory. The repository was last updated on October 10, 2026.

Source: jeremylongshore/tons-of-skills-marketplace on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.