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!
Do not paste the key into this chat. Instead, copy/paste it into your local .env file:
``` ELEVENLABSAPIKEY=your-api-key ```
If .env already has an ELEVENLABSAPIKEY=... line, replace that line. Tell me when you've saved it, without sharing the key.
Then wait for the user to confirm that the key is saved locally.
Step 2: Validate and configure
After the user says the key is saved:
Re-check both .env and the current environment for ELEVENLABSAPIKEY, but treat .env as the source of truth for this step.
If .env contains a value, validate that value even when the current environment also has a different ELEVENLABSAPIKEY.
If .env does not contain the key:
- Tell the user .env does not appear to contain ELEVENLABSAPIKEY. - Show the expected line again. - If the current environment does contain a key, note that this step still requires saving the key in .env. - Remind them not to paste the key into chat.
- Tell the user the local key appears invalid or expired. - Remind them of the API keys page. - Ask them to replace the .env value and tell you when it is saved.
If validation succeeds, confirm:
> Done. ElevenLabs is configured and the key in .env works.
Safety Rules
Never ask the user to paste an API key, token, or secret into chat.
Never print or echo API key values from environment variables or .env.
Prefer .env or managed secrets over shell history for persistent local configuration.
For browser or client-side apps, keep ELEVENLABSAPIKEY on the server and issue short-lived tokens where applicable.