Part VIII

Install & distribution

On this page

CNS installs from precompiled packages. On a Mac, use one Homebrew command. On a Linux server, use the release archives and their installer. You do not need Cargo, a Rust toolchain or a native compiler.

Listing 8.1 · Install on macOS with Homebrew

The private ivannovak/cns tap holds the formulae. Install the whole suite:

brew install ivannovak/cns/cns

The cns formula depends on Axon, Soma, Engram and Thalamus, so this one command installs all five tools. To install only what you need, name one organ:

Organ Package Install command
CNS wrapper (cns) 0.2.2 brew install ivannovak/cns/cns
Axon 1.6.4 brew install ivannovak/cns/axon
Soma 1.2.3 brew install ivannovak/cns/soma
Engram 1.8.0 brew install ivannovak/cns/engram
Thalamus 1.1.10 brew install ivannovak/cns/thalamus
Hippocampus No package yet Not installable.
Cortex No package Not part of this distribution.

Start with Axon, then add Soma when you want project-rule review. The learning path uses the same small project throughout. Installation does not start a service, enroll a harness, change harness settings or configure an inference endpoint.

Listing 8.2 · Install on a Linux server

Linux servers do not use Homebrew. They install the release archives into ~/.local/bin with deploy/install-binaries.sh. The script verifies every archive (checksum, manifest, target, glibc and a --version run) before it writes anything. Run it as the user that runs CNS, not as root:

export GH_TOKEN=... # the server's read-only token; see below
gh api -H 'Accept: application/vnd.github.raw' repos/ivannovak/cns/contents/deploy/install-binaries.sh > install-binaries.sh
bash install-binaries.sh # every released tool, at the tap's pinned versions
bash install-binaries.sh --organs thalamus --no-cns # only thalamus
bash install-binaries.sh --help

The script installs the same versions that the Homebrew tap pins. Each version goes into ~/.local/share/cns/<tool>/<version>/, and ~/.local/bin/<tool> is a symlink to it. A second run with the same versions changes nothing. The deployment guide (repository access may be required) explains updates, rollback and offline mirrors.

The script never installs system packages. It prints the apt-get command for missing CNS dependencies (zsh, jq, git, curl, python3).

Supported hosts

Host Method Tools
macOS on Apple silicon (arm64) Homebrew All five
Ubuntu 20.04 LTS and every later LTS, x86_64 and aarch64 Release archives All five; cns needs Python 3.11 or later

Every Linux organ archive needs glibc 2.30 or later, so Ubuntu 20.04 (glibc 2.31) runs all of them. The cns wrapper reads TOML with Python's tomllib, so it needs Python 3.11 or later:

Ubuntu python3 What to do
24.04 3.12 Nothing.
22.04 3.10 sudo apt-get install -y python3.11 (cns finds python3.11).
20.04 3.8 No 3.11 package exists. As the CNS user: uv python install 3.12.

On 20.04 without a suitable Python, the installer refuses cns and names this fix.

Access

The tap and the releases are private. Access needs two separate things:

Set tokens in your environment or a secret store. Never paste a token into a command line, formula, URL or issue. Publishing this documentation does not grant access.

Listing 8.3 · Initialise a repository

The beginner lessons do not need the cns wrapper. When you have it installed:

cd /path/to/your/repository
# Optional: configure your actual relay before init.
# export THALAMUS_URL="https://your-relay.example"
cns init --domain your-domain
cns status
cns gate

Without a relay, init writes local-only retrieval configuration. It does not invent a model host. Existing OTE manifests are not rewritten. See cns init and the endpoint resolution contract. Before setting THALAMUS_URL or any organ endpoint, read what leaves your machine for what each configured service receives.

Note 8.1 · Harness files

The cns package includes the ready-to-use harness files. On macOS they are in $(brew --prefix)/opt/cns/libexec/harnesses/. On Linux they are in ~/.local/share/cns/cns/<version>/harnesses/. Their relay addresses are examples, not defaults: read each file before you copy or merge it.

Listing 8.4 · Routine operation

cns curate
cns status
cns gate

The closeout gate is structural by default. The System 1 rubric sends inference and requires explicit opt-in; unavailable requested work is reported as not evaluated.

Working on CNS itself

To build, test or release CNS from its source, read CONTRIBUTING.md (repository access may be required).