# Install the CLI

`lt` is the LiveTerminal command-line tool. You don't need it: your AI and the dashboard do
everything on the [getting-started path](/get-started/). Use `lt` when you prefer your own
terminal, for scripts and CI, or for file copies. It runs on Linux (glibc 2.36 or later), on
x86-64 and ARM64. The macOS builds (Apple Silicon and Intel) are built for macOS 15 or later;
they are cross-built and checked on Linux and have not yet been tried on a real Mac.

## Install

```sh
curl -fsSL https://get.liveterminal.ai/install.sh | sh
```

The installer puts `lt` in `~/.local/bin` and adds that folder to your `PATH` in Bash or Zsh. Open a
new terminal, or run the `PATH` command it prints, then check:

```sh
lt --version
```

The download also includes Mosh for `lt term`. On macOS, the installer checks that Mosh can
read the system's terminal definitions before replacing either program. If it reports that
Mosh cannot read those definitions, the existing installation stays in place; use a corrected
release rather than changing your terminal settings.

You can read the script first at
[get.liveterminal.ai/install.sh](https://get.liveterminal.ai/install.sh). To update `lt`, run
`lt update`: it downloads the newest release, checks its SHA-256 like the installer and replaces
`lt` only when every check passes (`lt update --check` only reports). An `lt` installed by a
package manager is left to that package manager; running the install command again also updates.
When a command reports `client_outdated`, that is what it needs.
Once a day `lt` checks for a newer release and, when there is one, prints a one-line notice with
the update command after a command's output. `lt version --check` checks now. Set
`LT_NO_UPDATE_CHECK=1` to turn the check off; the notice never shows with `--json`, in CI or when
output is redirected.

## Sign in

```sh
lt auth login
```

Your browser opens. Sign in, then approve the CLI. On a terminal, `lt` then offers a one-minute
guided first run: it creates a machine `first-box`, logs your agent in on it, shows its screen,
and ends by setting up SSH and printing the command to connect, `ssh first-box.lt.internal`. Run
it again any time with `lt start`. The login stays valid while you use it: it
ends 7 days after you last ran a command, and at most 30 days after you signed in. When a
command asks you to sign in again, run `lt auth login`
again. `lt auth devices` lists where you are signed in and signs a computer out.

Check who you are signed in as:

```sh
lt auth status
```

If the browser doesn't open by itself, add `--no-browser` and open the printed link yourself,
in a browser on the same computer where you run `lt`:

```sh
lt auth login --no-browser --api-origin https://app.liveterminal.ai
```

On a LiveTerminal VPS you don't need to sign in: `lt` there acts as the VPS itself, in the
VPS's Account, with the VPS's own role. A new VPS may list the Account's VPSs and resize itself:
run `lt vps list` on it and it works. `lt auth status` shows
`Acting as VPS work (vps_…) itself, with the VPS's own role`. The platform renews this identity
by itself and ends it when the VPS stops. Anyone or any agent with root on the VPS has that role,
and no more: it can't create API tokens, sign in to the dashboard, or touch members, billing or
your other Accounts.

To let the agents on a VPS do more, an owner raises its role from a laptop, for example so they
can create VPSs (each VPS they create belongs to you, and they may connect to, stop, start and
delete it):

```sh
lt vps access role work --allow vps.create
lt vps access show work
```

`lt vps access role work --default` goes back to the default; `--off` turns it off. The machine's
**Access** section in the dashboard shows the same role; an owner can change it there, and its
creator can lower it or turn it off. To act as
yourself on the VPS, run `lt auth login` there.

To sign this computer out:

```sh
lt auth logout
```

Next: [create a VPS](/create-a-vps/).