Installation & Topologies
Install Cairnmind on your platform
Start in 15 seconds with zero external services (uvx cairnmind try), or install the full pinned ArcadeDB 26.11.1 stack locally with Java 21, Docker, or a remote connect-only server. Every command on this page is verified against docs/INSTALL.md by automated tests.
Quick platform switcher
Runs an ephemeral in-memory SQLite store over the bundled sample project. Writes nothing into your directory and requires no Java, Docker, or Ollama.
Zero setup · Python + uvuvx cairnmind try
uv tool install cairnmind
cairnmind init --backend sqliteScale losslessly to the full ArcadeDB engine at any time with cairnmind migrate --to server.
Requires Python 3.12+. Don’t have uv? Use pipx run cairnmind try or pip install cairnmind. Note: scripts/install-wsl.sh works on Linux, WSL2, and macOS from a cloned or unpacked release directory.
Linux & WSL2
Ubuntu 24.04 testedFull local stack with Java 21 (or Docker), pinned ArcadeDB 26.11.1, tmux 3.4+ terminal workspace, and optional local Ollama models.
1. System prerequisites (Ubuntu / WSL2)
sudo apt update
sudo apt install -y openjdk-21-jre-headless tmux git curl
curl -LsSf https://astral.sh/uv/install.sh | sh
curl -fsSL https://ollama.com/install.sh | sh 2. Run installer from source or release archive
bash scripts/install-wsl.sh Or install manually via uv
uv tool install --python 3.12 .
cairnmind engine install
cairnmind init
cairnmind engine status macOS
Apple siliconTested on Apple silicon with Homebrew Java 21, tmux, uv, and Ollama. Uses the same POSIX installer script.
1. Install via Homebrew and link Java 21
brew install openjdk@21 tmux uv ollama
brew services start ollama
sudo ln -sfn "$(brew --prefix openjdk@21)/libexec/openjdk.jdk" /Library/Java/JavaVirtualMachines/openjdk-21.jdk 2. Run the installer from the unpacked release or clone
bash scripts/install-wsl.sh Check tool versions
/usr/libexec/java_home -v 21+
java -version
tmux -V
uv --version
ollama --version Native Windows
Windows 10/11 · PowerShellRuns natively without WSL2 or tmux. Launches the standalone Textual workspace backed by an owner-only Windows Named Pipe for person-confirmed actions.
1. Install Git, uv, and Java 21 (or Docker Desktop)
winget install Git.Git astral-sh.uv EclipseAdoptium.Temurin.21.JDK 2. Run the native PowerShell installer
pwsh -File scripts/install-windows.ps1 Or with Windows PowerShell 5.1
powershell -ExecutionPolicy Bypass -File scripts/install-windows.ps1 Docker Engine
No local Java neededRuns Cairnmind's digest-pinned ArcadeDB container (ghcr.io/piotrwozn/cairnmind-arcadedb) on 127.0.0.1:2480 with your local data directory mounted.
Switch engine mode to Docker (or connect to a remote database)
cairnmind engine start --docker Verify storage, pulse, and MCP presets
cairnmind doctor --check-mcp Optional: download local Ollama models
cairnmind models pull
cairnmind doctor First Project
Register a project & bind assistants
Works immediately without Ollama or GPU. cairnmind install writes configuration only for coding clients actually installed on your machine.
cairnmind project add my-app ~/src/my-app
cairnmind remember my-app "Accounts lock after five failed logins."
cairnmind brief my-app
cairnmind ask my-app "When do accounts lock?"
cairnmind install my-app
cairnmind run my-app claude Universal MCP Generator
Built-in MCP client presets
Generate or safely deep-merge JSON, JSONC, and TOML MCP entries with atomic writes, .cairnmind.bak backups, and zero auto-approval flags:
cairnmind mcp generate --client cursor --write
cairnmind mcp test-connection
cairnmind doctor --check-mcp Supported platforms, backends & explicit limits
Explicit Boundaries
What Cairnmind does not do
-
Does not replace your coding assistant
Codex CLI, Claude Code, Copilot, Cursor, and API agents still write code under their own billing and tool permissions. Cairnmind is the local memory, verification, and hand-off service beside them.
-
Does not guarantee an LLM understood what it acknowledged
Read-before-write ACK proves a session received and echoed the exact plan, task, and state_hash versions. It does not prove the model reasoned flawlessly about them.
-
Does not stage, commit, or push Git changes
Cairnmind reads Git status, commits, and diffs to compute code fingerprints and impact, and writes published memory directories cleanly on disk, leaving every Git operation to you.
-
Does not load third-party plugins inside its own processes
Because Cairnmind holds local service and database credentials, all extension surfaces (check profiles, external MCP clients, third-party MCP tool servers, history converters) run strictly out of process.
-
Does not verify semantic interpretation beyond source quotes
Passing tests prove the declared check profile succeeded on the current code fingerprint. They do not prove that every acceptance criterion was met or reviewed by a human.
Full guarantees vs. non-guarantees: docs/CONTRACTS.md
CI-Tested Matrix
What Cairnmind supports
| Component | Supported |
|---|---|
| Operating Systems | Linux (Ubuntu 24.04 tested), native Windows 10/11 (PowerShell), Windows WSL2 Ubuntu, macOS on Apple silicon CI runs fast + full tests on Linux, macOS Apple silicon fast tests, and Windows fast + ArcadeDB tests. |
| Python & Packaging | Python 3.12+ via uv Isolated uv tool install. Zero website assets in wheel or sdist. |
| Database Backends | Pinned ArcadeDB 26.11.1 (Java 21 native, Docker image, or remote/K8s connect-only) · SQLite WAL+FTS5 (Preview) Lossless upgrade from SQLite preview via cairnmind migrate --to server. |
| Local / Remote Models | Optional: Ollama (qwen3.5:9b + qwen3-embedding:0.6b) or HTTPS OpenAI-compatible server Deterministic-only mode works with zero models and zero GPU. |
| Coding Assistants | Codex CLI, Claude Code (≥ 2.1.238 for cairnmind-recorder), GitHub Copilot SDK, OpenAI/Anthropic/Ollama API agents External MCP presets for Cursor, Cline, Windsurf, VS Code, Roo Code, Gemini CLI, Zed, Claude Desktop, and generic. |
| Code Graph Languages | Tree-sitter: Python, JavaScript, TypeScript · Auto SCIP: Go, Rust, Java, Kotlin, C, C++, C#, PHP, Ruby All other UTF-8 languages remain indexed and searchable as text. |