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.9

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.9
File Actions
cairn_code-0.3.9-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for cairn_code-0.3.9-py3-none-win_amd64.whl
cairn_code-0.3.9-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.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
cairn_code-0.3.9-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.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl
cairn_code-0.3.9-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for cairn_code-0.3.9-py3-none-macosx_11_0_arm64.whl
cairn_code-0.3.9-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for cairn_code-0.3.9-py3-none-macosx_10_12_x86_64.whl

Total release size: 25.1 MB

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

Download URL cairn_code-0.3.9-py3-none-win_amd64.whl
Size 5.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
05017f446fac39aa2911d251a158884c5106eb142b00c664664d84eafda6f45d
BLAKE2b-256 checksum
How to use checksums
656b89f02642e9a90ce159626a94df50d1db9bd0f4229759a4dd17980b59098c
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.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL cairn_code-0.3.9-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl
Size 5.4 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.1+ x86-64 Python 3
SHA-256 checksum
How to use checksums
2f3a5b6c0fff03af86c704de1553713c8eca73fba33969dd422fd495dccd4a96
BLAKE2b-256 checksum
How to use checksums
f793b233fe713f68f37e461c2f2fad2b443062737a0b90656e94e1b36bda69ba
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.9-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL cairn_code-0.3.9-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
50200f2055b14372b413ab47d5327101bae80035a30d5a97cd071f7c92168eb6
BLAKE2b-256 checksum
How to use checksums
f8e0ca56ca71800dbd733974c256d3b73230a2bc022968931e43dc68fac56033
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.9-py3-none-macosx_11_0_arm64.whl

Download URL cairn_code-0.3.9-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
c02858b9c4adeffd298d5c3a91b5e9d4a20f3bae637c90bed8b05197d8b6653c
BLAKE2b-256 checksum
How to use checksums
38c19d40864a1722c0e7524ec1355d9b43f5049f3b638d53a3621306801bb1e1
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.9-py3-none-macosx_10_12_x86_64.whl

Download URL cairn_code-0.3.9-py3-none-macosx_10_12_x86_64.whl
Size 5.0 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
8de73e783c726fd5546e76e7e9197e72860b2d6fd788546a61b90e47f6d7ccc9
BLAKE2b-256 checksum
How to use checksums
4de976b78a58fae4c46209ae5d5fe7fae46237c6fe84f2f9b9e54f1c37d29628
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.9

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