Claude Skills
CollectionsCompareWorkflowsNominate
Sign inSign up
© 2026 Curated Agent Skills·Learn more about Agent Skills
Back to repository

api-authentication

verified

API authentication patterns, SDK installation scripts, environment variable management, and connection testing for ElevenLabs. Use when setting up ElevenLabs authentication, installing ElevenLabs SDK, configuring API keys, testing ElevenLabs connection, or when user mentions ElevenLabs authentication, xi-api-key, ELEVENLABS_API_KEY, or ElevenLabs setup.

View on GitHub

Marketplace

ai-dev-marketplace

vanman2024/ai-dev-marketplace

Plugin

elevenlabs

development

Repository

vanman2024/ai-dev-marketplace
2stars

plugins/elevenlabs/skills/api-authentication/SKILL.md

Last Verified

February 1, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/vanman2024/ai-dev-marketplace/blob/main/plugins/elevenlabs/skills/api-authentication/SKILL.md -a claude-code --skill api-authentication

Installation paths:

Claude
.claude/skills/api-authentication/
Powered by add-skill CLI

Instructions

# ElevenLabs API Authentication

Comprehensive authentication setup for ElevenLabs voice AI platform including SDK installation, API key management, environment configuration, and connection testing.

## Overview

This skill provides:
- Automated SDK installation for TypeScript and Python
- Secure API key configuration with environment variables
- Connection testing and validation scripts
- Production-ready client templates
- Complete authentication examples for Next.js and Python projects

## Authentication Method

ElevenLabs uses API key authentication via HTTP headers:
```
xi-api-key: YOUR_ELEVENLABS_API_KEY
```

**Security Requirements:**
- API keys must be stored in environment variables (never hardcoded)
- Keys should never be exposed in client-side code
- Each key can have endpoint restrictions and credit quotas

## Scripts

All scripts are fully functional and production-ready:

### 1. setup-auth.sh
Configures ELEVENLABS_API_KEY in .env file with validation.
```bash
bash scripts/setup-auth.sh [api-key]
```

### 2. test-connection.sh
Tests API connectivity using curl and validates credentials.
```bash
bash scripts/test-connection.sh
```

### 3. install-sdk.sh
Installs @elevenlabs/elevenlabs-js (TypeScript) or elevenlabs (Python) SDK.
```bash
bash scripts/install-sdk.sh [typescript|python]
```

### 4. validate-env.sh
Validates .env file has required ELEVENLABS_API_KEY.
```bash
bash scripts/validate-env.sh
```

### 5. generate-client.sh
Generates API client boilerplate from templates.
```bash
bash scripts/generate-client.sh [typescript|python] [output-path]
```

## Templates

All templates are production-ready and fully implemented:

### Environment Configuration
- `templates/.env.template` - Environment variable template with all required keys

### TypeScript Templates
- `templates/api-client.ts.template` - ElevenLabs client with error handling
- `templates/api-client-nextjs.ts.template` - Next.js server-side client
- `templates/api-client-edge.ts.template` - 

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
6017 chars