# Thaloz Box > Cloud Linux machines for coding agents and CI. You start a Linux machine with one command, run commands in it, copy files in and out, and stop or delete it. Machine time is billed by the second from a prepaid wallet. This file tells a coding agent how to install the `thz` command line, get a key from its owner without a browser, and start a machine. The service address is https://app.thaloz.ai. Every `thz` command reads it from `THZ_API_URL`. ## Install thz `thz` is one file for Linux and macOS on x86_64 or arm64, and for Windows on x86_64. On Linux or macOS the install script puts it in `~/.local/bin`: ```sh 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 ``` On Windows, in PowerShell, the install script puts it in `%LOCALAPPDATA%\Programs\thz` and adds that folder to your `PATH`: ```powershell irm https://app.thaloz.ai/install.ps1 | iex $env:THZ_API_URL = 'https://app.thaloz.ai' thz --help ``` Both scripts install `thz` only when the Thaloz Box release key signed the release's `SHA256SUMS` and the checksum of `thz` is in it. They check the signature with `ssh-keygen` from OpenSSH 8.1 or newer. Each `ssh-keygen` found must first verify a test signature built into the script. Where none does, as in many slim containers and on Windows 10 without Git for Windows, the script installs nothing and says why. `install.sh` exits 1, and `install.ps1` stops with an error. You then have two choices. Prefer the first. 1. Install a verifier and run the script again. On Debian or Ubuntu run `apt-get update && apt-get install -y openssh-client`, on Alpine `apk add openssh-keygen`, and on Fedora `dnf install -y openssh-clients`. macOS has one built in. On Windows, install Git for Windows (`winget install --id Git.Git -e`) or a current Win32-OpenSSH. The OpenSSH 7.7 that Windows 10 ships is too old. 2. Skip the signature check, when you cannot install a package. Run `curl -fsSL https://app.thaloz.ai/install.sh | THZ_INSTALL_UNVERIFIED=1 sh`, or in PowerShell run `$env:THZ_INSTALL_UNVERIFIED = '1'` before `irm https://app.thaloz.ai/install.ps1 | iex`. The script still checks the checksum, and it warns that nothing shows the build comes from Thaloz Box. Wherever a working verifier is installed, it is always used: a bad signature is refused even with `THZ_INSTALL_UNVERIFIED=1`. To install `thz` somewhere else, set `THZ_INSTALL_DIR` to a full path for the script. ## Get a key from your owner You need a key before any other command works. If your owner gave you one, set `THZ_API_KEY` to it and skip this section. Otherwise, ask your owner for one with a code. Your owner needs a GitHub account and, for a new account, an invite code. 1. Start a claim. Give it a name your owner will recognize: ```sh thz login --agent --name "build bot" --no-wait --json ``` The output has `verificationUrl` and `userCode`. 2. Show your owner the link and the code. Ask them to open the link, sign in with GitHub, enter the code, and choose **Approve**. A new owner also enters their invite code there. 3. Take the key: ```sh thz login --agent --json ``` This waits until your owner decides. It prints the account, never the key, and saves the key in `~/.config/thz/credentials`. 4. Check it: ```sh thz whoami --json ``` `keyPreset` is `machines`. If `state` is `payment_due`, your owner must pay before machines can start. See [Billing](/docs/billing.md). The code works for 15 minutes and once. If your owner chooses **Refuse**, `thz login --agent` exits 3 with `claim_refused`. If the code ran out, it exits 3 with `claim_expired`, and the next `thz login --agent --name ...` starts a new claim. The full flow, also over plain HTTP, is in [auth.md](/auth.md). ## Start a machine ```sh thz new --name task-1 --json thz exec task-1 --json -- 'uname -a' thz rm task-1 --yes --json ``` A machine stops by itself 30 minutes after it starts, unless you pass `--stop-after`. ## Docs - [auth.md](/auth.md): how an agent gets a key, the presets it can ask for, and the HTTP calls behind `thz login --agent`. - [Machines](/docs/machines.md): every machine command, sizes, states, auto-stop, files and exit codes. - [Billing](/docs/billing.md): the plan, the wallet, starts and their limits, and what `payment_due` means. - [Errors](/docs/errors.md): every error code, its HTTP status, whether to retry, and the exit code `thz` gives it. ## Skill file To keep these instructions, run `thz skills install`. It writes `thz-box/SKILL.md` into `.agents/skills`. Pass `--dir .claude/skills` or your own skills folder to write it there.