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, thenbrew install cairn), and on npm ascairn-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.
- 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 updatecommand to stay on the latest version - Non-interactive mode: scriptable, pipeline-friendly execution
Install the latest release binary:
curl -fsSL https://raw.githubusercontent.com/cairn/cairn/v0.3.11/install.sh | shNote: 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 | iexNote: 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-codeOr 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.
Run the built-in update command:
cairn updateIf you installed with Bun or npm, update through the package manager instead (bun update -g cairn-code).
See the wiki to get started, and for commands and configuration.
Join the Cairn Discord server for release news, support, and to follow what Cairn is building next.
This repository does not host Cairn's source. Use GitHub Issues to report a bug, request a feature, or share feedback.
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.
