Guides users through setting up an ElevenLabs API key for ElevenLabs MCP tools. Use when the user needs to configure an ElevenLabs API key, when ElevenLabs tool
复制下面这句话,粘贴给 Claude Code、Codex、Cursor 等 AI 编程工具,它会读取安装说明并在你确认后完成安装。
请阅读 https://ai.atlankj.com/install/asset/gh-setup-api-key-8bed27a4b784 ,按照其中的说明把「setup-api-key」安装到你(当前 AI 工具)中。执行前先告诉我将运行的命令和写入的位置,等我确认。
查看 AI 将读取的安装说明正在读取 GitHub 原文…
内容来自 GitHub 原始文件,由原作者维护。在 GitHub 查看
Guide the user through obtaining and configuring an ElevenLabs API key.
Before asking the user for a key, check for an existing ELEVENLABS_API_KEY:
ELEVENLABS_API_KEY exists in the current environment..env for ELEVENLABS_API_KEY=<value>.GET https://api.elevenlabs.io/v1/user
Header: xi-api-key: <existing-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!
Paste your API key here when ready.
Then wait for the user's next message which should contain the API key.
Once the user provides the API key:
Validate the key by making a request:
GET https://api.elevenlabs.io/v1/user
Header: xi-api-key: <the-api-key>
If validation fails:
If validation succeeds, save the API key in a .env file:
ELEVENLABS_API_KEY=<the-api-key>
.env already has ELEVENLABS_API_KEY=..., replace that lineELEVENLABS_API_KEYConfirm success:
Done! Your key is stored as an environment variable in .env Keep the key safe! Don't share it with anyone!