Installation
Get started
Install mare using the method best suited to your operating system, then run mare init and mare doctor to verify the setup.
Supported platforms
Section titled “Supported platforms”Release artifacts are built for six targets (.github/workflows/release.yaml):
| Platform | Target | Artifacts |
|---|---|---|
| macOS, Apple silicon | aarch64-apple-darwin |
.tar.gz, Homebrew cask, Nix |
| macOS, Intel | x86_64-apple-darwin |
.tar.gz, Homebrew cask, Nix |
| Linux, x86-64 (glibc 2.39+) | x86_64-unknown-linux-gnu |
.tar.gz, .deb, .rpm, Homebrew cask, AUR, Nix, GHCR container |
| Linux, ARM64 (glibc 2.39+) | aarch64-unknown-linux-gnu |
.tar.gz, .deb, .rpm, Homebrew cask, AUR, Nix, GHCR container |
| Windows, x86-64 | x86_64-pc-windows-msvc |
.zip, Scoop manifest |
| Windows, ARM64 | aarch64-pc-windows-msvc |
.zip, Scoop manifest |
mare keeps its files in XDG-style directories on every platform, including Windows (see Files mare uses).
Quick install script
Section titled “Quick install script”Download the latest macOS archive (aarch64-apple-darwin or x86_64-apple-darwin) and verify its SHA-256 checksum against checksums.txt:
curl -fsSL https://signalridge.github.io/mare/install.sh | shBy default, the script installs mare into ~/.local/bin. Override MARE_INSTALL_DIR to change the target directory, or set MARE_VERSION=vX.Y.Z to install a specific release.
Homebrew cask
Section titled “Homebrew cask”brew tap signalridge/tapbrew trust signalridge/tapbrew install --cask mareNix (Flake and NUR)
Section titled “Nix (Flake and NUR)”# Flake (run directly or install to your profile)nix run github:signalridge/marenix profile install github:signalridge/mare#mare
# NUR prebuilt binarynix profile install github:signalridge/nur-packages#mareManual archive (.tar.gz)
Section titled “Manual archive (.tar.gz)”Download mare-$VERSION-$TARGET.tar.gz and its .sha256 file from GitHub Releases, verify the digest with shasum -a 256, and install:
VERSION=vX.Y.ZTARGET=aarch64-apple-darwin # or x86_64-apple-darwin for Intel MacsARCHIVE="mare-$VERSION-$TARGET.tar.gz"EXPECTED=$(awk 'NR==1 && length($1)==64 && $1 ~ /^[[:xdigit:]]+$/{print tolower($1)}' "$ARCHIVE.sha256")ACTUAL=$(shasum -a 256 "$ARCHIVE" | awk 'NR==1{print tolower($1)}')if [ -n "$EXPECTED" ] && [ "$ACTUAL" = "$EXPECTED" ]; then mkdir -p ~/.local/bin && tar xzf "$ARCHIVE" && install -m 755 "mare-$VERSION-$TARGET/mare" ~/.local/bin/mare && ~/.local/bin/mare --versionelse echo "Checksum mismatch: expected $EXPECTED, got $ACTUAL" >&2 falsefiQuick install script
Section titled “Quick install script”Download the latest Linux archive (x86_64-unknown-linux-gnu or aarch64-unknown-linux-gnu, glibc 2.39+) and verify its SHA-256 checksum against checksums.txt:
curl -fsSL https://signalridge.github.io/mare/install.sh | shBy default, the script installs mare into ~/.local/bin. Override MARE_INSTALL_DIR to change the target directory, or set MARE_VERSION=vX.Y.Z to install a specific release.
Debian / Ubuntu (.deb)
Section titled “Debian / Ubuntu (.deb)”Download the .deb package matching your architecture (amd64 or arm64) from GitHub Releases, verify its digest against checksums.txt, and install:
sudo apt install ./mare_<version>_linux_amd64.deb# or for ARM64: sudo apt install ./mare_<version>_linux_arm64.debFedora / RHEL (.rpm)
Section titled “Fedora / RHEL (.rpm)”Download the .rpm package matching your architecture (amd64 or arm64) from GitHub Releases, verify its digest against checksums.txt, and install:
sudo dnf install ./mare_<version>_linux_amd64.rpm# or for ARM64: sudo dnf install ./mare_<version>_linux_arm64.rpmArch Linux (AUR)
Section titled “Arch Linux (AUR)”yay -S mare-bin# or: paru -S mare-binHomebrew (Linuxbrew)
Section titled “Homebrew (Linuxbrew)”brew tap signalridge/tapbrew trust signalridge/tapbrew install --cask mareNix (Flake and NUR)
Section titled “Nix (Flake and NUR)”# Flake (run directly or install to your profile)nix run github:signalridge/marenix profile install github:signalridge/mare#mare
# NUR prebuilt binarynix profile install github:signalridge/nur-packages#mareManual archive (.tar.gz)
Section titled “Manual archive (.tar.gz)”Download mare-$VERSION-$TARGET.tar.gz and its .sha256 file from GitHub Releases, verify the digest with sha256sum, and install:
VERSION=vX.Y.ZTARGET=x86_64-unknown-linux-gnu # or aarch64-unknown-linux-gnu for ARM64ARCHIVE="mare-$VERSION-$TARGET.tar.gz"EXPECTED=$(awk 'NR==1 && length($1)==64 && $1 ~ /^[[:xdigit:]]+$/{print tolower($1)}' "$ARCHIVE.sha256")ACTUAL=$(sha256sum "$ARCHIVE" | awk 'NR==1{print tolower($1)}')if [ -n "$EXPECTED" ] && [ "$ACTUAL" = "$EXPECTED" ]; then mkdir -p ~/.local/bin && tar xzf "$ARCHIVE" && install -m 755 "mare-$VERSION-$TARGET/mare" ~/.local/bin/mare && ~/.local/bin/mare --versionelse echo "Checksum mismatch: expected $EXPECTED, got $ACTUAL" >&2 falsefiMake sure ~/.local/bin (or the directory you chose) is on your PATH. On Linux, install bubblewrap through your distribution package manager if you want full namespace-based OS sandboxing (Landlock is also supported where the kernel enables it).
Windows
Section titled “Windows”Quick install script (PowerShell)
Section titled “Quick install script (PowerShell)”Download the latest Windows release archive (x86_64-pc-windows-msvc or aarch64-pc-windows-msvc), verify its SHA-256 checksum against checksums.txt, install mare.exe into %LOCALAPPDATA%\mare\bin (override with $env:MARE_INSTALL_DIR), and add it to your User PATH:
irm https://signalridge.github.io/mare/install.ps1 | iexSet $env:MARE_VERSION = "vX.Y.Z" before running the command to pin a specific version.
scoop bucket add signalridge https://github.com/signalridge/scoop-bucketscoop install signalridge/mareManual archive (.zip)
Section titled “Manual archive (.zip)”Download mare-$v-$t.zip and its .sha256 file from GitHub Releases, verify the SHA-256 digest before extracting, then copy mare-$v-$t\mare.exe to a directory on your PATH:
$ErrorActionPreference = "Stop"$v = "vX.Y.Z"; $t = "x86_64-pc-windows-msvc" # or aarch64-pc-windows-msvc$archive = "mare-$v-$t.zip"$expected = ([string](Get-Content "$archive.sha256" -Raw)).Trim().Split()[0].ToLower()$actual = (Get-FileHash $archive -Algorithm SHA256).Hash.ToLower()if ($expected -notmatch '^[0-9a-f]{64}$' -or $actual -ne $expected) { throw "Checksum mismatch: expected $expected, got $actual"}Expand-Archive $archive -DestinationPath .Windows also provides an optional enhanced sandbox tier. mare sandbox status shows whether it is installed and runs a self-test; mare sandbox setup installs it and asks for elevation once.
Container (Docker / GHCR)
Section titled “Container (Docker / GHCR)”Multi-architecture (linux/amd64, linux/arm64) images based on Ubuntu 24.04 (including git and bubblewrap) are published to GitHub Container Registry and signed with Cosign:
docker pull ghcr.io/signalridge/mare:latestdocker run --rm -it -v "$PWD:/workspace" -w /workspace ghcr.io/signalridge/mare:latestRelease artifacts and verification
Section titled “Release artifacts and verification”Releases are published on GitHub at signalridge/mare. Each published GitHub Release (vX.Y.Z) attaches:
.tar.gzarchives (macOS and Linux) and.ziparchives (Windows) with per-archive.sha256files;.deband.rpmpackages for Linux (amd64andarm64);checksums.txt, its Cosign signature bundle (checksums.txt.sigstore.json), SPDX SBOMs (*.sbom.spdx.json), and SLSA provenance (multiple.intoto.jsonl).
Each archive unpacks into a single directory of the same base name containing the mare binary (mare.exe on Windows), a types/ directory with Lua type definitions, LICENSE, THIRD_PARTY_NOTICES.md, licenses/cordis-LICENSE, licenses/RUST-THIRD-PARTY-NOTICES.txt, and README.md.
Build from source
Section titled “Build from source”You need the Rust toolchain at version 1.100.0 or newer (rust-version in Cargo.toml; the project uses edition 2024) and a C compiler, because the Lua 5.5 runtime is compiled from vendored sources. rust-toolchain.toml pins the exact release that CI and the release builds use, so rustup installs and selects it automatically inside the checkout.
Install directly with Cargo:
cargo install --git https://github.com/signalridge/mare --locked --bin mare mare-climare --versionOr clone the repository and build locally:
git clone https://github.com/signalridge/marecd marecargo build --release --locked -p mare-cli./target/release/mare --versionThe release workflow builds exactly this way, with --locked so Cargo.lock decides dependency versions. Copy target/release/mare somewhere on your PATH. The release profile enables LTO, so a release build takes noticeably longer than a debug build.
The repository also has a justfile:
| Command | What it does |
|---|---|
just run <args> |
cargo run -- <args>; debug builds read the built-in plugins from crates/mare-plugin/preset on disk, and /reload picks up edits |
just release |
cargo build --release |
just test |
Run workspace tests and doctests (requires cargo-nextest 0.9.138 or newer) |
just check |
Lint and test |
mare --version prints the version, the commit, the Git commit date, and the target.
First setup
Section titled “First setup”Create a default configuration:
mare initmare init writes ~/.config/mare/init.lua (an existing file is kept, never overwritten) and ~/.config/mare/.luarc.json, which points LuaLS at the type definitions in ~/.local/share/mare/runtime/types. Each line of output says whether a file was created, wrote or kept. If you edited .luarc.json yourself, mare leaves it alone.
Then check the installation:
mare doctormare doctor prints one line per check, with a check mark, a warning mark or a cross, and exits with 1 when any check fails. On a fresh machine two failures are expected: missing directories (mare creates them on first use) and no credentials. Create the directories and tighten file permissions with:
mare doctor --fix--fix creates missing directories, sets modes (0700 for directories, 0600 for auth.json and .jsonl files directly inside the sessions directory), and attempts to repair a corrupt package lock file. The doctor run itself still does its normal start-up work (such as preparing the session index and runtime files). Add --json to get the checks as one JSON document. Troubleshooting lists what each check covers.
Next, log in to a provider as described in the Quickstart.
Shell completion
Section titled “Shell completion”mare completion <shell> prints a completion script for bash, zsh, fish, elvish or powershell:
mare completion zsh > ~/.zfunc/_mare # zsh: ~/.zfunc must be in fpathmare completion bash > ~/.local/share/bash-completion/completions/maremare completion fish > ~/.config/fish/completions/mare.fishRestart the shell, or reload its completion system, to pick it up.
Updating
Section titled “Updating”mare does not replace its own binary. To update:
- If you installed via a package manager (
brew upgrade --cask mare,scoop update mare,yay -Syu mare-bin,nix profile upgrade mare), use that package manager. - Otherwise, re-run the quick install script (
install.sh/install.ps1) or download the newer archive, verify it, and overwrite the oldmarebinary.
Release builds of the TUI check GitHub releases for a newer version every 24 hours by default (update-check.interval_hours adjusts the interval; debug builds skip automatic checks) and print one line if there is one. The request carries no identifier beyond mare/<version>. Turn the check off in init.lua:
mare.setup { update_check = false }When the version changes, mare re-extracts its built-in plugins and types into ~/.local/share/mare/runtime the next time it starts. Packages declared in init.lua are updated separately with mare plugin update.
Files mare uses
Section titled “Files mare uses”| Directory | Default | Contents |
|---|---|---|
| Config | ~/.config/mare |
init.lua, .luarc.json, auth.json (credentials), mare-lock.json (package lock), plugins/ (your plugins) |
| State | ~/.local/state/mare |
state.json (runtime choices), trust.json, sessions/, log/, crashes/ |
| Data | ~/.local/share/mare |
runtime/ (built-in plugins and types), packages/ |
| Cache | ~/.cache/mare |
luac/ (compiled Lua bytecode cache) |
XDG_CONFIG_HOME, XDG_STATE_HOME, XDG_DATA_HOME and XDG_CACHE_HOME move the corresponding directory (mare appends mare). Setting MARE_HOME puts config, state, data and cache under one directory instead, which is useful for trying a clean setup without touching your real one. mare runtime prints the runtime directory.
A project can also have a .mare/ directory with its own init.lua, plugins, skills and prompts. These only load after you trust the project; see the Quickstart.
Uninstall
Section titled “Uninstall”- Optional: remove stored credentials with
mare logout, which revokes tokens where the provider supports it. Without a provider name it works when exactly one provider is logged in; otherwise name one, as inmare logout openai. - Uninstall via your package manager (for example
brew uninstall --cask mareorscoop uninstall mare), or delete themarebinary directly. - Delete the directories above if you want no trace left. Deleting the state directory removes all saved sessions.
rm -rf ~/.config/mare ~/.local/state/mare ~/.local/share/mare ~/.cache/mareEnvironment variables and keys you wrote into init.lua are not touched by mare logout; remove them yourself.