ai
Retell AI CLI for Coding Agents
Use the Retell AI CLI for coding agents with headless JSON commands, schema discovery, credentials, and permission controls.
7 functions 5 read 2 write Bearer token auth
Retell AI 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 Retell AI CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.
Command Shape
# Retell AI CLI for Coding Agents
kosmokrator integrations:configure retell --set access_token="$RETELL_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call retell.retell_list_calls '{"limit":1,"filter_criteria":"example_filter_criteria","before":"example_before","after":"example_after"}' --json Discovery Before Execution
Agents and scripts can inspect Retell AI docs and schemas before choosing a function.
kosmo integrations:docs retell --json
kosmo integrations:docs retell.retell_list_calls --json
kosmo integrations:schema retell.retell_list_calls --json
kosmo integrations:search "Retell AI" --json
kosmo integrations:list --json Useful Retell AI CLI Functions
| Function | Type | Parameters | Description |
|---|---|---|---|
retell.retell_list_calls | Read | limit, filter_criteria, before, after | List AI voice calls from Retell. Supports filtering by criteria and cursor-based pagination using before/after timestamps. |
retell.retell_get_call | Read | call_id | Get detailed information about a specific AI voice call, including transcript, duration, and status. |
retell.retell_create_phone_call | Write | agent_id, metadata, retell_llm_dynamic_variables | Create a new AI-powered phone call using a Retell AI agent. The agent will handle the conversation automatically. |
retell.retell_list_agents | Read | none | List all AI voice agents configured in Retell AI. Returns agent IDs, names, and configuration details. |
retell.retell_get_agent | Read | agent_id | Get detailed information about a specific AI voice agent, including its model, voice, prompt, and configuration. |
retell.retell_create_agent | Write | model, voice_id, prompt, response_engine | Create a new AI voice agent in Retell AI. Configure the model, voice, system prompt, and response engine. |
retell.retell_get_current_user | Read | none | Get information about the currently authenticated Retell AI user. Useful for verifying credentials and account details. |
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.