---
title: "Clone an agent"
method: POST
path: "/agents/{agent_id}/clone"
tags: ["Agents"]
---

# Clone an agent

`POST /agents/{agent_id}/clone`

## Request

- Base URL: `https://api-docs.jackhamr.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api-docs.jackhamr.ai/agents/{agent_id}/clone`
- Auth: none declared

Clone an existing agent's LXC container into a new agent.

Returns 202 immediately with the new agent id; the Proxmox clone +
WireGuard setup run in the background. Poll ``GET /agents/{new_id}``
to track provisioning.

## Path parameters

- `agent_id` string, required

## Request body

- CloneAgentRequest: Request body for ``POST /api/v1/agents/{id}/clone``.
  - `name` string, required
  - `subtitle` string, nullable

## Response `202`

Successful Response

- AgentCloneResponse: Clone response — returned with 202 Accepted.
  - `agent_id` string, required
  - `source_agent_id` string, required
  - `name` string, required
  - `status` string, required
  - `message` string, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jackhamr/apis/jackhamr-api.md) · [All operations](https://skmtc.dev/jackhamr/apis/jackhamr-api/llms.txt) · [OpenAPI document](https://skmtc.dev/jackhamr/apis/jackhamr-api/revisions/f75d221481d8?raw)
