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

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

Total release size: 25.0 MB

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

Download URL cairn_code-0.3.8-py3-none-win_amd64.whl
Size 5.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
ed9514323380235ffffea410ba26c2482afa3b8ecd0e976b3527c9ae93925fb4
BLAKE2b-256 checksum
How to use checksums
ff9724d73c9130bf2f1536585cf95567966cfc6e23c0ed0f3266d1cb7580df82
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.8-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.musllinux_1_1_x86_64.whl

Download URL cairn_code-0.3.8-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
673f10e1f08aa54d5558df9570da171396c7f0d6b44b43d0fda543dfdf9dbbb9
BLAKE2b-256 checksum
How to use checksums
9532bee8ba32a6e99fe258a034b488b0b0df5093579e6835132b63017858cd21
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.8-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL cairn_code-0.3.8-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
9e3917b9f86efaae94b99ca62b68893dd8ba53001581e4123c201a343082a136
BLAKE2b-256 checksum
How to use checksums
08557465908655670a345b84266218be84a6b3434781e76b733ae6fef2bd6ce7
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.8-py3-none-macosx_11_0_arm64.whl

Download URL cairn_code-0.3.8-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
890fcb5826823b505412b5f9387c1f1e2eaaaaf99b81d3fd312852921418fb95
BLAKE2b-256 checksum
How to use checksums
19e45af2c0b14751b94ba5b9eadf7c81eac6ed24345d7aca76542950eba9aadd
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.8-py3-none-macosx_10_12_x86_64.whl

Download URL cairn_code-0.3.8-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
60d42e59306617793773951cdf22e4cec45316d8ea652517333593f6f0af59df
BLAKE2b-256 checksum
How to use checksums
3916703010de428ecdf8bc6a81d886d44f5436b2e49df5fec0a76c58f8f7f533
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.8

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