> ## Documentation Index
> Fetch the complete documentation index at: https://docs.thaloz.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Start your first machine

> Install the thz CLI, sign in, and run a command on a cloud Linux machine.

Use a Thaloz Box account with an active plan. If you're new to the beta, sign in with GitHub and enter your invite code in the [dashboard](https://app.thaloz.ai/signin).

## Install thz

On macOS or Linux, install `thz` into `~/.local/bin` and point it at Thaloz Box.

```sh theme={null}
curl -fsSL https://app.thaloz.ai/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
export THZ_API_URL=https://app.thaloz.ai
thz --help
```

## Sign in

Run `thz login` and follow the link and code from your terminal. Sign in with GitHub and approve the code in your browser. Then check your account in the terminal.

```sh theme={null}
thz login
thz whoami --json
```

If `state` is `payment_due`, top up your wallet in the dashboard so the plan can start. See the [billing reference](https://app.thaloz.ai/docs/billing.md) for what your account state means.

## Run a command and clean up

Start a machine named `first-box` and print its Linux kernel name. Then delete the machine to finish the walkthrough.

```sh theme={null}
thz new --name first-box
thz exec first-box -- uname -s
thz rm first-box --yes
```

`uname -s` prints `Linux`. The [machine reference](https://app.thaloz.ai/docs/machines.md) covers sizes, file transfer, and automatic stops.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.