# Manage VPSs with lt

The easiest way to create a machine is to ask your AI ([Get started](/get-started/)). With the
CLI:

See the operating systems and sizes you can choose:

```sh
lt vps catalog
```

Create a VPS and wait until it is running:

```sh
lt vps create --name my-vps --wait
```

Without `--wait`, `lt` returns as soon as the request is accepted; the VPS is not ready yet.

## Choose a size

The catalog's configurations are presets; the default one is the biggest size your plan gives one
machine (with a one-machine plan of 4 vCPUs and 8 GiB, that is 4 vCPUs and 8 GiB). You can also ask for your own size: any number of
vCPUs, RAM in 0.25 GiB steps and a root disk in GiB, inside the range `lt vps catalog` shows
under "Custom sizes". Anything you leave out comes from the default configuration.

```sh
lt vps create --name my-vps --vcpus 3 --memory-gib 5 --root-disk-gib 40 --wait
```

You pay per vCPU-hour, per GiB of RAM-hour and per GiB of disk-month, so a custom size costs the
same as a preset of the same size. `lt` shows an estimate per month when your role can see
billing. Change the size later with `lt vps resize`.

## Choose a class

Normal is the standard VPS and the default; KVM lets you run your own VMs inside. Pick one with
`--class base` or `--class kvm`, or in the dashboard. KVM is turned on per Account on request
(`lt support`). See [VPS classes](/vps-classes/).

List your VPSs and their state:

```sh
lt vps list
```

See how much CPU, memory and disk your VPSs use, and whether a disk is nearly full:

```sh
lt vps stats            # every VPS
lt vps stats my-vps     # one VPS, with the last hour (--window 24h or 7d for longer)
```

## Rename, restart and check your limits

```sh
lt vps rename my-vps web        # a new name; the VPS keeps running, nothing else changes
lt vps restart web --yes --wait # stop it, then start it again
lt account limits               # your team's limits and what counts against them
```

`lt vps restart` ends every process in the VPS and boots it again; files, the address, ports and
share links stay. Without `--yes` it asks first. `lt account limits` shows, for VPSs, vCPUs, RAM
and disk, how much your team uses out of its limit, for example `vCPUs: 4 / 16`. Stopped VPSs
still count for disk but not for vCPUs and RAM.

## Put a VPS to sleep

```sh
lt vps hibernate my-vps --wait  # save its memory and stop it
lt vps start my-vps             # wake it where it left off
```

Sleep (hibernate) stops a running VPS but first saves its memory, so `lt vps start` wakes it with
its processes, open files and shells still running, and its clock catches up. Network connections
may drop, so reconnect your terminal: `lt term my-vps` on a sleeping VPS wakes it by itself, as
`ssh` does. While it sleeps the VPS shows as **Sleeping**. In the
dashboard, **Sleep** is next to **Stop** on a running VPS.

If the memory
can't be saved, the VPS is stopped normally instead (its processes end) and `--wait` says so.
Resizing a sleeping VPS or restoring its disk from a snapshot makes the next Start a cold boot.
A KVM-class VPS can't sleep ([VPS classes](/vps-classes/)).

## Delete and restore a VPS

```sh
lt vps delete my-vps            # asks you to type the VPS ID; --yes in scripts
lt vps undelete my-vps          # bring it back, stopped
lt vps start my-vps
lt vps delete my-vps --now      # delete for good, no restore
```

`lt vps delete` stops the VPS and keeps it, with its disk, for the platform's retention period (7
days by default); it prints the exact time it will be deleted for good. Until then its disk is
still billed and still counts against your team's limits, and you can't start or connect to it.
`lt vps list --all` shows it as "Deleted, restorable until …". `lt vps delete --now` deletes the
VPS and its disk and snapshots right away; it can't be restored.

## Your user on the VPS

You log in as the user `dev`, which can use `sudo` without a password. Claude Code, Codex,
Node.js and pnpm are installed for it.

Next: [connect to your VPS](/connect/).