<!-- The Markdown copy of https://kracht.ai/cli, made from the same build as the page. -->

Title: Kracht · Install the CLI
URL: https://kracht.ai/cli

CLI

# Install the Kracht CLI.

One command on macOS or Linux, checksummed before it runs. The macOS build is notarized by Apple.

renter · kracht · sample

$ kracht launch --gpu 1 --region us-east --ssh

Rented 8fa2c1d0 on H100 80GB (us-east) at 1.600000 USD/hr

Billing starts once it is running. Stop it with: kracht stop 8fa2c1d0

Waiting for it to finish provisioning...

root@kracht:~#

provider · install.sh

$ curl -fsSL cp.kracht.ai/install.sh | sudo bash \

-s -- --enrollment-token <token>

install the node agent

$ sudo systemctl status kracht-node-agent

Active: active (running)

## Homebrew, on macOS

Three lines. The first one is not optional and is easy to miss.

```
brew trust kracht-ai/tap
brew tap Kracht-AI/tap
brew install --cask kracht
```

Homebrew reports an untrusted tap as Invalid cask, which reads like a broken recipe. Run brew trust first and it installs normally.

## Shell, on macOS or Linux

macOS 12 or later, and Linux on x86_64 and arm64 with any C library: the binary is static. The script refuses to install a download that fails its checksum.

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

--version <tag>

Install a specific release instead of the current one.

--dir ~/.local/bin

Install somewhere else. The default is /usr/local/bin, which needs sudo on most machines.

Pass them after a double dash, like curl -fsSL https://kracht.ai/install | sh -s -- --dir ~/.local/bin.

## Windows

No Windows installer yet, but x86_64 and arm64 archives are published with every release.

dl.kracht.ai/latest returns the current tag. Each archive holds a single binary: put it on your PATH. Windows 10 or later.

The Windows binary is not code-signed yet, so SmartScreen may ask before it first runs. Check it against checksums.txt first.

```
curl -fsSL https://dl.kracht.ai/latest
https://dl.kracht.ai/<tag>/kracht_<version>_windows_x86_64.zip
https://dl.kracht.ai/<tag>/kracht_<version>_windows_arm64.zip
```

## What you can check.

### Checksums, on every build

Both install paths verify against the published checksums file. The shell installer prints checksum ok, or stops.

computed: derived from real inputs, source checksums.txt, published per release

### Signed and notarized on macOS

Signed with an Apple Developer ID and notarized, so Gatekeeper opens it. One universal binary covers Apple silicon and Intel.

verified: checked by someone outside Kracht, source Apple notary service

## What it does, and does not.

- does: login, whoami: sign in with an API key and see who you are and your balance
- does: launch, ls, stop: rent a card, list your rentals, stop paying
- does: connect, ssh: the route in, and a shell once it is ready
- does: checksums verified before anything lands; the macOS build notarized
- does not: no Windows installer yet; the archives are downloadable above
- does not: no Python SDK yet; the REST API under /v1 is the programmatic surface
- does not: no reservations, because none exist: a launch is matched or refused

## Every command.

kracht(1) kracht · commands

Name

kracht - rent a GPU by the second from the command line

Synopsis

kracht <command> [flags]

Commands

$ kracht login

Save your API key

$ kracht launch --gpu 1 --region us-east --ssh

Rent a card and open a shell

$ kracht ls

What you are running

$ rocm-smi

Check the GPU (an NVIDIA host takes nvidia-smi)

$ kracht stop <instance>

Stop, and stop paying

$ kracht idle-stop <instance> 30 --save-disk

Or let it stop itself when idle, disk kept

$ kracht watch

Hear when it stops, idles, or a price drops

## Confirm it worked.

This prints the version you installed.

```
kracht version
```

If your shell cannot find it, the install directory is not on your PATH. The installer says so when it finishes, and names the directory it used.

Next: the [documentation](https://kracht.ai/documentation) covers launching a GPU and connecting to it. Providers listing a machine want the [provider setup](https://kracht.ai/products/compute/providers) instead, which installs a different program.
