ElevenLabs CLI Setup ElevenLabs can be configured headlessly with `kosmokrator integrations:configure elevenlabs`.
# Install KosmoKrator first if it is not available on PATH.
curl -fsSL https://raw.githubusercontent.com/OpenCompanyApp/kosmokrator/main/install.sh | bash
# Configure and verify this integration.
kosmokrator integrations:configure elevenlabs --set api_key=" $ELEVENLABS_API_KEY " --enable --read allow --write ask --json
kosmokrator integrations:doctor elevenlabs --json
kosmokrator integrations:status --json Credentials
Authentication type: API key api_key. Configure credentials once, then use the same stored profile from
scripts, coding CLIs, Lua code mode, and the MCP gateway.
Call ElevenLabs Headlessly Use the generic call form when another coding CLI or script needs a stable universal interface.
kosmo integrations:call elevenlabs.elevenlabs_text_to_speech '{
"voice_id": "example_voice_id",
"text": "example_text",
"model_id": "example_model_id",
"stability": 1,
"similarity_boost": 1,
"style": 1,
"use_speaker_boost": true
}' --json Use the provider shortcut form for shorter human-facing commands.
kosmo integrations:elevenlabs elevenlabs_text_to_speech '{
"voice_id": "example_voice_id",
"text": "example_text",
"model_id": "example_model_id",
"stability": 1,
"similarity_boost": 1,
"style": 1,
"use_speaker_boost": true
}' --json Agent Discovery Commands
These commands return structured output for coding agents that need to inspect capabilities before choosing a function.
kosmo integrations:docs elevenlabs --json
kosmo integrations:docs elevenlabs.elevenlabs_text_to_speech --json
kosmo integrations:schema elevenlabs.elevenlabs_text_to_speech --json
kosmo integrations:search "ElevenLabs" --json
kosmo integrations:list --json All CLI Functions
Every function below can be called headlessly. The generic form is stable across all integrations;
the provider shortcut is shorter but specific to ElevenLabs.
elevenlabs.elevenlabs_text_to_speech Write write Convert text to speech audio using an ElevenLabs voice. Returns base64-encoded audio. Choose a voice ID and model ID to control the output.
voice_id, text, model_id, stability, similarity_boost, style, use_speaker_boost kosmo integrations:call elevenlabs.elevenlabs_text_to_speech '{"voice_id":"example_voice_id","text":"example_text","model_id":"example_model_id","stability":1,"similarity_boost":1,"style":1,"use_speaker_boost":true}' --json copy kosmo integrations:elevenlabs elevenlabs_text_to_speech '{"voice_id":"example_voice_id","text":"example_text","model_id":"example_model_id","stability":1,"similarity_boost":1,"style":1,"use_speaker_boost":true}' --json copy
elevenlabs.elevenlabs_list_voices Read read List all available voices in your ElevenLabs account, including pre-made and cloned voices. Use this to discover voice IDs for text-to-speech.
none kosmo integrations:call elevenlabs.elevenlabs_list_voices '{}' --json copy kosmo integrations:elevenlabs elevenlabs_list_voices '{}' --json copy
elevenlabs.elevenlabs_get_voice Read read Get detailed information about a specific ElevenLabs voice, including its settings, labels, and fine-tuning info.
voice_id kosmo integrations:call elevenlabs.elevenlabs_get_voice '{"voice_id":"example_voice_id"}' --json copy kosmo integrations:elevenlabs elevenlabs_get_voice '{"voice_id":"example_voice_id"}' --json copy
elevenlabs.elevenlabs_create_voice Write write Create a new voice clone in ElevenLabs. Provide a name, optional audio sample file paths or base64-encoded data, and an optional description.
name, files, description kosmo integrations:call elevenlabs.elevenlabs_create_voice '{"name":"example_name","files":"example_files","description":"example_description"}' --json copy kosmo integrations:elevenlabs elevenlabs_create_voice '{"name":"example_name","files":"example_files","description":"example_description"}' --json copy
elevenlabs.elevenlabs_delete_voice Write write Permanently delete a voice from your ElevenLabs account. This action cannot be undone.
voice_id kosmo integrations:call elevenlabs.elevenlabs_delete_voice '{"voice_id":"example_voice_id"}' --json copy kosmo integrations:elevenlabs elevenlabs_delete_voice '{"voice_id":"example_voice_id"}' --json copy
elevenlabs.elevenlabs_get_models Read read List all available ElevenLabs text-to-speech models, including their IDs, names, and language support. Use model IDs when calling text_to_speech.
none kosmo integrations:call elevenlabs.elevenlabs_get_models '{}' --json copy kosmo integrations:elevenlabs elevenlabs_get_models '{}' --json copy
elevenlabs.elevenlabs_get_history Read read Browse your ElevenLabs generation history. Returns a paginated list of past text-to-speech requests with metadata.
page_size, start_after kosmo integrations:call elevenlabs.elevenlabs_get_history '{"page_size":1,"start_after":1}' --json copy kosmo integrations:elevenlabs elevenlabs_get_history '{"page_size":1,"start_after":1}' --json copy
elevenlabs.elevenlabs_get_current_user Read read Get your ElevenLabs account details, including subscription tier, character usage, and remaining quota.
none kosmo integrations:call elevenlabs.elevenlabs_get_current_user '{}' --json copy kosmo integrations:elevenlabs elevenlabs_get_current_user '{}' --json copy Function Schemas Use these parameter tables when building CLI payloads without calling integrations:schema first.
Operation Write write
Schema command kosmo integrations:schema elevenlabs.elevenlabs_text_to_speech --json
Operation Read read
Schema command kosmo integrations:schema elevenlabs.elevenlabs_list_voices --json
Operation Read read
Schema command kosmo integrations:schema elevenlabs.elevenlabs_get_voice --json
Operation Write write
Schema command kosmo integrations:schema elevenlabs.elevenlabs_create_voice --json
Operation Write write
Schema command kosmo integrations:schema elevenlabs.elevenlabs_delete_voice --json
Operation Read read
Schema command kosmo integrations:schema elevenlabs.elevenlabs_get_models --json
Operation Read read
Schema command kosmo integrations:schema elevenlabs.elevenlabs_get_history --json
Operation Read read
Schema command kosmo integrations:schema elevenlabs.elevenlabs_get_current_user --json Permissions
Headless calls still follow the integration read/write permission policy. Configure read/write defaults
with integrations:configure. Add --force only for trusted automation that should bypass that policy.