# Deploy an agent

Turn a training checkpoint into an agent with a live endpoint you can send prompts to.

## Prerequisites

- An experiment with at least one checkpoint. See [Results and checkpoints](results-and-checkpoints.md).

## Deploy a checkpoint

### Web app

1. On the project’s **Experiments** tab, click **Deploy** on the experiment’s card.
2. In **Deploy Agent**, enter a **Name** and, if you like, a **Description**.
3. Select a checkpoint. Arena preselects the one with the best evaluation score.
4. Check **GPUs** and **GPU type** (see [Inference GPUs](#inference-gpus) below).
5. Click **Deploy**. Arena opens **Agents**, where the new agent shows **Deploying**.

When the status changes to **Deployed**, the agent has an endpoint. This usually takes a minute or two, longer for large checkpoints.

You can also start from **Agents** in the sidebar: click **New Agent**, fill in **Setup** (name, source experiment, GPUs) and **Checkpoint** (**Best**, **Final** or **Custom**), then click **Create**. An agent made this way starts as **Not deployed**. Click **Connect** on its card, or **Deploy** on its page, to start it. Org **Admins** also set **Memory scope** here.

### CLI

```bash
arena experiments checkpoints gsm8k-cispo
arena agent deploy gsm8k-cispo --checkpoint 500
arena agent list
```

`--checkpoint` takes a `steps` value from the checkpoint list. Leave it out to deploy the checkpoint with the most steps. That differs from the web app, which preselects the best evaluation score. The deployment takes the experiment’s name. Leave out `--num-gpus` and `--gpu-type` to let Arena pick.

`--memory-scope` sets who the agent keeps chat sessions for: `user` (the default for a new agent) or `organization`. Redeploying without it keeps the current scope; passing it on a redeploy changes it. Only org **Admins** can set `organization`.

Flags are in the [command reference](../cli/command-reference.md).

## Inference GPUs

**GPUs** is the GPU count on the node, and each **GPU type** shows its price per hour. Arena hides options that can’t run the model and picks a default: the cheapest option that can serve 8 requests at full context, or failing that, the cheapest that runs the model at all.

- An option with a warning, such as **Only holds 3/8 sequences in KV cache**, runs the model but queues extra requests.
- If Arena can’t check a GPU type, the option says why. You can still pick it, but Arena can’t tell whether the model fits.
- **No GPU fits** means nothing can serve this model. Retrain with a shorter context length or a smaller model.
- An agent trained on your own cluster lists only that cluster’s GPUs, marked **BYOC**. See [Bring your own compute](../compute/byoc.md).

If Arena can’t size the model at all, you get a single **Resources** field instead.

## Statuses

| Status                | Meaning                                                                                                                                                         |
|-----------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|
| **Not deployed**      | The agent exists but isn’t serving. Click **Connect** (the wifi icon on its card) or **Deploy**.                                                                |
| **Deploying**         | Arena is starting the endpoint. On your own cluster it shows **Copying** first, while the weights are copied.                                                   |
| **Deployed**          | The endpoint is live.                                                                                                                                           |
| **Stopped**           | Someone stopped it, or Arena stopped it because the organization couldn’t pay for the next hour. The agent page says which. Click **Deploy** to start it again. |
| **Deployment failed** | The endpoint didn’t start. Click **Deploy** to try again.                                                                                                       |

## Stop or remove an agent

- **Disconnect** (the crossed-out wifi icon) on the card, or **Stop agent** on the agent’s page, stops the endpoint and keeps the agent. While it is still **Deploying**, the page button reads **Cancel**.
- **Delete** in the card’s menu removes the agent and its deployment. From the CLI, run `arena agent delete gsm8k-cispo`.

To send prompts to a deployed agent, see [Invoke an agent](invoke-an-agent.md).
