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

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

Total release size: 25.2 MB

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

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

Download URL cairn_code-0.3.7-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
09a096d9345d0e692e0576a4c2553430178ac170d480bd1044603debe44e4443
BLAKE2b-256 checksum
How to use checksums
bdc4dd5a0520593a7e0023535479452f936fb15c80878c2ce75d086e60dab927
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.7-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.musllinux_1_1_aarch64.whl

Download URL cairn_code-0.3.7-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
091970dc0e688ef0e5d85e68159b29c2549b21ef8479f66b14d84da38538b200
BLAKE2b-256 checksum
How to use checksums
78a652ddc55390ef2b884a47cb5c4546c078613cc5b8018486338c959c6f6e78
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.7-py3-none-macosx_11_0_arm64.whl

Download URL cairn_code-0.3.7-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
bad54a117e2afd331ce6cb50faacae72c700f645b6b307e3f76d91a6601ed07e
BLAKE2b-256 checksum
How to use checksums
d07729256f9de7af6ad0f479969d369846c60e0089c6929d1b5e668737e4ab67
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.7-py3-none-macosx_10_12_x86_64.whl

Download URL cairn_code-0.3.7-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
262041c2bf2a5c7a498bc78a7b43a1ec1b6db33f5c89b69be246964d38a59555
BLAKE2b-256 checksum
How to use checksums
5378cf9c3e2ee667d17791dbd3e2ef902ee23d919137cfea3b26956c488c55ed
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.7

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