---
title: "Resize Agent"
method: POST
path: "/api/agents/{agent_id}/resize"
tags: ["agents"]
---

# Resize Agent

`POST /api/agents/{agent_id}/resize`

## Request

- Base URL: `https://api.maritime.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.maritime.sh/api/agents/{agent_id}/resize`
- Auth: HTTP bearer

Change an agent's RAM / SSD allocation or always-on state.

RAM and disk apply on the agent's next restart (snapshots pin the old
memory size; no live resize). Always-on applies immediately: the idle
monitor reads idle_ttl_seconds from the DB each sweep.

Seats accounts (plan 27 v2): paid plans may resize freely, add-ons
accrue per day from tonight's accrual; the free tier cannot exceed the
base allocation. Wallet (grandfathered) accounts resize freely and are
never billed for it.

## Path parameters

- `agent_id` string, required

## Request body

- ResizeBody
  - `mem_mb` integer, nullable
  - `disk_gb` integer, nullable
  - `always_on` boolean, nullable

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

---

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