The ElevenLabs CLI allows you to access your ElevenLabs agents from your terminal, unlocking new ways to manage them:
The CLI requires Node.js version 16.0.0 or higher.
After installation, the elevenlabs command will be available globally in your terminal.
This creates the project structure with configuration directories and registry files.
The CLI creates a structured project directory:
The CLI stores API keys in ~/.agents/api_keys.json file with restricted permissions (600).
Create agents using pre-built templates:
Options:
--template <type>: Choose from available templates (default: default)--skip-upload: Create locally without uploading to platformExample:
The CLI provides six pre-built templates for common use cases:
Complete configuration with all available fields, sensible defaults, full voice/text support, widget customization, and evaluation criteria.
Essential fields only including basic prompt, language, TTS, and conversation settings.
Optimized for voice interactions with disabled text input and advanced voice settings.
Professional empathetic prompts, low temperature (0.1), 30-minute duration, and evaluation criteria.
General-purpose AI assistant with balanced creativity (temperature 0.3) and versatile voice/text support.
Keep your local configurations synchronized with the ElevenLabs platform:
By default, elevenlabs agents pull skips agents that already exist locally. Use the --update
flag to override local configurations with remote changes made in the browser or via the API.
The CLI supports two types of tools for extending agent capabilities:
HTTP API integrations with authentication and timeout configuration:
Direct client-side integrations:
Generate HTML embed code for web integration:
This outputs HTML code like:
Each agent configuration includes: