# Sleep, limits and plans

## Sleep and wake

Sleep saves the machine's memory and stops it. While it sleeps it shows as **Sleeping** and uses
no compute.

It wakes when you use it again, with its programs, open files and shells as they were and its clock
caught up:

- you connect with `ssh` or `lt term`,
- your AI uses it (a terminal session, the screen, a command),
- someone opens one of its share links,
- or you press **Start** (or your AI starts it).

A wake takes a few seconds; the first connection waits for it. Network connections that were open
when it went to sleep may have dropped, so reconnect.

To put a machine to sleep, ask your AI ("put first-box to sleep"), choose **Sleep** in the
dashboard, or run `lt vps hibernate first-box`. If the memory can't be saved, the machine is
stopped normally instead, and its programs end.

A **stopped** machine is different: its programs ended and it stays stopped until you start it.
Its files are kept.

A KVM-class machine can't sleep ([VPS classes](/vps-classes/)). Some of our servers can't save
a machine's memory yet: Sleep on a machine running there is refused with a message, and its
programs keep running; use Stop if you want it off.

## Limits

Your account has limits on machines, vCPUs, memory and disk. The dashboard's machines page shows
them with what you use now and the plan they come from (paid, an upgrade code, your free month
or set by LiveTerminal) and when it ends; ask your AI ("what are my limits?") or run `lt account limits`. Stopped
machines count for disk, not for vCPUs and memory. A deleted machine you can still restore
counts for disk and machines until you restore it or delete it for good
(`lt vps delete NAME --now`).

When a limit is full, stop or delete a machine, choose a bigger plan in **Billing**, or apply an
upgrade code.

### Upgrade codes

An upgrade code moves your account to a plan. An owner of the account applies it on the machines page
(**Apply an upgrade code**) or with `lt account redeem CODE`. Before anything changes you see the plan the code
moves you to, how long it lasts and each limit now and with the code, in red when one goes down;
**Apply** applies it, **Cancel** changes nothing. Each limit the code's plan sets replaces the one
from your free plans (your free month, an earlier code), higher or lower; the others stay. A paid
plan still comes first, so a free code is refused while you pay for a plan or are in a trial. A
code may last a set time: then your limits go back to what they were without it. Your machines keep running, but you can't create or
start more until you are under the limits again. Some codes are free: while they last they are
your plan, with the limits the code gives, and you need no plan, even after your free month. A code works once, or once per account. On a
free machine or account you started without signing in, verify your email first: the dashboard
asks for your email and the code it mails you, under the limits and on Billing; until then the
code is refused. Some offers are open only to accounts verified in some countries: from other
countries, the code isn't applied yet but is saved for a daily random draw, and when your account
is picked we apply it and email you.

When your AI creates a machine without naming a size, it gets the largest size your limits allow.

## Plans

**Billing** shows your plan, every plan you have been on (where each came from and its dates), this month's usage and your limits.

- **Friends:** your free month, with no card, where the free trial is offered (not every country
  yet; elsewhere liveterminal.ai shows only the paid plans). 1 machine with 1 vCPU, 4 GB of memory and a 20 GB
  disk, for 30 days from the day you keep your machine. When it ends, choose a plan in Billing to
  keep going: until then your machines can't be created, started or woken.
- **Free trial:** Mini, 1 vCPU, 4 GB RAM for 30 days (1 machine, 20 GB disk). First check your
  identity in **Billing** (a photo of your ID and a selfie); if your ID is from one of the
  free-trial countries, Billing then shows **Start your free trial**. We hold $1 to check your card
  and release it at once. After 30 days Mini continues at $4.99/month; you can turn auto-renewal off
  anytime in **Billing**. Three days before the trial ends you get an email.
- **Mini:** $4.99/month, 1 machine with 1 vCPU, 4 GB RAM and a 20 GB disk. Lite and Starter have
  no free trial.

A machine you started on liveterminal.ai but didn't keep with your email is deleted after a short
time ([Get started](/get-started/#4-keep-it)).

New accounts start on [liveterminal.ai](https://liveterminal.ai) ([Get started](/get-started/)).