← All tools

@elevenlabs/cli

Popularity 65 Updated Development & Build

CLI tool to manage ElevenLabs agents

npmauto-collected

Installation

npm
npm install -g @elevenlabs/cli

Install with npm.

ElevenLabs CLI - Agents as Code

ElevenLabs CLI

Build multimodal agents with the ElevenLabs platform.

Manage ElevenLabs with local configuration files. This tool is an experimental exploration of treating agents as code, with features like templates and automatic pushing.

Features

  • Agent Configuration: Full ElevenLabs agent schema support
  • Templates: Pre-built templates for common use cases
  • Smart Updates: Hash-based change detection
  • Import/Export: Fetch existing agents and tools from workspace
  • Tool Management: Import and manage tools from ElevenLabs workspace
  • Branch Support: Pull/push specific agent branches, CI/CD-friendly multi-branch workflows
  • Widget Generation: HTML widget snippets
  • Secure Storage: OS keychain integration with secure file fallback

Installation

# Global installation
pnpm install -g @elevenlabs/cli
# OR
npm install -g @elevenlabs/cli

# One-time usage
pnpm dlx @elevenlabs/cli agents init
# OR
npx @elevenlabs/cli agents init

Setup

Authentication

Login with your ElevenLabs API key (stored securely across all platforms):

elevenlabs auth login

Or set environment variable:

export ELEVENLABS_API_KEY="your_api_key_here"

Note: For now, your API key must be unrestricted to work with the CLI, as ElevenLabs-restricted keys are not available yet.

Check Status

elevenlabs auth whoami