Skip to main content
Creates a new Roark-hosted agent from a one-line job description. Roark authors the system prompt and hosts the config, so the agent is live and self-improvable from creation.
Calls POST /v1/agent/build

Options

string
required
Name of the agent.
string
required
One-line description of what the agent should do. Roark authors the system prompt from this.
string
Optional display name of the agent’s voice. The authored prompt matches its delivery to it.
object
Optional provider voice the hosted agent speaks with.
string
required
Text-to-speech provider, for example ELEVENLABS. One of CARTESIA, ELEVENLABS, OPENAI, RIME
string
required
The provider’s id for the voice.
string
The provider’s voice model, for example eleven_flash_v2_5. Its current one when omitted.
object
Optional transcriber the hosted agent hears with. Roark’s default when omitted.
string
required
Speech-to-text provider, for example DEEPGRAM. One of DEEPGRAM, OPENAI_WHISPER, SPEECHMATICS, ASSEMBLYAI, ELEVENLABS
string
required
The provider’s model id, for example nova-3.
object
Optional text model the hosted agent thinks with. Roark’s default when omitted.
string
required
Text model provider, for example OPENAI. One of OPENAI, ANTHROPIC, GOOGLE, XAI, ULTRAVOX, AWS, ELEVENLABS
string
required
The provider’s model id, for example gpt-4.1.

Example

Every command also takes the global options and sets one of the exit codes.