# Install & licence

_Install Monix Agent, activate your licence, and keep it up to date._

One command to install, one key to activate, one command to
update.

## Open the app

Open Monix Agent like any other app, without a terminal:

In Monix Desktop, then pick a project in the message box or add a folder; *New project…* creates an empty one.

From a terminal instead: `open "$HOME/Applications/Monix Agent.app"` on macOS, `monix-agent-desktop` on Linux.

## Install

```
sh -c "$(curl -fsSL https://nemonix.ai/monix-agent/get.sh)"
```

Use exactly this form, not `curl … | sh`: the installer has to ask
you for your password, and a pipe takes the terminal away from it. It needs
`curl` and `tar`. Builds exist for Linux (x64), macOS
(Apple silicon) and Windows (x64, beta). There is no build for Intel Macs.

## Beta in this release

These parts work but are not yet verified as thoroughly as the rest. Monix Agent labels them "beta" where they appear.

**On Windows**, open PowerShell (no administrator rights needed)
and run:

```
irm https://nemonix.ai/monix-agent/get.ps1 | iex
```

It installs into `%LOCALAPPDATA%\Programs\Monix` (an older install in
`%LOCALAPPDATA%\Programs\monixcode` is moved there) and adds that folder
to your user PATH; open a new terminal afterwards. Windows cannot replace a
program while it runs, so to update, close Monix Agent and run the same command
again. What the installer does, once:

The installer needs a terminal to ask you. The folder for the programs can
be changed with `MONIX_BIN_DIR`, Monix Agent's own folder with
`MONIX_HOME`. Run it again whenever you like: it is safe to repeat,
and it is also the way back if the download token is ever lost. If no build exists for your platform
yet, or your update window has ended, it says so instead of failing
silently.

## What gets installed

| Program | What it is for |
|---|---|---|
| `monixcode` | Starts monixcode, the terminal interface,
 and with a subcommand manages everything else (see [Terminal
 commands](https://docs.nemonix.ai/monix-agent/docs/cli)). |
| `monixagent` | The same program under the product's
 name, for the server: `monixagent server start|stop|restart|status`.
 On Windows it is `monixagent.cmd`. |
| `monix-server` | The local server every client talks to.
 You do not start it by hand; `monixcode` and `monixagent` do. |
| Monix Agent (desktop app) | macOS: `~/Applications/Monix Agent.app`.
 Linux: a menu entry “Monix Agent” and the command `monix-agent-desktop`.
 Windows: the Start menu entry “Monix Agent”. |

## Windows (beta): what differs

Windows works like Linux and macOS, with these exceptions:

## Activate

Buy a licence on [the pricing page](https://nemonix.ai/monix-agent/pricing)
and sign up with the account code from your mail. On
[your account page](https://account.nemonix.ai/dashboard) you generate the
**licence key**. It is shown once and can be used once: the
installer asks for it at the end (press Enter to skip), or Monix Agent asks for it on
its first start. You give email, password and key, and this machine is
registered.

| Tier | What it is |
|---|---|---|
| Solo | One developer, unlimited projects, one machine at a
 time. |
| Pro | The same for people who live in the terminal all day, and up to five
 machines on one licence at the same price. A sixth machine takes another
 licence, with its own update window. |
| Team | One seat per person, up to 15 seats, each seat one licence
 and one machine. You assign the seats and can take them back. Team mode of
 the [shared memory](https://docs.nemonix.ai/monix-agent/docs/sync) needs a Team licence. |

Online licences check in with the licence server about every half hour, and
after a few hours without contact they stop until the machine is connected
again. Offline licences are available too: they are device-locked and do not
heartbeat. You can swap devices yourself (three free swaps, then it goes through us).

A licence is a purchase, not a subscription: the version you bought keeps
working forever. What runs out after twelve months is the window for
*newer* versions, and you can extend it when you want to.

## Start it

```
cd /path/to/your/project
monixcode
```

`monixcode` starts the local server if it is not running and opens the
screen. On the first start in a project, Monix Agent indexes the code so it can find
things without reading every file. That takes a moment once; afterwards it keeps
itself up to date. Before the first mission, connect a model provider with
`/connect` (see [Models & cost](https://docs.nemonix.ai/monix-agent/docs/models)).

| Command | What it does |
|---|---|---|
| `monixagent doctor` | Checks the installation, the provider
 credentials and the server. |
| `monixagent server status` | Also `start`,
 `stop` and `restart` — restart it after an update if
 Monix Agent was running before. |
| `monixagent service install` | Runs the server as a login
 service, so it is already up when you start. |
| `monixagent logs` | The last lines of the log;
 `-f` follows it. |

## Update

```
monixagent update
```

It checks whether a newer version is covered by your licence, downloads it,
verifies it against a checksum published next to the download, and replaces the
programs. `--check` only reports; `/update` does the same
from inside Monix Agent. Your projects, settings and project memory are untouched.

You also get a mail when a new version is out, with what changed in it. It
goes to everyone with an active licence who has used Monix Agent recently — and it is
the only mail we send about releases.

**Where it keeps things.** Monix Agent stores its
own data in a folder under your home directory: the project memory, the session
history, the log. Your code stays where it is — nothing is copied
anywhere.
