跳到正文
Skillpedia
连接器(MCP)75k · #2688

setup-api-key

它能做什么

这项技能帮助你获取 ElevenLabs API 密钥,并将其保存,供工具使用。适合遇到缺少密钥的错误,或想连接 ElevenLabs 的人。

适用场景

  • ✓当 ElevenLabs 工具因缺少 API 密钥而失败时。
  • ✓当你想确认已保存的 ElevenLabs 密钥是否仍然有效时。
  • ✓当你需要替换或更换 ElevenLabs 密钥时。

技能链接

https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/setup-api-key/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/setup-api-key/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的 ElevenLabs 语音工具提示缺少 API 密钥,请帮我设置一下好吗?”

每周 5 个新技能,1 分钟读完。

工作原理

它会先查找已有的密钥并进行测试。如果密钥缺失或已失效,它会请你到 ElevenLabs 网站创建新密钥,并将其保存。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

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!

常见问题

在要求新密钥之前,这项技能会先检查我的密钥吗?

会。如果已经保存了密钥,它会先测试该密钥,如果密钥仍然有效就直接停止。

开始前我需要准备什么?

需要一个 ElevenLabs 账号。如果你没有账号,这项技能会先提供注册页面。

创建新密钥后会进行测试吗?

这项技能说明,拥有读取用户设置权限的密钥会被自动检查。

详情

作者的原始描述

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 tools fail due to missing API key, or when the user mentions needing access to ElevenLabs. First checks whether ELEVENLABS_API_KEY is already configured and valid, and only runs full setup when needed.

repo: calesthio/OpenMontage

热度

GitHub 星标
75k
排名
#2688
许可证
AGPL-3.0
更新时间
2026/10/28

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能