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.6/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.6/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.10

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.10
File Actions
cairn_code-0.3.10-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cairn_code-0.3.10-py3-none-win_amd64.whl
cairn_code-0.3.10-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.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
cairn_code-0.3.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux musl 1.1+ ARM64 Details for cairn_code-0.3.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
cairn_code-0.3.10-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for cairn_code-0.3.10-py3-none-macosx_11_0_arm64.whl
cairn_code-0.3.10-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for cairn_code-0.3.10-py3-none-macosx_10_12_x86_64.whl

Total release size: 25.3 MB

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

Download URL cairn_code-0.3.10-py3-none-win_amd64.whl
Size 5.1 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
3b9b1f4b0079c4dc19db168570d55fcc238474f065f7c89d78d28e817ed7e0ec
BLAKE2b-256 checksum
How to use checksums
1a6597179463b041c4c5ddc2222efc1a99cf711c5cbd0be999f2d360b923453e
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.10-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL cairn_code-0.3.10-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
eb1e5ad412ceb7232a5d8ee2eb68bc6ea9b04f146c83178e8ea1ede9eb5b4a2c
BLAKE2b-256 checksum
How to use checksums
b3ff9c3039b989ace5c0d248cb9730bdcb604363579e2e7c1c00f365ff160303
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.10-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL cairn_code-0.3.10-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
075ce2df426583636b36f759098b3e091e93f339e8bd1ba34dd63f8b719a98ed
BLAKE2b-256 checksum
How to use checksums
4c9e2571998bf6f04016b4d3f91121eab8cff7c832b9a2d3de783bcf43e7ad51
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.10-py3-none-macosx_11_0_arm64.whl

Download URL cairn_code-0.3.10-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
e23fe61864eabb73038f64e9b0c213e18d3ac068fda5538a9e5c58f84f981b35
BLAKE2b-256 checksum
How to use checksums
610c1a113fc886fdddbb7ecdef88fc234d185b00a757a5520a23321999600798
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.10-py3-none-macosx_10_12_x86_64.whl

Download URL cairn_code-0.3.10-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
36e6d20a79e33e1e6cee6ba45acb3c0da947641d551e2b21e23e99c8135f4d49
BLAKE2b-256 checksum
How to use checksums
cc9a516037683fc85857aab10d8640cd1e83db3e8cfccff03a9fee8b5579cab2
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.10

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