# Installation (https://docs.neuralisapp.com/getting-started/installation)

Maturity: how far the subjects on this page are today, as of 2026-11-02. [How maturity is measured](https://docs.neuralisapp.com/getting-started/maturity.md).

| Subject                     | Kind  | Label        | Score | Main limit                                                                                                                                                                                                                       |
| --------------------------- | ----- | ------------ | ----- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Install channels            | topic | beta         | 70 %  | The beta is published; the Docker image channel's update (`neuralis update`) is live-verified, while npm and clone updates and all-channel non-localhost login remain unverified. Native ARM runtime acceptance is not recorded. |
| Desktop app                 | topic | preview      | 60 %  | The installers and the self-update have not been run from a published release on a clean machine yet.                                                                                                                            |
| Platform: Linux             | topic | experimental | 85 %  | No run on a standalone Linux host is recorded; the live-tested setup is Docker on WSL2.                                                                                                                                          |
| Platform: Windows with WSL2 | topic | stable       | 90 %  | Use an in-distro Docker engine.                                                                                                                                                                                                  |
| Platform: macOS             | topic | experimental | 50 %  | Neuralis has not been run on macOS so far.                                                                                                                                                                                       |
| Platform: Windows (native)  | topic | preview      | 55 %  | The Windows shell sandbox is measured on one Windows 11 machine only, and skill scripts still need a bash, which does not run inside it yet.                                                                                     |

<Callout type="warn" title="Beta release">
The Neuralis beta is available through npm, Docker and GitHub. It is an early beta;
review the maturity overview above and test your deployment before using it for
critical work.
</Callout>

Neuralis ships through three channels, plus the [desktop app](https://docs.neuralisapp.com/getting-started/desktop-app.md)
(§4), which runs the same host natively on your own computer. All of them deliver the **same runtime**:
the Next.js host application plus the `@neuralis/*` builtin packages installed
as real directories under `node_modules/`. The app listens on port `3100`; the
external MCP endpoint listens on port `3101` (see
[MCP access](https://docs.neuralisapp.com/enterprise/mcp-access.md)).

## Before you start [#before-you-start]

**Recommended:** the Docker install, on Linux or Windows with WSL2.

| Install | Tested on | You need |
|---|---|---|
| Docker image | Linux, Windows with WSL2 | Docker Engine with Compose v2 ([install guide](https://docs.docker.com/engine/install/)): `docker compose version` answers and your user reaches the daemon without sudo (`docker info`). Nothing else — setup runs from the image. The installer also writes the `neuralis` command: `~/.local/bin/neuralis`, or `@neuralis/cli` through npm where Node.js 22.22 or newer can install it globally. |
| npm (`npm create neuralis`) | Linux, Windows with WSL2 | The same Docker, plus Node.js 26 or newer and, on Linux, python3, make and a C++ compiler for the terminal's native module (Debian/Ubuntu: `sudo apt install build-essential python3`). |
| Native, from a clone (no Docker) | Linux, macOS | git, Node.js 26 or newer and, on Linux, python3, make and a C++ compiler; on macOS the terminal's native module ships prebuilt. Vector store: setup downloads and starts Qdrant on Linux, connects to a Qdrant you run, or runs in-memory only. |
| Desktop app | Windows 11 x64, Linux x64 | Nothing else: the app carries Node.js, the host and its vector store ([desktop app](https://docs.neuralisapp.com/getting-started/desktop-app)). Installers for Windows 11 x64 (unsigned: SmartScreen asks first), Linux x64 and arm64 (AppImage, deb) and macOS (a preview, untested: an unsigned Intel build). Docker is optional: for the virtual desktop, or to keep the vectors in Docker. Neuralis' own skills run on Node; a bash-script skill (an imported agentskills.io bundle) still needs Git for Windows on a Windows device. |

Ubuntu's own `nodejs` package is older than 26: install 26 from NodeSource or with `sudo snap install node --classic --channel=26`. Natively on Windows the desktop app runs; its shell sandbox is still pending verification there, so until it proves itself on a machine that computer runs only its owner's own commands, started without the sandbox on a pairing the owner approved there. The release checks of the published version pass on Linux (Docker and native) and, for the native host from a clone, on macOS (Apple silicon and Intel).

A container started from the image without setup is not configured: until setup has run,
every page answers with a "Neuralis is not set up yet" notice naming the setup commands,
the API answers `503` with `{"error":"setup_required"}`, and the container reports unhealthy.

## 1. npm (self-hosted) [#1-npm-self-hosted]

```bash
npm create neuralis my-neuralis   # an npm project that depends on one exact neuralis release
cd my-neuralis
npx neuralis setup                # interactive first-run setup — see the next page
docker compose up -d
```

On Linux, the install compiles the terminal's native module (`node-pty`
ships no Linux prebuild), so python3, make and a C++ compiler must be present
first — on Debian or Ubuntu, `apt install build-essential python3`. The same
holds for a source checkout (channel 3); the Docker image (channel 2) needs no
compiler and no Node.js.

This creates an **install folder you own**: an ordinary npm project whose
`package.json` depends on the exact `neuralis` version (with `save-exact` in its
`.npmrc`), the host package and the `@neuralis/*` packages under
`node_modules/`, and the `neuralis` command line as `npx neuralis <command>`.
A folder rather than a global install is deliberate: this is where your `.env`,
your generated compose file and your mounts live, and where your own registered
packages are listed. Updating is `npx neuralis update --apply` — one exact
release for every package and image, carried through this folder's own stack
(stop, data upgrade, restart, health check), never the package manager replacing
the folder underneath you ([Updating](https://docs.neuralisapp.com/getting-started/updating.md#npm-install-folder)).

Setup writes `.env` and the compose file into this folder; the compose file runs
the published image at the exact release recorded there. Running the host
natively, without Docker, is done from a clone of the public host repository
(channel 3), which is the host package itself: there `npx neuralis setup`,
`npm run build` and `npx neuralis start` share one folder and one `.env`. Its tested
platforms and what it needs are in the native row of the table under
[Before you start](#before-you-start).

## 2. Docker image (recommended for teams) [#2-docker-image-recommended-for-teams]

On Linux or WSL2, with nothing but Docker installed, one command installs it:

```bash
curl -fsSL https://neuralisapp.com/install.sh | sh
```

To read the script before it runs, download it first:

```bash
curl -fsSLO https://neuralisapp.com/install.sh && sh install.sh
```

The installer checks that Docker and Docker Compose v2 answer for your user (and
names what is missing), creates the data home `~/.neuralis` and the install
folder `~/neuralis`, pulls the image, and runs the setup below from it — the same
questions, answered in your terminal. It then asks whether to start Neuralis now
(`docker compose up -d` in the install folder) and prints the address to open, and
downloads the desktop image in the background (progress in
`~/.neuralis/app/logs/machine-image-prefetch.log`). Last, it installs the
`neuralis` command for every later operator step: `@neuralis/cli` through npm
where Node.js 22.22 or newer can install it globally, otherwise a small script at
`~/.local/bin/neuralis` — when that folder is not on your `PATH` yet, it prints
the full name and the line that adds it. On a folder that already holds an
install it runs no setup: it installs the command and offers the update.
`NEURALIS_TAG` picks another release (default `latest`) and `NEURALIS_DIR`
another install folder; set them on the `sh` side of the pipe
(`… | NEURALIS_TAG=… sh`).

### Manual form (what the installer runs) [#manual-form-what-the-installer-runs]

The same setup, typed by hand — to adjust a flag, or where the script cannot run:

```bash
NEURALIS_TAG=latest   # or a release tag: https://hub.docker.com/r/neuralisapp/neuralis/tags
mkdir -p ~/.neuralis ~/neuralis && cd ~/neuralis
docker run -it --rm --user "$(id -u):$(id -g)" \
  -v /var/run/docker.sock:/var/run/docker.sock --group-add "$(stat -c %g /var/run/docker.sock)" \
  -v "$HOME/.neuralis:/.neuralis" -e NEURALIS_HOST_HOME="$HOME/.neuralis" \
  -v "$PWD:$PWD" \
  neuralisapp/neuralis:"$NEURALIS_TAG" node bin/neuralis.mjs setup --output "$PWD"
docker compose up -d
```

A pre-built image with everything installed, plus Qdrant as a sidecar service.
The first line picks the release: `latest`, or the tag of the release you want;
setup records the exact release in `.env` (`NEURALIS_IMAGE_TAG`), so the stack
never runs a moving tag. Setup runs in a one-shot container of that image, as
your own user, and writes into the two folders the second line creates: the data
home `~/.neuralis` and the install folder `~/neuralis`. Create both **before**
`docker run` — if Docker
creates them first they end up root-owned. Setup writes the session secret
(`app/config/session-secret.key` in the data home), the first owner account and
project, and **generates the `docker-compose.yml`**
in the install folder — a setup artifact tailored to your machine (ports,
user/group IDs, Qdrant mode, optional local Ollama service), not a file shipped
with the image. `docker compose up -d` in that folder then starts Neuralis
(`:3100`, `:3101`) and Qdrant.

Each flag has a job: `--user` lets setup write as you; the Docker socket lets it
detect Docker and read the vector store's volume (a desktop-image pull started
there ends with the one-shot container — pull the `.env` `NEURALIS_MACHINE_IMAGE`
on the host, as the installer does);
`NEURALIS_HOST_HOME` tells it where the data home is on the host, because the
compose file binds host paths. When one is missing, setup refuses before writing
anything and prints the command. The container's loopback is not the host's: to
detect an Ollama running on the host, or to sign in with ChatGPT during setup,
add `--network host` (Linux); otherwise add those later in the admin UI.

Updating this folder is `neuralis update --apply`
([Updating](https://docs.neuralisapp.com/getting-started/updating.md#image-only-folder)).

This is the expected path for an organization deploying on-prem or in a
private cloud: the DevOps team deploys the stack, users sign in through the
configured auth, and per-project membership controls what each user sees. See
[deployment](https://docs.neuralisapp.com/enterprise/deployment.md) for reverse-proxy, TLS, and
port-exposure guidance.

The operator tooling is **baked into the image**, and the `neuralis` command
runs it for this folder — inside it, or from any directory once setup has
recorded the folder in `~/.neuralis` (with several recorded, or none yet, name
it with `--install`):

```bash
neuralis mount list                         # the host folders the stack can see
neuralis backup                             # the whole install, the app stopped for the copy
neuralis --install ~/neuralis user list     # several installs on one machine: name one
```

Each command runs in a one-shot container of the folder's own release
([how the CLI hands a verb to an install](https://docs.neuralisapp.com/getting-started/cli.md#install)), and
`neuralis device` needs `@neuralis/cli` from npm. The complete command list
ships with every deployment as the `neuralis-operations` skill.

## 3. Git clone (fork the host) [#3-git-clone-fork-the-host]

```bash
git clone https://github.com/neuralisapp/neuralis
cd neuralis
npm install
npx neuralis setup   # asks Docker or native, then prints the next step
npm run build        # native: what setup prints
npx neuralis start   # on the port setup wrote to .env
```

The host application in source form, with `@neuralis/*` dependencies resolved
from the registry. On Linux, `npm install` stops before it compiles anything
when python3, make or a C++ compiler is missing, and names what to install.
Setup prints the next step for the mode you chose: `npm run build` and
`npx neuralis start` for the native process (on the app port setup wrote to `.env`), `docker compose up -d` for Docker. This channel exists for advanced self-hosters and
organizations that want to customize the host layer — their own auth provider,
branding, or audit pipeline — while consuming the platform packages unchanged. Updating a clone is a
`git checkout` of the release tag and then the images
([Updating](https://docs.neuralisapp.com/getting-started/updating.md#git-clone)).

## 4. Desktop app [#4-desktop-app]

On Windows 11, Linux or macOS (preview), download the installer for your OS from
the [GitHub releases](https://github.com/neuralisapp/neuralis/releases) and start
it: a first-run page asks for the owner account, the first project and where the
vectors live, and the app keeps the host running in its tray. It needs no Docker
and opens the same data folder a Docker install on that computer uses — one host
at a time. [Desktop app](https://docs.neuralisapp.com/getting-started/desktop-app.md) has the details per OS,
[platforms](https://docs.neuralisapp.com/getting-started/platforms.md) what differs between them.

## If something fails [#if-something-fails]

- **"Neuralis needs Node.js 26 or newer"** — `npm create neuralis` and
  `npx neuralis` refuse an older Node.js by name before writing anything; in a
  clone, `npm install` stops with `EBADDEVENGINES` (`Invalid semver version ">=26"`)
  before it installs anything.
  Install Node.js 26 or newer and run the command again, or use the Docker
  image (§2), which needs no Node.js.
- **"python3, make and a C++ compiler are needed"** (Linux) — `npm create neuralis`
  and `npm install` in a clone check the toolchain the terminal's native module
  compiles with before installing anything:
  `sudo apt install build-essential python3`, then run the command again.
- **Docker is missing or not reachable** — `docker compose version` and
  `docker info` must both answer for your user. An npm folder runs Neuralis with
  Docker Compose, so setup there refuses before its first question and names the
  cause — Docker not installed, its daemon not answering, your user not allowed
  to open the socket, or Compose v2 missing — with the fix for your platform.
  Setup run from the image refuses the same way without a Docker answering
  through the bound socket. A clone without Docker runs natively (§3).
- **Setup run from the image refuses** — it names what is missing and prints
  the full command: `NEURALIS_HOST_HOME`, the Docker socket, the install folder
  bound from the host (`-v "$PWD:$PWD"`), or write access to
  the data home (run the container with `--user "$(id -u):$(id -g)"`; when
  Docker created `~/.neuralis` before setup did,
  `sudo chown -R "$(id -u):$(id -g)" ~/.neuralis` first). Nothing is written
  until all of them hold.
- **The browser shows "Neuralis is not set up yet"** — the container runs without
  setup, or setup did not finish. Stop and remove that container, run setup
  (§2), then `docker compose up -d` in the folder setup wrote. On an npm folder
  or a clone, run `npx neuralis setup` and start it again.
- **A port is already in use** — setup checks the ports the stack publishes
  (`3100`, `3101`, `3102` and the vector store's `127.0.0.1:6333`), names a busy
  one and what holds it, and offers a free port; press Enter to take it. The
  choice is kept in `.env` (`NEURALIS_APP_PORT`, `MCP_HTTP_PORT`,
  `NEURALIS_MCP_SANDBOX_PORT`, `NEURALIS_QDRANT_PORT`). `setup --compose-only`
  asks nothing: it names the busy port and the `.env` line to set. Under Docker
  Desktop setup cannot see every port the Docker side holds; if
  `docker compose up` still reports a port as allocated, set that `.env` key
  and run `setup --compose-only` again.
- **Windows with Docker Desktop: the host is healthy, yet the browser or the desktop app gets `ERR_CONNECTION_RESET`** —
  usually right after a rebuild or a restart. `curl http://localhost:3100/api/health`
  from inside WSL answers `200`, but Docker Desktop's port forwarding to Windows
  is stuck. It often recovers by itself within minutes (the desktop app tries
  again on its own); if not, restart the container (it ends running agent turns: `docker compose restart`
  in the install folder), and if that does not help, restart Docker Desktop.
  Nothing is lost: the data lives in the volumes.
- **A Qdrant is already running on this machine** — setup does not adopt it
  silently: it asks whether this install starts its own vector store on a free
  port (the default) or uses the one it found as an external server. A re-run
  keeps what the install already uses.

Still stuck? [Open an issue](https://github.com/neuralisapp/neuralis/issues/new)
with your channel, operating system, `node --version` and `docker version`, the
step that failed, its exact message and the last lines of the log — never your
`.env`, passwords or tokens.

## What is persistent [#what-is-persistent]

Application state lives outside the container or process:

- `~/.neuralis/app/` — platform configuration, encrypted credentials, audit
  data, and native packages' platform-level data and logs.
- `~/.neuralis/projects/` — per-project data, agents, conversations, and
  project-installed packages.
- `~/.neuralis/checkpoints/` — the copies `npx neuralis upgrade --apply` takes
  before it raises a stored data format (the running app never raises one), so
  `npx neuralis checkpoint restore <id>` can take you back one build; the
  generated compose file binds this folder, so a checkpoint taken in a one-off
  container lands here too.
- The `qdrant-data` Docker volume — the vector index (back it up together
  with `~/.neuralis`).

Rebuilding the image or reinstalling the host never touches these. Backing
them up, upgrading and going back a version are covered in
[deployment](https://docs.neuralisapp.com/enterprise/deployment.md#backup-and-restore).

Continue with [first-run setup](https://docs.neuralisapp.com/getting-started/first-run.md).