Chuyển đến nội dung
Skillpedia
Trình kết nối (MCP)75k · #2688

setup-api-key

Skill này làm gì

Skill này giúp bạn lấy khóa API ElevenLabs và lưu lại để các tool dùng được. Nó dành cho người gặp lỗi thiếu khóa hoặc muốn kết nối ElevenLabs.

Khi nào nên dùng

  • ✓Khi một tool ElevenLabs lỗi vì thiếu khóa API.
  • ✓Khi bạn muốn kiểm tra xem khóa ElevenLabs đã lưu còn hoạt động không.
  • ✓Khi bạn cần thay hoặc đổi khóa ElevenLabs.

Liên kết skill

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

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/setup-api-key/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Tool giọng nói ElevenLabs của tôi báo thiếu khóa API. Bạn giúp tôi thiết lập được không?”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Trước hết nó tìm khóa hiện có và kiểm tra. Nếu khóa thiếu hoặc không còn hoạt động, nó yêu cầu bạn tạo khóa mới trên trang web ElevenLabs và lưu lại.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

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!

Câu hỏi thường gặp

Skill có kiểm tra khóa của tôi trước khi yêu cầu khóa mới không?

Có. Nếu đã có khóa được lưu, nó kiểm tra khóa đó trước và dừng nếu khóa vẫn hoạt động.

Tôi cần gì trước khi bắt đầu?

Một tài khoản ElevenLabs. Nếu chưa có, skill đưa bạn đến trang đăng ký trước.

Khóa mới có được kiểm tra sau khi tôi tạo không?

Skill nói rằng khóa có quyền đọc cài đặt người dùng sẽ được kiểm tra tự động.

Chi tiết

Mô tả gốc của tác giả

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

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2688
Giấy phép
AGPL-3.0
Cập nhật
28/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự