AgentSkillsCN

setup-api-key

指导用户完成 ElevenLabs API 密钥的配置,以便与 ElevenLabs MCP 工具无缝衔接。当用户需要配置 ElevenLabs API 密钥、遇到因缺少 API 密钥而导致 ElevenLabs 工具无法正常运行的情况,或当用户明确提出希望接入 ElevenLabs 时,此技能将为您提供贴心的帮助。

SKILL.md
--- frontmatter
name: setup-api-key
description: Guides users through the process of setting up an ElevenLabs API key for use with ElevenLabs MCP tools. Use when the user needs to configure an ElevenLabs API key, when ElevenLabs tools fail due to missing API key, or when the user mentions needing access to ElevenLabs.
license: MIT
compatibility: Requires internet access to elevenlabs.io and api.elevenlabs.io.

ElevenLabs API Key Setup

Guide the user through obtaining and configuring an ElevenLabs API key.

Workflow

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:

    code
    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:

    code
    ELEVENLABS_API_KEY=<the-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!