S

setup-api-key

by @elevenlabsv
4.4(48)

作为DevOps工具,此技能指导用户完成ElevenLabs API密钥的设置过程,确保顺利集成和使用ElevenLabs服务。

api-managementsecurityauthenticationenvironment-variablesci/cdGitHub
安装方式
npx skills add elevenlabs/skills --skill setup-api-key
compare_arrows

Before / After 效果对比

1
使用前

配置ElevenLabs API密钥时,用户常遇到步骤复杂、容易出错的问题。手动查找文档耗时,影响工具的快速启用。

使用后

提供清晰指引,简化ElevenLabs API密钥设置流程。用户能快速完成配置,顺利启用ElevenLabs MCP工具,提升效率。

SKILL.md

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:

  1. Check whether ELEVENLABS_API_KEY exists in the current environment.
  2. If it's not in the environment, check .env for ELEVENLABS_API_KEY=<value>.
  3. If an existing key is found, validate it:
    GET https://api.elevenlabs.io/v1/user
    Header: xi-api-key: <existing-api-key>
    
  4. 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
  5. 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:

  1. Click "Create key"
  2. Name it (or use the default)
  3. 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
  4. Click "Create key" to confirm
  5. 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.

Step 2: Validate and configure

Once the user provides the API key:

  1. Validate the key by making a request:

    GET https://api.elevenlabs.io/v1/user
    Header: xi-api-key: <the-api-key>
    
  2. If validation fails:

  3. If validation succeeds, save the API key in a .env file:

    ELEVENLABS_API_KEY=<the-api-key>
    
    • If .env already has ELEVENLABS_API_KEY=..., replace that line
    • Otherwise add a new line for ELEVENLABS_API_KEY
  4. Confirm success:

    Done! Your key is stored as an environment variable in .env Keep the key safe! Don't share it with anyone!

用户评价 (0)

发表评价

效果
易用性
文档
兼容性

暂无评价

统计数据

安装量2.8K
评分4.4 / 5.0
版本
更新日期2026年5月22日
对比案例1 组

用户评分

4.4(48)
5
23%
4
52%
3
23%
2
2%
1
0%

为此 Skill 评分

0.0

兼容平台

🔧Claude Code
🔧OpenClaw
🔧OpenCode
🔧Codex
🔧Gemini CLI
🔧GitHub Copilot
🔧Amp
🔧Kimi CLI

时间线

创建2026年3月16日
最后更新2026年5月22日