# Install options (https://kumoba.dev/install)

The [getting started guide](/getting-started) uses the installer. These are all the ways to get kumoba.

| What | How |
| --- | --- |
| Daemon, CLI and an image | `curl -fsSL https://kumoba.dev/install.sh \| bash` |
| A specific version | Add `KUMOBA_VERSION=0.18.0` before `bash` |
| A small test image instead | Add `KUMOBA_IMAGE=test` (5 MB Alpine) |
| The files by hand | A tarball and an image from the [latest release](https://github.com/Parassharmaa/kumoba/releases/latest), checked against `SHA256SUMS` |
| Daemon and CLI from source | `cargo install kumobad` |
| CLI through npm | `npm install -g kumoba`, or `npx kumoba <command>` |
| TypeScript SDK | `npm install kumoba` |
| Rust library | `cargo add kumoba` |

## Requirements [#requirements]

| Host | Needs |
| --- | --- |
| macOS 14 or later, Apple silicon | `brew tap slp/krun && brew install slp/krun/libkrun slp/krun/libkrunfw zstd` |
| Linux, x86_64 or arm64, glibc 2.28 or later (RHEL 8, Ubuntu 20.04 and newer) | Write access to `/dev/kvm`, and `zstd`. The release includes the libkrun build kumoba needs. |

You need about 2 GB of free disk for the `default` image. `scripts/check-host.sh` in the repository checks a machine and estimates how many sandboxes fit in its memory.

## Sign the worker after `cargo install` (macOS) [#sign-the-worker-after-cargo-install-macos]

The worker needs the Hypervisor.framework entitlement for Linux sandboxes and the Virtualization.framework entitlement for macOS sandboxes. The release build already has both; a `cargo install`ed one needs signing:

```sh
cat > hvf.plist <<'PLIST'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"><dict><key>com.apple.security.hypervisor</key><true/><key>com.apple.security.virtualization</key><true/></dict></plist>
PLIST
codesign --force --sign - --entitlements hvf.plist "$(which kumoba-worker)"
```

## Build the live view engine for macOS sandboxes [#build-the-live-view-engine-for-macos-sandboxes]

The [live view of a macOS sandbox](/guide/macos#see-the-screen) is served by `kumoba-view-host`, which `kumobad` starts from the directory it is in. The release build includes it. It is not on crates.io, so after `cargo install` build it from the repository:

```sh
git clone https://github.com/Parassharmaa/kumoba && cd kumoba
cargo build --release -p kumoba-view
cp target/release/kumoba-view "$(dirname "$(which kumobad)")/kumoba-view-host"
```

Linux sandboxes don't need it: their engine is inside the image.