> ## Documentation Index
> Fetch the complete documentation index at: https://docs.castari.com/llms.txt
> Use this file to discover all available pages before exploring further.

# cast stop

> Stop a running agent

# cast stop

Stop a running agent and destroy its sandbox.

## Usage

```bash theme={null}
cast stop <slug>
```

## Arguments

| Argument | Description | Required |
| - | - | - |
| `slug` | The agent's unique slug | Yes |

## Example

```bash theme={null}
cast stop my-agent
```

> [!WARNING]
>
> Stopping an agent destroys its sandbox. All files and state inside the sandbox will be lost. The agent can be redeployed with `cast deploy`.

## What Happens

1. The agent's sandbox is destroyed via `DELETE /agents/{slug}/sandbox`
2. The agent status changes to `stopped`
3. The agent can no longer receive invocations until redeployed

## See Also

* [cast deploy](https://docs.castari.com/cli/deploy.md) — Deploy or redeploy an agent
* [Agents API](https://docs.castari.com/sdk/agents.md) — `agents.stop()` SDK method


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.