Setup API Key
ElevenLabsOfficialPublished by ElevenLabs
- Skill
- Tool integration
- Automation and integrations
- MIT
- Medium risk
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured procedure to validate or repair an existing ElevenLabs API key configuration. It is designed for scenarios where a key has stopped working, was provided by an administrator, or needs to be correctly placed within an application's environment variables. The skill emphasizes security by verifying keys without exposing them in the chat or reading them directly from files, utilizing the ElevenLabs CLI to perform checks and guide the user through necessary remediation steps.
What it does
- Verifies the validity of an existing ELEVENLABS_API_KEY without exposing it.
- Troubleshoots 401 or invalid_api_key errors for existing installations.
- Guides users through manual configuration of environment variables in local projects.
- Provides step-by-step instructions for resolving authentication issues via CLI commands.
- Ensures secure handling of credentials by avoiding direct input or display in chat.
- Validates that the application environment is correctly set up to use the ElevenLabs SDK.
When to use it
- When an existing ElevenLabs API key is rejected or returns an authentication error.
- When you have received an API key from an administrator and need to configure it.
- When you need to verify that an application is correctly reading the API key from the environment.
- When you need to troubleshoot an existing integration that has stopped functioning.
Advantages
- Maintains security by never requiring the API key to be pasted into the chat.
- Automates the verification process to quickly identify configuration issues.
- Provides clear, actionable steps for fixing broken authentication flows.
- Prevents accidental exposure of sensitive credentials in logs or conversation history.
Usage examples
- “My ElevenLabs integration is throwing a 401 error, can you help me fix it?”
- The agent will guide you to run the verification command in your project folder to check the current key status and provide steps to resolve the authentication failure.
- “I have an API key from my admin, how do I set it up for my project?”
- The agent will instruct you on where to place the key in your environment files and how to verify the configuration using the CLI without revealing the key.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/elevenlabs/setup-api-key/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip setup-api-key.zip -d .agents/skills
Documentation by ElevenLabs
ElevenLabs API Key Setup
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: runrun.wait: showsay, then runrunagain right away.ask_user, or afixthat needs the user's shell or secrets: ask them whatsaysays, wait for their answer, then runrun, unless they said no.write_code: if the app already readsELEVENLABS_API_KEY(through the SDK or its own requests), don't change its code: afterconnect, runrun; aftercheck, tell the user the key works (notsay) and stop. Otherwise make sure the code uses the SDK, then runrun; 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 insay; runrunonly if they say yes.done: tell the usersay.
Rules
Never open, print or
catthe env file, and never echoELEVENLABS_API_KEY;onboard checkverifies the key for you.Never ask for an API key in chat, and never accept one pasted there. If one appears, tell the user to rotate it on the API keys page.
Never put the key in code; the SDK reads
ELEVENLABS_API_KEY.Don't run the app (or its start script) or make speech to try it until the user says yes. API calls that what they asked for needs, like creating an agent, are fine. Once the code is written, run
onboard checkbefore you finish: it verifies the key and the code.For browser or client-side apps, keep the key on the server and issue short-lived tokens where the product supports them.
No npx
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:
macOS or Linux:
brew install elevenlabs/tap/elevenlabs, orcurl --proto '=https' --tlsv1.2 -LsSf https://github.com/elevenlabs/cli/releases/latest/download/elevenlabs-cli-installer.sh | shWindows:
powershell -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.
Files
- ATTRIBUTION.mdAdded by AutoGineer810 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md3.9 KiB
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs network access, Needs an API key, Needs Node.js
The author says: Requires internet access to elevenlabs.io and api.elevenlabs.io, and Node.js for npx (or the ElevenLabs CLI installed another way).
Security
What our scanner noticed· Medium risk
- Instructions that use the network
- Downloads piped into a shell
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- ElevenLabs
- Publisher
- ElevenLabs (Official)
- Source
- elevenlabs/skills · setup-api-key · commit 9763c39
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by ElevenLabs.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download setup-api-key.zip