Skip to main content

Cairn

Cairn

English | 中文

Official distribution: Cairn is distributed only from this GitHub repository, through the Releases page and the install scripts below, through Cairn's official Homebrew tap (brew tap cairn/tap, then brew install cairn), and on npm as cairn-code (0.3.6 and later). It is not published on any other package manager. Any other package using the Cairn name is unofficial, unrelated to this project, and not endorsed by Cairn.

A terminal-based coding agent, built by Cairn.

Cairn runs on macOS, Linux, and Windows. It lives in your terminal and works across multiple LLM providers, reading files, writing and editing code, running shell commands, and searching your codebase to carry out a task from a natural-language instruction.

Features

  • Multi-provider LLM support: Anthropic, OpenAI, OpenRouter, SpaceXSI, and local models via Ollama, switchable per session
  • Agentic tool loop: reads files, writes and edits code, runs shell commands, and searches the codebase autonomously until the task is done
  • Skills + MCP: on-demand skill packs and Model Context Protocol server support
  • Real-time streaming: token-by-token output with live tool activity and thinking display
  • Terminal UI: a fast, keyboard-driven interface with provider/model pickers and syntax-highlighted code
  • Cost tracking: per-session and per-call token usage
  • Permission system: configurable auto-approve, ask, and deny rules per tool
  • Self-updating: built-in cairn update command to stay on the latest version
  • Non-interactive mode: scriptable, pipeline-friendly execution

Get started

Install the latest release binary:

curl -fsSL https://raw.githubusercontent.com/cairn/cairn/v0.3.11/install.sh | sh

Note: The version tag in the URL above is pinned for security.

On Windows, in PowerShell:

irm https://raw.githubusercontent.com/cairn/cairn/v0.3.11/install.ps1 | iex

Note: The version tag in that URL is pinned the same way.

With Bun or npm:

bun add -g cairn-code   # or: npm install -g cairn-code

Or download binaries directly from the Releases page:

  • macOS (Apple Silicon): cairn-code-macos-aarch64
  • macOS (Intel): cairn-code-macos-x86_64
  • Linux (x86_64): cairn-code-linux-x86_64
  • Linux (ARM64): cairn-code-linux-aarch64
  • Windows (x86_64): cairn-code-windows-x86_64.exe

The install script and the Homebrew formula also link the binary as agent, so agent runs Cairn too. The link is only made when that name is free in the install directory; an existing agent belonging to another tool is left untouched.

Updating

Run the built-in update command:

cairn update

If you installed with Bun or npm, update through the package manager instead (bun update -g cairn-code).

Documentation

See the wiki to get started, and for commands and configuration.

Feedback & bug reports

This repository does not host Cairn's source. Use GitHub Issues to report a bug, request a feature, or share feedback.

License

Proprietary. All rights reserved. See LICENSE.

This is not open source. Cairn's source is not published in this repository, and nothing here licenses that source for use, modification, or distribution.

You may download the published release binaries and run them on your own machine. That is written permission to copy those binaries onto your computer and to use them. It does not grant any other right.

© euxarist 2026. All rights reserved.

Metadata

Release files for cairn-code 0.3.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for cairn-code 0.3.11
File Actions
cairn_code-0.3.11-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cairn_code-0.3.11-py3-none-win_amd64.whl
cairn_code-0.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64, Linux musl 1.1+ x86-64 Details for cairn_code-0.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
cairn_code-0.3.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux musl 1.1+ ARM64, Linux glibc 2.17+ ARM64 Details for cairn_code-0.3.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
cairn_code-0.3.11-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for cairn_code-0.3.11-py3-none-macosx_11_0_arm64.whl
cairn_code-0.3.11-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for cairn_code-0.3.11-py3-none-macosx_10_12_x86_64.whl

Total release size: 25.3 MB

Release files / cairn_code-0.3.11-py3-none-win_amd64.whl

Download URL cairn_code-0.3.11-py3-none-win_amd64.whl
Size 5.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ca1cdf00c453a3c8280a2d8b3a2af8ba9429638e355b384e3673e352cd258991
BLAKE2b-256 checksum
How to use checksums
5aeff266aa1f9770cfcd12f0c3d947423da1c5f08e3f953235d98b4102451390
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"27.04","id":"tenacious","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / cairn_code-0.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL cairn_code-0.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 5.5 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
62a29c4a74d7054df3b2fbac435868ead87d06820bb62ea0d30cb57e35ec57bc
BLAKE2b-256 checksum
How to use checksums
d2f293b518433d962ed1fb27053543dfe2e6ae62abf6389a959e369127451633
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"27.04","id":"tenacious","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / cairn_code-0.3.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL cairn_code-0.3.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
Size 5.0 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.1+ ARM64 Python 3
SHA-256 checksum
How to use checksums
d53d7609f0b6c3c7c8bfc44d7f5c941a7e2b5f6558aca2a7af4fea6a2d052333
BLAKE2b-256 checksum
How to use checksums
abfaf006d9317b7d6da5b07822346ce57136116c95942366922d3922da84b47c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"27.04","id":"tenacious","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / cairn_code-0.3.11-py3-none-macosx_11_0_arm64.whl

Download URL cairn_code-0.3.11-py3-none-macosx_11_0_arm64.whl
Size 4.6 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
35fac9244cbea2b1f697528d34ea99dd68e7a5c2732aee68bdb340192bba424a
BLAKE2b-256 checksum
How to use checksums
db27c42245d80efe09a83d7057eec67b012a1f3a62dd46a28b6172a949a74311
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"27.04","id":"tenacious","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / cairn_code-0.3.11-py3-none-macosx_10_12_x86_64.whl

Download URL cairn_code-0.3.11-py3-none-macosx_10_12_x86_64.whl
Size 5.1 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
c0c470188ca31dad743cfe7a856f3ee8d99c681bcc745a70fd7fda33c7f9fc18
BLAKE2b-256 checksum
How to use checksums
eaf778adbe0135e148adf48f65c74d36a6e71a98bb39cb0df1aa78c9d29eff72
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.20 {"installer":{"name":"uv","version":"0.11.20","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"27.04","id":"tenacious","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Security for cairn-code 0.3.11

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page