setup-api-key
Skill472 starsChanged 2 months agoMITView on GitHub
Guides users through setting up an ElevenLabs API key for REST API and SDK workflows. Use when the user needs to configure an ElevenLabs API key or when an API or SDK request fails because a key is missing. First checks whether ELEVENLABS_API_KEY is already configured and valid, and only runs full setup when needed.
- Reads credentials
4 other projects use a version of this, 2 of them edited.
Adopted by
Most recently taken up by
- calesthio/OpenMontageedited, first seen Oct 3, 2026
- VapiAI/skillstheir own version, first seen Sep 3, 2026
- elevenlabs/pluginedited, first seen Aug 28, 2026
- sonilo-ai/skillstheir own version, first seen Aug 16, 2026
Other versions4 projects use a version of this.
Word for word · 0
None found.
Edited · 2
- calesthio/OpenMontage★ 63k58% same
- elevenlabs/plugin★ 195% same
Wrote their own version · 2
- sonilo-ai/skills★ 115same name
- VapiAI/skills★ 66same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository10 other files it gives its agents.
- agentsSkill
- update-skills-from-changelogSkill
- dubbingSkill
- musicSkill
- sound-effectsSkill
- speech-engineSkill
- speech-to-textSkill
- text-to-speechSkill
- voice-changerSkill
- voice-isolatorSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
16 rules. 0 are common, 6 are distinctive, and 10 are very specific to this project.
0
Common
Most of the 4 edited versions we read keep these.
6
Distinctive
This author's own choices. Worth a look.
10
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 16
Before asking the user for a key, check for an existing ELEVENLABS_API_KEY:
- Very specific: line 18
Check whether ELEVENLABS_API_KEY exists in the current environment.
- Very specific: line 19
Only if it is not in the environment, check .env for ELEVENLABS_API_KEY=<value>.
- Distinctive: line 20
Do not print, quote, or repeat the key.
- Distinctive: line 21
If an existing key is found, validate it:
- Distinctive: line 29
Ask whether they want to replace/rotate the key.
- Distinctive: line 62
After the user says the key is saved:
- Very specific: line 65
If .env contains a value, validate that value even when the current environment also has a different ELEVENLABS_API_KEY.
- Very specific: line 66
If .env does not contain the key:
- Very specific: line 69
If the current environment does contain a key, note that this step still requires saving the key in .env.
- Very specific: line 71
If a .env key is found, validate it:
- Very specific: line 79
Ask them to replace the .env value and tell you when it is saved.
- Distinctive: line 80
If validation succeeds, confirm:
- Distinctive: line 85
Never ask the user to paste an API key, token, or secret into chat.
- Very specific: line 86
Never print or echo API key values from environment variables or .env.
- Very specific: line 87
Prefer .env or managed secrets over shell history for persistent local configuration.
“Common” is measured: kept by at least 6 in 10 of the 4 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
ElevenLabs API Key Setup
Guide the user through obtaining and configuring an ElevenLabs API key.
Workflow
Step 0: Check for an existing API key first
Before asking the user for a key, check for an existing ELEVENLABS_API_KEY:
- Check whether
ELEVENLABS_API_KEYexists in the current environment. If it does, use that value for this initial check. - Only if it is not in the environment, check
.envforELEVENLABS_API_KEY=<value>. - Do not print, quote, or repeat the key. If you mention it, redact it.
- If an existing key is found, validate it:
GET https://api.elevenlabs.io/v1/user Header: xi-api-key: <existing-api-key> - If existing key validation succeeds:
- Tell the user ElevenLabs is already configured and working
- Skip the setup flow
- Ask whether they want to replace/rotate the key; if not, stop
- If existing key validation fails:
- Tell the user the existing key appears invalid or expired
- Continue to Step 1
Step 1: Request the API key
Tell the user:
To set up ElevenLabs, open the API keys page: https://elevenlabs.io/app/settings/api-keys
(Need an account? Create one at https://elevenlabs.io/app/sign-up first)
If you don't have an API key yet:
- Click "Create key"
- Name it (or use the default)
- Set permission for your key. If you provide a key with "User" permission set to "Read" this skill will automatically verify if your key works
- Click "Create key" to confirm
- Copy the key immediately - it's only shown once!
Do not paste the key into this chat. Instead, copy/paste it into your local
.envfile:ELEVENLABS_API_KEY=your-api-keyIf
.envalready has anELEVENLABS_API_KEY=...line, replace that line. Tell me when you've saved it, without sharing the key.
Then wait for the user to confirm that the key is saved locally.
Step 2: Validate and configure
After the user says the key is saved:
- Re-check both
.envand the current environment forELEVENLABS_API_KEY, but treat.envas the source of truth for this step. - If
.envcontains a value, validate that value even when the current environment also has a differentELEVENLABS_API_KEY. - If
.envdoes not contain the key:- Tell the user
.envdoes not appear to containELEVENLABS_API_KEY. - Show the expected line again.
- If the current environment does contain a key, note that this step still requires saving the key in
.env. - Remind them not to paste the key into chat.
- Tell the user
- If a
.envkey is found, validate it:GET https://api.elevenlabs.io/v1/user Header: xi-api-key: <local-api-key> - If validation fails:
- Tell the user the local key appears invalid or expired.
- Remind them of the API keys page.
- Ask them to replace the
.envvalue and tell you when it is saved.
- If validation succeeds, confirm:
Done. ElevenLabs is configured and the key in
.envworks.
Safety Rules
- Never ask the user to paste an API key, token, or secret into chat.
- Never print or echo API key values from environment variables or
.env. - Prefer
.envor managed secrets over shell history for persistent local configuration. - For browser or client-side apps, keep
ELEVENLABS_API_KEYon the server and issue short-lived tokens where applicable.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

