Skip to main content
The sandbox hotplug-memory command dynamically adjusts the memory of a running sandbox without restarting it. This is useful when a workload needs more memory than initially provisioned, or when you want to release extra memory once it is no longer needed.
Memory hotplug requires a hotplug-enabled template. Sandboxes created from templates without hotplug support cannot adjust memory at runtime.

Prerequisites

  • Set the NOVITA_API_KEY environment variable.
  • A running sandbox created from a hotplug-enabled template.

Usage

CLI
The command has the alias hp.
CLI

Arguments

The size represents the new total plugged memory, not an increment on top of the current value. It must be a multiple of the virtio-mem block size (2 MiB).

Unplug all hotplugged memory

Pass 0 to remove all previously hotplugged memory, returning the sandbox to its base allocation.
CLI

Output and errors

  • On success, the CLI prints a confirmation such as Memory hotplug complete: sandbox sbx-123 set to 2048 MiB.
  • If the sandbox ID is not found, the CLI prints Sandbox sbx-123 wasn't found and exits with code 1.
  • Any other error is printed and the CLI exits with code 1.
Last modified on August 5, 2026