●●●CrowdCode™›User guideversion 1.0.1We the People AI
Enclawed CrowdCode™ user guide · Installing CrowdCode™ · version 1.0.1

Installing CrowdCode™

CrowdCode™ is a coding agent that runs on AI models you host yourself: on your own computer, on another computer you own, or on a server you trust. Every action it takes on your files and your machine is checked first by Enclawed™.

What you need

  • Node.js 22 or newer. Get it from nodejs.org or your package manager. Check with node -v. Node.js 22 and 24 both work. (Enclawed™ before 2.0.16 refused node --test inside a contained run on Node.js 24; 2.0.16 allows it.)
  • A model server, or a computer that can run one. For the full experience: an NVIDIA GPU with enough memory for the model (a 32-billion-parameter coding model needs about 40 GB with FP8). The setup step helps you choose.
  • Linux or WSL for the full feature set. On macOS, plain Windows, Android and iOS/iPadOS, CrowdCode™ runs and Enclawed™ decides every action. But Enclawed™ cannot run commands contained there yet, so it asks you about, or refuses, the tests, builds and scripts it would otherwise run contained. ccode doctor shows what Enclawed™ says about your computer.
  • Optional, for speaking to CrowdCode™: a recording program (on Linux and WSL sudo apt install pulseaudio-utils; on macOS and Windows ffmpeg) and a model that hears audio. See While it works.
  • Optional, for a second factor on your own actions: a FIDO2 security key, or this computer's passkey (Windows Hello, Touch ID), enrolled with enclawed auth enroll. See Safety and undo.
  • The programs your tests use, installed system-wide (Linux). Contained commands find programs only in the system folders: /usr/local/bin, /usr/bin, /bin, /usr/sbin and /sbin. A Node.js or Python that only nvm, pyenv or conda installed, in your home folder, isn't there. Install one through your package manager too, or link it into /usr/local/bin. Otherwise the contained run uses another version, or can't find the program.

Install

Linux, macOS and WSL

From a CrowdCode™ folder:

bash scripts/install.sh

The installer:

  1. checks Node.js and npm, and says how to get them if they're missing;
  2. installs CrowdCode™ into ~/.local/share/crowdcode (no sudo);
  3. creates the commands ccode and crowdcode in ~/.local/bin;
  4. offers to add ~/.local/bin to your PATH;
  5. offers to run ccode setup, which asks where your models run.

Useful options: --yes (no questions), --check (show what would happen, change nothing), --from FILE (install from a package file).

Windows

In PowerShell:

powershell -ExecutionPolicy Bypass -File scripts\install.ps1

It installs into %LOCALAPPDATA%\Programs\CrowdCode, creates ccode.cmd and crowdcode.cmd, and adds them to your user PATH. For the full experience on Windows, install inside WSL instead.

Android

CrowdCode™ runs in Termux, a Linux terminal app for Android. Install Termux from F-Droid or GitHub (the Google Play version is outdated), then:

pkg install nodejs-lts git openssh
git clone <your CrowdCode™ folder's address> crowdcode
bash crowdcode/scripts/install.sh
  • Models: a phone can run a small model itself (pkg install llama-cpp or pkg install ollama; ccode setup then shows the models that fit). For a large model, pick "On another computer I can log in to with SSH" or "On a server that is already running" in ccode setup.
  • Pasting: install the Termux:API app and pkg install termux-api to paste copied text. To attach a screenshot, run termux-setup-storage once, then attach it by its path, for example @~/storage/shared/Pictures/Screenshots/shot.png.
  • Contained commands: Android has none of the namespaces Enclawed™'s containment needs, so Enclawed™ asks you about, or refuses, the tests and builds it would run contained on Linux.

iPhone and iPad (iOS and iPadOS)

iOS and iPadOS let no app run Node.js directly. Two ways work:

  1. From the iPhone or iPad, on a computer (recommended). Install CrowdCode™ on a Linux computer (or WSL) and log in to it with an SSH app such as Blink Shell, Termius or a-Shell's ssh. CrowdCode™ runs there with everything, containment included; the iPhone or iPad is its screen and keyboard. mosh keeps the session through network changes and sleep.
  2. On the device, in iSH. iSH runs Alpine Linux by emulating an x86 processor, so it works but is slow, and models must run on another computer (ccode setup: SSH or a server address). In iSH, use Alpine 3.21 or newer (it has Node.js 22 and 24), then:
    apk add nodejs npm git bash openssh-client
    git clone <your CrowdCode™ folder's address> crowdcode
    bash crowdcode/scripts/install.sh
    Pasting copied text works through iSH's /dev/clipboard; attach screenshots by their path. As on Android, Enclawed™ asks about or refuses what it would run contained.

Check it works

ccode --version

Open a new terminal first if the installer just added the PATH line.

Update

Run the installer again from the newer CrowdCode™ folder (or package file). Versions are kept side by side, and the commands switch to the new one.

Uninstall

bash scripts/install.sh uninstall

On Windows: install.ps1 -Uninstall. Your settings (~/.config/crowdcode) and history (~/.local/state/crowdcode) are kept; delete those folders yourself if you want them gone.