Deploy an agent to the platform.
Called by CLI after pushing the container image to the registry. Creates or updates agent, branch, and version records.
The deployment is asynchronous - poll GET /branches/ for status updates until status is READY or FAILED.
Flow:
Documentation Index
Fetch the complete documentation index at: https://docs.terminaluse.com/llms.txt
Use this file to discover all available pages before exploring further.
GET /branches/{branch_id}
for status updates until status is READY or FAILED.Request model for deploying an agent.
Called by CLI after pushing the container image to the registry.
Agent name in 'namespace_slug/agent_name' format (lowercase alphanumeric, hyphens, underscores)
^[a-z0-9][a-z0-9_-]*/[a-z0-9][a-z0-9_-]*$Git commit author email
Git commit author name
Git branch name (e.g., 'main', 'feature/new-tool')
Git commit hash (short or full)
7 - 40Full container image URL (e.g., 'us-east4-docker.pkg.dev/proj/repo/agent:hash')
ACP server type (sync or async)
sync, async If true, running tasks stay on their original version until completion during this deploy. If false or None, tasks are migrated to the new version immediately.
Agent description (used when creating new agent)
Git commit message (truncated if too long)
500Whether the working directory had uncommitted changes at deploy time
Desired replica count (1-10)
1 <= x <= 10Resource requests and limits (e.g., {'requests': {'cpu': '100m', 'memory': '256Mi'}, 'limits': {'cpu': '1000m', 'memory': '1Gi'}})
SDK type for agent runtime
claude_agent_sdk, codex_agent_sdk Filesystem snapshot containing the deploy source for Builder reopenability
Successful Response
Immediate response from deploy request.
CLI polls GET /branches/{branch_id} or GET /versions/{version_id} for status updates.
Agent ID (created or existing)
Branch ID for this git branch
Human-readable status message
New version ID
Initial version status
DEPLOYING, ACTIVE, FAILED, UNHEALTHY, DRAINING, RETIRED, ROLLED_BACK Number of tasks migrated from old version (if any)