ai
ElevenLabs CLI for Coding Agents
Use the ElevenLabs CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
6 functions 4 read 2 write API key auth
ElevenLabs CLI for Coding Agents
Let coding agents discover schemas and execute integration functions through CLI commands or MCP.
Use this pattern when another coding agent needs exact commands and schema discovery. The ElevenLabs CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# ElevenLabs CLI for Coding Agents
kosmokrator integrations:configure eleven-labs --set api_key="$ELEVEN_LABS_API_KEY" --enable --read allow --write ask --json
kosmo integrations:call eleven-labs.elevenlabs_list_voices '{"limit":1,"page":1}' --json Discovery Before Execution
Agents and scripts can inspect ElevenLabs docs and schemas before choosing a function.
kosmo integrations:docs eleven-labs --json
kosmo integrations:docs eleven-labs.elevenlabs_list_voices --json
kosmo integrations:schema eleven-labs.elevenlabs_list_voices --json
kosmo integrations:search "ElevenLabs" --json
kosmo integrations:list --json Useful ElevenLabs CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
eleven-labs.elevenlabs_list_voices | Read | limit, page | List available ElevenLabs voices. Returns voice names, IDs, labels, and preview URLs. Use this to discover voices for text-to-speech generation. |
eleven-labs.elevenlabs_get_voice | Read | voice_id | Get detailed information about a specific ElevenLabs voice by its ID, including name, labels, description, and preview URL. |
eleven-labs.elevenlabs_generate_speech | Write | text, voice_id, model_id, stability, similarity_boost | Generate speech audio from text using an ElevenLabs voice. Returns base64-encoded audio. Specify a voice ID and model, with optional stability and similarity boost settings. |
eleven-labs.elevenlabs_generate_sound | Write | text, model_id | Generate a sound effect from a text description using ElevenLabs. Returns base64-encoded audio. Describe the sound you want (e.g., "thunder rumbling in the distance"). |
eleven-labs.elevenlabs_list_models | Read | limit, page | List available ElevenLabs models. Returns model IDs, names, descriptions, and capabilities. Use this to find the right model for speech or sound generation. |
eleven-labs.elevenlabs_get_current_user | Read | none | Get the current ElevenLabs user profile, subscription tier, and character usage information. |
Automation Notes
- Use
--jsonfor machine-readable output. - Keep credentials out of argv by using environment variables or stored KosmoKrator configuration.
- Configure read/write policy before unattended runs; use
--forceonly for trusted automation. - Use the MCP gateway instead when the agent needs dynamic tool discovery inside a conversation.