The ElevenLabs Agents Platform CLI transforms how you build and deploy ElevenLabs agents by treating them as code. Instead of manually configuring agents through web interfaces, you define them in version-controlled configuration files and deploy them like any other application.
The CLI also provides a local scratch pad that coding agents like claude code can use to reason about your voice agents. Whether you’re auto-generating customer support bots from your existing documentation, creating personalized sales agents for each client, or building docs agents that stay synchronized with your codebase, the CLI makes it effortless.
The CLI requires Node.js version 16.0.0 or higher.
After installation, the agents 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 uses a multi-layered authentication system for secure API key management:
ELEVENLABS_API_KEY (only for ‘prod’
environment) 2. Secure file storage: ~/.agents/api_keys.json with restricted permissions
(600)Create agents using pre-built templates:
Options:
--template <type>: Choose from available templates (default: default)--env <env>: Target environment (default: prod)--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:
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:
The CLI supports multiple environments with separate configurations: