Noyau
Sections

Documentation › Get started

Install Noyau

With one command

System Command
Linux, macOS curl -fsSL https://raw.githubusercontent.com/getnoyau/noyau/main/scripts/install.sh | sh
Windows 10 (2004+) or 11 irm https://raw.githubusercontent.com/getnoyau/noyau/main/scripts/install.ps1 | iex (PowerShell)
Any system with Node 22.13+, git and tmux npx github:getnoyau/noyau start (npx noyau start once the package is published on npm; no service, data in ~/.noyau/data)
Server (Docker) docker compose up -d in a clone, or the image alone (see below)

When it finishes, the installer shows how long the installation took, opens the browser on the first-run screen (creation of the administrator account, with a one-time code passed in the #setup-code= fragment), then shows a QR code to scan with your phone.

What the installer does

  • Prerequisites installed via apt, dnf, pacman, zypper or brew: git, tmux, curl, openssl, build tools; Node 22 via nvm on Linux, Homebrew on macOS (must already be present).
  • Application in ~/.noyau/app, data in ~/.noyau/data, noyau command in ~/.local/bin (added to the shell PATH).
  • Engines: if neither Claude Code nor Codex is present, it offers to install them (--engines claude,codex to choose without being asked, --no-engines to skip). The Getting started guide also has an "Install" button for each engine, followed by the command to sign in to the account.
  • HTTPS: a local certificate is created on first start (~/.noyau/data/tls), and the authority can be downloaded from /noyau-ca.cer for the phone. Access from outside the Wi-Fi (WireGuard, Tailscale, Cloudflare Tunnel): Getting started guide, "Remote access" step.
  • Service: systemd --user on Linux (with loginctl enable-linger), LaunchAgent dev.noyau.server on macOS, scheduled task "Noyau (WSL)" on Windows. Without systemd (container), Noyau starts in the background and logs to ~/.noyau/data/noyau.log.
  • Windows: installs WSL2 and Ubuntu if needed (a restart may be required, then run the command again), enables systemd in WSL, runs install.sh in Ubuntu, and adds the "Noyau" shortcut to the Start menu. A distribution still on WSL 1 is reported (wsl --set-version Ubuntu 2). To uninstall: $env:NOYAU_UNINSTALL = "1" then the same irm … | iex command (removes Noyau in WSL, the scheduled task and the shortcut; WSL and Ubuntu stay).
  • An existing service that Noyau did not create is never replaced without --force.
  • Version: the latest release vX.Y.Z, whose tag must be signed by the Noyau release key (embedded in install.sh, also in release-keys/allowed_signers). The signature is checked with ssh-keygen before any code from the release runs. --ref <branch|tag> installs that ref without signature check. Node's nvm installer is checked against a pinned SHA-256.

Check the installer before running it

curl … | sh trusts whatever GitHub serves at that moment. To check the script itself first (OpenSSH 8.2+), use the copy of a release tag and its signature:

V=vX.Y.Z; B=https://raw.githubusercontent.com/getnoyau/noyau/$V
curl -fsSLO $B/scripts/install.sh -O $B/scripts/install.sh.sig -O $B/release-keys/allowed_signers
ssh-keygen -Y verify -f allowed_signers -I noyau-release -n file -s install.sh.sig < install.sh && bash install.sh

Check that grep -o 'ssh-ed25519 [^ ]*' allowed_signers | ssh-keygen -lf - shows the release key fingerprint SHA256:AHeYuMSl7xmHdPCulSeeUAm32c4sMTgSW22BVJyTS9Q (also in release-keys/README.md). scripts/install.sh.sha256 gives the same file's SHA-256.

install.sh options: --dry-run, --prefix <dir>, --repo <url>, --ref <branche>, --source <dossier local>, --no-service, --no-open, --engines <liste>, --no-engines, plus the network options below. Variables: NOYAU_REPO, NOYAU_REF, NOYAU_HOME.

Ports and listen address

Setting Default Installer Variable noyau config
Port (HTTP and HTTPS on the same port) 4242 --port NOYAU_PORT or PORT port
Dedicated HTTPS port (phone, VPN) 4243 --https-port NOYAU_HTTPS_PORT https-port
Listen address 0.0.0.0 (local network) --host NOYAU_HOST or HOST host
Behind a reverse proxy no --behind-proxy NOYAU_BEHIND_PROXY behind-proxy
Public URL empty --public-url NOYAU_PUBLIC_URL public-url
Trusted proxies loopback NOYAU_TRUST_PROXY trust-proxy
  • --advanced asks these questions during installation.
  • If the chosen port is already used by another program, the installer offers the next free one (without a terminal, it takes it and reports it).
  • Settings live in ~/.noyau/data/server.json. An environment variable takes precedence over the file.
  • To change them later:
    • in Noyau, Settings > Server (administrator); applied at the next restart;
    • with noyau config set port 8080, which checks that the port is free, offers another port otherwise, then restarts the service;
    • with noyau config (list and source of each value), noyau config get <réglage> and noyau config unset <réglage>.
curl -fsSL https://raw.githubusercontent.com/getnoyau/noyau/main/scripts/install.sh | sh -s -- --port 8080 --https-port 8443 --host 127.0.0.1
curl -fsSL https://raw.githubusercontent.com/getnoyau/noyau/main/scripts/install.sh | sh -s -- --advanced

Behind a reverse proxy

The four ways to open Noyau to the outside (local, VPN, Cloudflare tunnel, reverse proxy or built-in HTTPS), the real check and phone pairing: remote-access.md.

The proxy (Caddy, Nginx, Traefik) provides HTTPS and the domain name. Noyau:

  • serves plain HTTP only, with no local certificate, no dedicated HTTPS port and no redirect;
  • listens on 127.0.0.1 by default;
  • reads X-Forwarded-Proto, X-Forwarded-For and X-Forwarded-Host, only from trusted proxies (trust-proxy, default loopback);
  • uses the public URL for the QR code of noyau qr.
noyau config set behind-proxy true
noyau config set public-url https://noyau.example.com

Caddy (automatic Let's Encrypt certificate, WebSocket included):

noyau.example.com {
    reverse_proxy 127.0.0.1:4242
}

Nginx (WebSocket required for the agent terminals):

server {
    listen 443 ssl http2;
    server_name noyau.example.com;
    ssl_certificate     /etc/letsencrypt/live/noyau.example.com/fullchain.pem;
    ssl_certificate_key /etc/letsencrypt/live/noyau.example.com/privkey.pem;
    client_max_body_size 200m;

    location / {
        proxy_pass http://127.0.0.1:4242;
        proxy_http_version 1.1;
        proxy_set_header Host $host;
        proxy_set_header X-Forwarded-Proto $scheme;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Host $host;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection "upgrade";
        proxy_read_timeout 1d;
    }
}

With Docker, the proxy arrives through the Docker network and not through 127.0.0.1. docker-compose.yml therefore sets NOYAU_TRUST_PROXY=loopback, uniquelocal:

NOYAU_BIND=127.0.0.1 NOYAU_BEHIND_PROXY=true NOYAU_PUBLIC_URL=https://noyau.example.com docker compose up -d

Do not switch Noyau to proxy mode if it can be reached directly: a client could then supply its own X-Forwarded-* headers. Keep host on 127.0.0.1, or limit trust-proxy to the proxy's address.

Docker

docker run -d --name noyau -p 4242:4242 -p 4243:4243 -v noyau-data:/data -v noyau-home:/home/noyau --restart unless-stopped noyau
docker exec noyau cat /data/setup-code   # first-run code
docker exec -it noyau bash -c "curl -fsSL https://claude.ai/install.sh | bash && claude"   # engine + sign-in

The image is built with docker build -t noyau . (not published yet). Host-side ports: NOYAU_PORT=8080 NOYAU_HTTPS_PORT=8443 docker compose up -d (or a .env file). docker-compose.yml does the same and mounts ./workspace on /workspace for projects. The engines and their accounts live in the /home/noyau volume.

The noyau command

Command Effect
noyau start [--port n] [--host h] [--data dir] Server in the foreground
noyau service install|uninstall|status|restart Auto-start service
noyau config [list|get|set|unset] Ports, listen address, proxy mode (server.json)
noyau status System, service and server response
noyau open [--setup] [--print] Opens Noyau (or the first-run screen) in the browser
noyau qr QR code to open Noyau on the phone
noyau doctor [--json] Diagnostics: each problem with the command that fixes it
noyau update [--beta|--main] Latest release: verified tag, data backup, build next to the app, switch, service restart, rollback on failure
noyau uninstall [--purge] [--yes] Removes the service, command and application; data is kept unless --purge

Manual installation

git clone https://github.com/getnoyau/noyau.git && cd noyau
npm ci --include=dev && npm run build
node bin/noyau.mjs start

By system

Feature Linux macOS Windows (WSL2)
Processes, memory, CPU /proc ps, vm_stat, sysctl same as Linux
Agent priority per-thread nice + oom_score_adj nice same as Linux
Per-process swap, swappiness yes no same as Linux
Service systemd --user LaunchAgent systemd in WSL

A feature with no equivalent is disabled without an error. NOYAU_PLATFORM=darwin|win32 simulates another system for tests.

Edit this page on GitHub