How do I install NativeCluster and the nativecluster command?
Run the install line, curl -fsSL https://nativecluster.com/install.sh | sh (an agent, with the person's OK), or install it with Homebrew, brew install --cask nativecluster/tap/nativecluster, or download the dmg and drag NativeCluster to Applications. Then an AI agent starts it itself, its person there or not, with nativecluster setup --accept-terms (since 0.4.21), or a person finishes its first setup in its window and signs the command in with nativecluster login.
Fetch the complete documentation index at https://www.nativecluster.com/llms.txt
# How do I install NativeCluster and the nativecluster command?
> Run the install line, `curl -fsSL https://nativecluster.com/install.sh | sh` (an agent, with the person's OK), or install it with Homebrew, `brew install --cask nativecluster/tap/nativecluster`, or download the dmg and drag NativeCluster to Applications. Then an AI agent starts it itself, its person there or not, with `nativecluster setup --accept-terms` (since 0.4.21), or a person finishes its first setup in its window and signs the command in with `nativecluster login`.
## What it needs
- A Mac with Apple silicon (M1 or later), on macOS 13 Ventura or later.
- A NativeCluster account. Signing in happens in the person's own browser. An AI agent needs none to start, its person there or not: since 0.4.21, `nativecluster setup` gets it an identity of its own, and a person claims the cluster later.
- The internet: to register a new cluster's name, for every sign-in, for each model and app download, for the update check, and for the group's record, which each computer checks when someone signs in and regularly while it runs. Prompts and answers never need it.
NativeCluster is free. Every Mac in a cluster runs it. To check a Mac: `uname -m` says `arm64` on Apple silicon, and `sw_vers -productVersion` gives the macOS version.
## Install the app
### With the install line
Since 0.4.19, one line in Terminal installs NativeCluster. An agent runs it only with the person's OK.
```sh
curl -fsSL https://nativecluster.com/install.sh | sh
```
- It installs NativeCluster in Applications (in `~/Applications` when you can't write to `/Applications`), puts the `nativecluster` command in `~/.local/bin`, and opens NativeCluster. In zsh or bash it also puts `~/.local/bin` on your PATH, with the same lines **Install the nativecluster command…** adds; in another shell it prints the line to add.
- Before it opens or copies anything, the download must have the exact SHA-256 the script names, our team's signature and Apple's notarization. The app inside is checked the same way, and again once copied.
- It never uses sudo, and never replaces a NativeCluster already on the Mac, which keeps itself up to date.
- When a check fails, it changes nothing and says why.
- A terminal that was already open, an agent's included, doesn't see the command: call `~/.local/bin/nativecluster`, or open a new terminal.
- It doesn't link `ncdev`: **Install the nativecluster command…** does (below).
It ends by naming what's left, once. Since 0.4.23 the agent's start comes first: an AI agent, its person there or not, runs `nativecluster setup --accept-terms --email <its person's email>` ([below](https://www.nativecluster.com/docs/install.md#its-first-setup-by-an-ai-agent)); a person at the Mac signs in to NativeCluster in its window instead, then runs `nativecluster login`.
### With Homebrew
Since 0.4.20, Homebrew installs NativeCluster too, on a Mac where `brew` is there. An agent runs it only with the person's OK.
```sh
brew install --cask nativecluster/tap/nativecluster
```
- It installs the same release in Applications, and puts the `nativecluster` command and `ncdev` in Homebrew's `bin`, already on your PATH. Then open NativeCluster: `nativecluster open` (before 0.4.22, `open -a NativeCluster`).
- Homebrew refuses a download whose SHA-256 isn't the one its cask names. NativeCluster updates itself from then on, so `brew upgrade` leaves it be.
- If NativeCluster is already in Applications, Homebrew stops with "It seems there is already an App": it's installed, so leave it as it is. Never make Homebrew replace it.
### From the dmg
1. Download [NativeCluster.dmg](https://updates.nativecluster.com/NativeCluster.dmg). It is always the newest release.
2. Open it and drag NativeCluster to Applications.
3. Open NativeCluster from Applications.
You never download it by hand again: NativeCluster updates itself. To look for an update now, choose **Check for updates** in its menu bar menu, then **Install and Restart**.
## Its first setup, in its window
A new Mac shows **Welcome to NativeCluster** with **Sign in with your browser**. After the person signs in:
- An account with no cluster and no invitation goes on to **Name my cluster**. The person who makes a cluster is its owner. NativeCluster then asks **What will this Mac do?**: **The main**, which holds the group's shared data and its always-on work and runs its models, or **Just using it**, which uses the cluster's apps and runs no models.
- An account with a cluster or an invitation goes on to **Join …?**. Joining needs this Mac on the office network with the main, or a Thunderbolt cable to it, and the six-digit PIN an administrator reads out.
The first Mac of a cluster needs no PIN. A Mac is in one cluster at a time. See [Several Macs, one cluster](https://www.nativecluster.com/docs/cluster.md).
## Its first setup, by an AI agent
Since 0.4.21, an AI agent can set up a Mac where nobody has set NativeCluster up, its person there or not:
```sh
nativecluster setup --accept-terms --email jane@acme.com
```
It makes the Mac the main of a new cluster, with its inference on and the agent its owner, and signs the agent in on this Mac, with no browser. `--accept-terms` accepts NativeCluster's Terms of Service and Privacy Policy, which bind whoever uses NativeCluster, a person or an AI agent. `--email` names the person who may claim the cluster later; they sign in on the link `nativecluster claim` prints, or at the Mac. It always starts a new cluster: a Mac that should join one is joined by a person, in the window, with a PIN. See the [quickstart](https://www.nativecluster.com/docs/quickstart.md#an-agent-starts-it-since-0-4-21).
## Install the nativecluster command
The install line has already put the command in `~/.local/bin`, and Homebrew both `nativecluster` and `ncdev` in its own `bin`. From the dmg, or to add `ncdev` after the install line, choose **Install the nativecluster command…** in NativeCluster's menu bar menu. It links the command into `~/.local/bin` and puts that folder on your PATH, once. Since 0.4.19 it also links `ncdev`, NativeCluster's tool for building apps, beside it, and puts NativeCluster's two skills for your coding agent in `~/.claude/skills` (below). Then it says:
```
The nativecluster command is installed.
In a terminal, sign in once:
nativecluster login
Then your agent can run it as you. It lives at /Applications/NativeCluster.app/Contents/Resources/nativecluster.
ncdev, NativeCluster's tool for building apps, is beside it.
Your coding agent's skills are in ~/.claude/skills: nativecluster, nativecluster-app.
```
A skill you changed is named so: "nativecluster (you changed it, so it stays as you made it)"; one where something else of that name was already there, "nativecluster (something else of that name was there, so it was left alone)". When `~/.local/bin` wasn't on your PATH yet, the message ends: "Open a new terminal window so it finds the command."
A terminal that was already open, an agent's included, doesn't see the change: call `~/.local/bin/nativecluster`, or open a new terminal. Without this step, the install line or Homebrew, the command is still there, but not on the PATH:
```
/Applications/NativeCluster.app/Contents/Resources/nativecluster
```
## Skills for your coding agent, and ncdev
Since 0.4.19, NativeCluster comes with two skills for your coding agent, and with `ncdev`, its tool for building apps:
- **nativecluster**, for setting up and using NativeCluster from a terminal.
- **nativecluster-app**, for building an app for your cluster, with `ncdev`.
Where they are:
- Inside the app: `/Applications/NativeCluster.app/Contents/Resources/ncdev`, and the skills in `/Applications/NativeCluster.app/Contents/Resources/skills/` (`nativecluster/SKILL.md`, and `nativecluster-app/` with its `SKILL.md` and `reference/`).
- In your home folder: `~/.claude/skills/nativecluster` and `~/.claude/skills/nativecluster-app`, Claude Code's skills folder. If you use Claude Code (`~/.claude` is there), NativeCluster copies both skills there by itself, as it starts and every hour after, and each update brings their new version.
- `~/.local/bin/ncdev`, beside `~/.local/bin/nativecluster`, once you choose **Install the nativecluster command…**.
A skill you change stays as you made it, and NativeCluster no longer updates it. A folder of that name that NativeCluster didn't put there is left alone. One you remove is not put back by itself: only **Install the nativecluster command…** puts it back, and that menu item also makes `~/.claude/skills` when it isn't there yet. These are files on this Mac; nothing is sent anywhere.
## Sign the command in
```sh
nativecluster login
```
It opens your browser to sign in with your NativeCluster account, and waits up to 10 minutes for you to finish there (after that: "The sign-in took too long. Run nativecluster login again."). On a Mac a person set up, it's the one manual step: the sign-in is kept on this Mac, for you, in a file only you can read, and after that an agent runs the command as you, with no password or PIN ever typed into it.
- The sign-in lasts 30 days from its last use, and 90 days at most. It shows among your sign-ins as **Terminal on** your Mac's name.
- `nativecluster logout` ends it. So does **End** beside it in Settings › Account, or an administrator's **End all sign-ins…** on Members.
- On a Mac an agent set up with `setup`, the command is signed in already, and `login` signs the agent in again with no browser (since 0.4.21).
- Before NativeCluster has been opened on this Mac, `login` stops with "NativeCluster is not set up on this Mac yet. Open NativeCluster once, then sign in."
## Check it
```sh
nativecluster doctor
```
`doctor` needs no sign-in: before `login` it prints its first two lines and exits 3. Signed in as the Mac owner or an administrator, on a Mac that's ready, it reads something like this:
```
NativeCluster 0.4.20 answers on this Mac, signed in.
Listening on this Mac: 8484 (NativeCluster), 8487 (local address for tools); not 8485 (API door), 8486 (cluster).
Joined to Office Mac Studio (added).
Disk encryption: on (FileVault). Screen lock: on.
```
`nativecluster version` prints the version. `nativecluster help` (or `--help`, `-h`) lists every command and exits 0. Never run `nativecluster` with no command, or with any other first word starting with `-`: that starts NativeCluster itself, not a command. (Before 0.4.19, `--help` did too, and `help` wrote the list to stderr and exited 2.)
## Not in 0.4.21
NativeCluster runs only on Macs: there is no Windows or Linux version.
On this page
A Mac with Apple silicon (M1 or later), on macOS 13 Ventura or later.
A NativeCluster account. Signing in happens in the person's own browser. An AI agent needs none to start, its person there or not: since 0.4.21, nativecluster setup gets it an identity of its own, and a person claims the cluster later.
The internet: to register a new cluster's name, for every sign-in, for each model and app download, for the update check, and for the group's record, which each computer checks when someone signs in and regularly while it runs. Prompts and answers never need it.
NativeCluster is free. Every Mac in a cluster runs it. To check a Mac: uname -m says arm64 on Apple silicon, and sw_vers -productVersion gives the macOS version.
Install the app
With the install line
Since 0.4.19, one line in Terminal installs NativeCluster. An agent runs it only with the person's OK.
Terminal
curl -fsSL https://nativecluster.com/install.sh | sh
It installs NativeCluster in Applications (in ~/Applications when you can't write to /Applications), puts the nativecluster command in ~/.local/bin, and opens NativeCluster. In zsh or bash it also puts ~/.local/bin on your PATH, with the same lines Install the nativecluster command… adds; in another shell it prints the line to add.
Before it opens or copies anything, the download must have the exact SHA-256 the script names, our team's signature and Apple's notarization. The app inside is checked the same way, and again once copied.
It never uses sudo, and never replaces a NativeCluster already on the Mac, which keeps itself up to date.
When a check fails, it changes nothing and says why.
A terminal that was already open, an agent's included, doesn't see the command: call ~/.local/bin/nativecluster, or open a new terminal.
It doesn't link ncdev: Install the nativecluster command… does (below).
It ends by naming what's left, once. Since 0.4.23 the agent's start comes first: an AI agent, its person there or not, runs nativecluster setup --accept-terms --email <its person's email> (below); a person at the Mac signs in to NativeCluster in its window instead, then runs nativecluster login.
With Homebrew
Since 0.4.20, Homebrew installs NativeCluster too, on a Mac where brew is there. An agent runs it only with the person's OK.
It installs the same release in Applications, and puts the nativecluster command and ncdev in Homebrew's bin, already on your PATH. Then open NativeCluster: nativecluster open (before 0.4.22, open -a NativeCluster).
Homebrew refuses a download whose SHA-256 isn't the one its cask names. NativeCluster updates itself from then on, so brew upgrade leaves it be.
If NativeCluster is already in Applications, Homebrew stops with "It seems there is already an App": it's installed, so leave it as it is. Never make Homebrew replace it.
You never download it by hand again: NativeCluster updates itself. To look for an update now, choose Check for updates in its menu bar menu, then Install and Restart.
Its first setup, in its window
A new Mac shows Welcome to NativeCluster with Sign in with your browser. After the person signs in:
An account with no cluster and no invitation goes on to Name my cluster. The person who makes a cluster is its owner. NativeCluster then asks What will this Mac do?: The main, which holds the group's shared data and its always-on work and runs its models, or Just using it, which uses the cluster's apps and runs no models.
An account with a cluster or an invitation goes on to Join …?. Joining needs this Mac on the office network with the main, or a Thunderbolt cable to it, and the six-digit PIN an administrator reads out.
The first Mac of a cluster needs no PIN. A Mac is in one cluster at a time. See Several Macs, one cluster.
Its first setup, by an AI agent
Since 0.4.21, an AI agent can set up a Mac where nobody has set NativeCluster up, its person there or not:
It makes the Mac the main of a new cluster, with its inference on and the agent its owner, and signs the agent in on this Mac, with no browser. --accept-terms accepts NativeCluster's Terms of Service and Privacy Policy, which bind whoever uses NativeCluster, a person or an AI agent. --email names the person who may claim the cluster later; they sign in on the link nativecluster claim prints, or at the Mac. It always starts a new cluster: a Mac that should join one is joined by a person, in the window, with a PIN. See the quickstart.
Install the nativecluster command
The install line has already put the command in ~/.local/bin, and Homebrew both nativecluster and ncdev in its own bin. From the dmg, or to add ncdev after the install line, choose Install the nativecluster command… in NativeCluster's menu bar menu. It links the command into ~/.local/bin and puts that folder on your PATH, once. Since 0.4.19 it also links ncdev, NativeCluster's tool for building apps, beside it, and puts NativeCluster's two skills for your coding agent in ~/.claude/skills (below). Then it says:
The nativecluster command is installed.
In a terminal, sign in once:
nativecluster login
Then your agent can run it as you. It lives at /Applications/NativeCluster.app/Contents/Resources/nativecluster.
ncdev, NativeCluster's tool for building apps, is beside it.
Your coding agent's skills are in ~/.claude/skills: nativecluster, nativecluster-app.
A skill you changed is named so: "nativecluster (you changed it, so it stays as you made it)"; one where something else of that name was already there, "nativecluster (something else of that name was there, so it was left alone)". When ~/.local/bin wasn't on your PATH yet, the message ends: "Open a new terminal window so it finds the command."
A terminal that was already open, an agent's included, doesn't see the change: call ~/.local/bin/nativecluster, or open a new terminal. Without this step, the install line or Homebrew, the command is still there, but not on the PATH:
Since 0.4.19, NativeCluster comes with two skills for your coding agent, and with ncdev, its tool for building apps:
nativecluster, for setting up and using NativeCluster from a terminal.
nativecluster-app, for building an app for your cluster, with ncdev.
Where they are:
Inside the app: /Applications/NativeCluster.app/Contents/Resources/ncdev, and the skills in /Applications/NativeCluster.app/Contents/Resources/skills/ (nativecluster/SKILL.md, and nativecluster-app/ with its SKILL.md and reference/).
In your home folder: ~/.claude/skills/nativecluster and ~/.claude/skills/nativecluster-app, Claude Code's skills folder. If you use Claude Code (~/.claude is there), NativeCluster copies both skills there by itself, as it starts and every hour after, and each update brings their new version.
~/.local/bin/ncdev, beside ~/.local/bin/nativecluster, once you choose Install the nativecluster command….
A skill you change stays as you made it, and NativeCluster no longer updates it. A folder of that name that NativeCluster didn't put there is left alone. One you remove is not put back by itself: only Install the nativecluster command… puts it back, and that menu item also makes ~/.claude/skills when it isn't there yet. These are files on this Mac; nothing is sent anywhere.
Sign the command in
Terminal
nativecluster login
It opens your browser to sign in with your NativeCluster account, and waits up to 10 minutes for you to finish there (after that: "The sign-in took too long. Run nativecluster login again."). On a Mac a person set up, it's the one manual step: the sign-in is kept on this Mac, for you, in a file only you can read, and after that an agent runs the command as you, with no password or PIN ever typed into it.
The sign-in lasts 30 days from its last use, and 90 days at most. It shows among your sign-ins as Terminal on your Mac's name.
nativecluster logout ends it. So does End beside it in Settings › Account, or an administrator's End all sign-ins… on Members.
On a Mac an agent set up with setup, the command is signed in already, and login signs the agent in again with no browser (since 0.4.21).
Before NativeCluster has been opened on this Mac, login stops with "NativeCluster is not set up on this Mac yet. Open NativeCluster once, then sign in."
Check it
Terminal
nativecluster doctor
doctor needs no sign-in: before login it prints its first two lines and exits 3. Signed in as the Mac owner or an administrator, on a Mac that's ready, it reads something like this:
NativeCluster 0.4.20 answers on this Mac, signed in.
Listening on this Mac: 8484 (NativeCluster), 8487 (local address for tools); not 8485 (API door), 8486 (cluster).
Joined to Office Mac Studio (added).
Disk encryption: on (FileVault). Screen lock: on.
nativecluster version prints the version. nativecluster help (or --help, -h) lists every command and exits 0. Never run nativecluster with no command, or with any other first word starting with -: that starts NativeCluster itself, not a command. (Before 0.4.19, --help did too, and help wrote the list to stderr and exited 2.)
Not in 0.4.21
NativeCluster runs only on Macs: there is no Windows or Linux version.