Skip to content

setup-api-key

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

— (0 ratings) 15.9K downloads elevenlabs
$ npx skills add https://github.com/elevenlabs/skills --skill setup-api-key

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

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), 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 check

A key that stopped working: run the same command from the app's folder.
It finds the key the app would use (the shell, or the app's env file), 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. When it is a sign-in (onboard connect), it opens the
    approval page and waits, for up to five minutes, while the user approves:
    tell them first, then keep the command running until it finishes and don't
    end your turn while it waits.
  • 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.
  • integrate: the key works. If the user only asked to fix or place a key,
    tell them say, change no code and don't ask what to build, then run
    run. If they also asked for something to be built, follow instruction.
  • offer_test: end your reply with the question in say, and end your turn.
    Run run only if they say yes.
  • done: tell the user say.

Rules

  • Never open, print or cat the env file, and never echo
    ELEVENLABS_API_KEY; onboard check verifies 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.
  • 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, or
    curl --proto '=https' --tlsv1.2 -LsSf https://github.com/elevenlabs/cli/releases/latest/download/elevenlabs-cli-installer.sh | sh
  • Windows: 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.


Installs: 15.9K | GitHub stars: 596 | First seen: Jan 27, 2026

Related skills

New

Video

media-use

Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour

New • 1.6M
New

DevOps & cloud

azure-ai

Unified access to Azure AI services: Search, Speech, OpenAI, and Document Intelligence.

New • 781.7K
New

AI & LLMs

ai-music

Generate AI music on RunComfy via the `runcomfy` CLI — a smart router across the music-model catalog. Routes to ElevenLabs AI Music Generation (premium 44.1

New • 776K