Fetch the complete documentation index at https://www.nativecluster.com/llms.txt

# How do I use Open Code with NativeCluster?

> Open Code is a coding agent from NativeCluster's Store that runs in your own terminal and thinks on your cluster's models, signed in as you, with no key. An administrator gets it for the cluster, Members gives it to people, and each person gets it on their own computer and signs in inside it.

## Get it

1. **For the cluster:** an administrator chooses **Get** on Open Code in the Store, in NativeCluster's window. Anyone else can ask for it: `nativecluster apps ask ncode`.
2. **For each person:** Members says who has it, as for any app.
3. **On your own computer:** from the Store, or

```sh
nativecluster apps get ncode --mine --wait
```

Getting it, from the Store or with `apps get`, puts its command, `ncode`, in `~/.local/bin`, and adds that folder to your PATH with two lines, marked as NativeCluster's, at the end of the profile your shell reads (`~/.zprofile` for zsh). Open a **new** terminal window afterwards.

## Start it

```sh
cd ~/your/project
ncode
```

The first time, type `/login` in Open Code and sign in with your NativeCluster account in the browser it opens. It works on the files in that folder, on your computer, and only its questions to the models go to your cluster, as yours: Usage shows them as Open Code, with your name.

## What it uses

- The models your cluster has that code, the best first.
- It says so plainly if none of your computers can run one, if the cluster doesn't have Open Code yet, or if Members doesn't give it to you.
- Away from the cluster's network, it says it can't reach your cluster, and your files and commands still work. Since 0.4.20, an administrator's Open Code on a computer turned on for inference answers from that computer's own models instead, once it's signed in while the main is in reach (signed in before 0.4.20: `/login` once more there). See [Away from the office](https://www.nativecluster.com/docs/cluster.md#away-from-the-office).

## Remove it

Removing Open Code takes it off this computer. Your own Open Code settings and sessions stay, and so do the PATH lines, since other tools may use that folder.
