Skills
Skill 6 of 13
Fix or hand-configure an existing ElevenLabs API key.
2 minutes · 470 words · 3 sections
Install
npx skills add elevenlabs/skills --skill setup-api-keynpx skills add elevenlabs/skillsThe first command installs just this skill, by the name in its SKILL.md; the second installs the whole repository.
For a key the user already has, or one that stopped working. For adding
ElevenLabs to a project from scratch, use the onboarding skill.
A key the user already has (for example from an administrator): don’t
sign in for a new one. Tell them to paste it after ELEVENLABS_API_KEY= in
the env file of the app that uses it (.env.local, or .env in a Python
project), never into this chat, and to tell you when it’s done. Then check it
(if check finds no key, or ElevenLabs rejects it, and offers to sign in,
ask the user to check the paste instead of signing in):
npx -y @elevenlabs/cli@latest onboard checkA key that stopped working: run the same command from the app’s folder.
It finds the key the app would use (the shell, the env file, or a .env up
the tree), checks it with ElevenLabs without printing it, and prints JSON:
next is the step (spelled out in instruction; where the list below differs,
follow the list), run the exact command, and say what to tell the user (tell
them as written). Follow it until the key works; for a rejected key it
signs the user in for a new one. What each next means:
run: run run. wait: show say, then run run again right away.ask_user, or a fix that needs the user’s shell or secrets: ask them
what say says, wait for their answer, then run run, unless they said no.write_code: if the app already reads ELEVENLABS_API_KEY (through the
SDK or its own requests), don’t change its code: after connect, run
run; after check, tell the user the key works (not say) and stop.
Otherwise make sure the code uses the SDK, then run run; if nothing
shows what the app should do with ElevenLabs, ask the user first, and don’t
pick a product for them.offer_test: ask the question in say; run run only if they say yes.done: tell the user say.cat the env file, and never echo
ELEVENLABS_API_KEY; onboard check verifies the key for you.ELEVENLABS_API_KEY.onboard check before you
finish: it verifies the key and the code.If npx isn’t available (Node.js isn’t installed), install the CLI (or
update it if it’s already installed: brew upgrade elevenlabs, or run the
installer again), then run elevenlabs onboard check instead:
brew install elevenlabs/tap/elevenlabs, or
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/elevenlabs/cli/releases/latest/download/elevenlabs-cli-installer.sh | shpowershell -ExecutionPolicy ByPass -c "irm https://github.com/elevenlabs/cli/releases/latest/download/elevenlabs-cli-installer.ps1 | iex"If elevenlabs isn’t found after the installer ran, use
~/.cargo/bin/elevenlabs in its place, here and in every run the CLI gives.
Fix or hand-configure an existing ElevenLabs API key. Use when a key stopped working (401 or invalid_api_key), when an administrator issued the key, when the user's role cannot create keys, or when the user already has a key and needs it in the right place. Checks whether ELEVENLABS_API_KEY is configured and valid, without reading it into the conversation. Not for first-time setup or adding ElevenLabs to a project (use onboarding).
The verbatim description from this skill’s front matter — the string an agent matches on to decide whether to load it.
setup-api-key/SKILL.mdmain, last pushed 4 November 2026.SKILL.md, not by matching a directory convention. 2 distinct layouts observed: .agents/skills/*/SKILL.md, */SKILL.md.h1 and no skipped levels:/elevenlabs/skills.md, and each skill at its own .md URL.