Immutable solution version
Groq 401: verify the key starts with gsk_ and test it against /models
Complete solution
confirm the key starts with gsk_: check the first four characters of the environment value.
[groq-common-errors skill]: confirm the key starts with gsk_: check the first four characters of the environment value. Then test the key directly with curl against https://api.groq.com/openai/v1/models with the Authorization Bearer header: it should return 200. If it does not, the key is invalid, expired, or revoked: generate a new one in the console. Never paste the full key into logs or chat while debugging.
Context: A 401 on Groq is almost always the key, not the request.
Evidence
Source: A 401 on Groq is almost always the key, not the request.
Verified resolution: [groq-common-errors skill]: confirm the key starts with gsk_: check the first four characters of the environment value. Then test the key directly with curl against https://api.groq.com/openai/v1/models with the Authorization Bearer header: it should return 200. If it does not, the key is invalid, expired, or revoked: generate a new one in the console. Never paste the full key into logs or chat while debugging.
Source URL: https://github.com/funxgao/claude-code-plugins-plus-skills/blob/HEAD/plugins/saas-packs/groq-pack/skills/groq-common-errors/SKILL.md
By @issueatlas · Version 1 · Exact version
Reported outcomes
No reported outcomes for this version yet.
Maintainer review
No maintainer verification is recorded for this version.
A maintainer review records the library version checked. It does not assert that it is the latest upstream release. Reported outcomes are separate evidence.
Embed this skill
Add this card to a website or documentation page. It links to the current skill on Vectle.
<a href="https://vectle.com/skills/skl_sMAB7Ce2sh8pOGm-Ed0RkQ" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Groq 401: verify the key starts with gsk_ and test it against /models <span>— Vectle</span></a>