# Installation

Install agentty in one line, or via your distro's package manager.

Most people only need the first line below. Run it again later to update.

## One-line install (recommended)

Linux and macOS:

```bash
curl -fsSL https://agentty.org/install.sh | sh
```

Windows (PowerShell):

```powershell
irm https://agentty.org/install.ps1 | iex
```

That's it. Next: [Quick Start](/docs/quick-start).

It picks the right build for your machine, checks its SHA256, and installs to `~/.local/bin` (or `/usr/local/bin` as root; on Windows, `%LOCALAPPDATA%\agentty`, added to your `PATH`).

## Prefer a package manager?

| System | Command |
|---|---|
| macOS / Linux (Homebrew) | `brew tap 1ay1/tap && brew install agentty` |
| Windows | `winget install agentty` |
| Arch | `yay -S agentty-bin` |
| Debian / Ubuntu, Fedora, openSUSE | `.deb` / `.rpm`, [below](#debian--ubuntu) |

Everything else (Nix, Snap, Gentoo, Termux, the MSI, raw binaries) is further down.

## Debian / Ubuntu

```bash
curl -fsSLO https://github.com/agentty-org/agentty/releases/latest/download/agentty_0.9.62_amd64.deb
sudo dpkg -i agentty_0.9.62_amd64.deb       # or agentty_0.9.62_arm64.deb
```

Update: `dpkg -i` the new release's `.deb`.

## Fedora / RHEL / openSUSE

```bash
# Fedora / RHEL / CentOS
sudo dnf install https://github.com/agentty-org/agentty/releases/latest/download/agentty-0.9.62-1.x86_64.rpm

# openSUSE
sudo zypper install https://github.com/agentty-org/agentty/releases/latest/download/agentty-0.9.62-1.x86_64.rpm

# or upgrade an existing install:
sudo rpm -Uvh https://github.com/agentty-org/agentty/releases/latest/download/agentty-0.9.62-1.x86_64.rpm
```

`-U` is upgrade; works for the first install too. Use `agentty-0.9.62-1.aarch64.rpm` on ARM.

## Arch Linux

```bash
yay -S agentty-bin       # or paru, pikaur, etc.
yay -Syu agentty-bin     # update
```

Or install the release-page `.pkg.tar.zst` with `sudo pacman -U`.

## Alpine

No `.apk` is published yet — use the install script or the static binary:

```bash
curl -fsSL https://agentty.org/install.sh | sh
```

## Nix · Snap · Gentoo

Pinned manifests for these are attached to every release. Grab the one for your channel from the [latest release page](https://github.com/agentty-org/agentty/releases/latest):

```bash
nix-env -iA agentty      # Nix (attached manifest)
snap install agentty     # Snap
emerge agentty           # Gentoo
```

## macOS

The one-line installer above ships prebuilt binaries for both Apple Silicon (`arm64`) and Intel (`x86_64`) and strips the Gatekeeper quarantine flag for you, so it just runs:

```bash
curl -fsSL https://agentty.org/install.sh | sh
```

Homebrew (macOS & Linux):

```bash
brew tap 1ay1/tap
brew install agentty
brew upgrade agentty     # update
```

## Windows

The fastest way — one line in PowerShell:

```bash
irm https://agentty.org/install.ps1 | iex
```

Downloads `agentty.exe`, verifies its SHA256, installs to `%LOCALAPPDATA%\agentty`, and adds it to your user `PATH`. Or use a package manager (no SmartScreen prompt) — both install **per-user, with no admin/UAC prompt**:

```bash
winget install agentty
# or
scoop bucket add 1ay1 https://github.com/1ay1/scoop-bucket
scoop install agentty
```

Prefer the MSI? Download `agentty-windows-x86_64.msi` from the [latest release](https://github.com/agentty-org/agentty/releases/latest) and double-click it — it installs **just for you** (`%LOCALAPPDATA%\Programs\agentty`), edits only your user `PATH`, and needs **no administrator rights**.

Portable single `.exe` (no installer): `curl -L https://github.com/agentty-org/agentty/releases/latest/download/agentty-windows-x86_64.exe -o agentty.exe`

## Termux / Android

agentty builds natively on Termux against its Bionic/libc++ toolchain — no root, no proot. The install script detects Termux and installs into `$PREFIX/bin`, which is on your default `PATH`:

```bash
pkg install git cmake clang openssl libnghttp2
curl -fsSL https://raw.githubusercontent.com/agentty-org/agentty/master/install.sh | sh -s -- --build
```

Everything works — file tools, RAG, the agent loop, and shell/build tools — with one caveat: the shell sandbox needs Linux user namespaces that unrooted Android doesn't grant, so `bash`/`diagnostics` run **unsandboxed** (agentty detects this and prints `sandbox: unavailable, running unsandboxed`). Point it at a scoped workspace if that matters to you.

An on-repo [`packaging/termux/build.sh`](https://github.com/agentty-org/agentty/blob/master/packaging/termux/build.sh) recipe targets the official Termux repos for a future `pkg install agentty`.

## Raw static binaries

Fully-static, no shared-library dependencies. Drop and run:

```bash
# Linux x86_64
curl -fsSL https://github.com/agentty-org/agentty/releases/latest/download/agentty-linux-x86_64 -o agentty && chmod +x agentty
# Linux i686 (32-bit)
curl -fsSL https://github.com/agentty-org/agentty/releases/latest/download/agentty-linux-i686 -o agentty && chmod +x agentty
# macOS (Apple Silicon / Intel)
curl -fsSL https://github.com/agentty-org/agentty/releases/latest/download/agentty-macos-arm64 -o agentty && chmod +x agentty
curl -fsSL https://github.com/agentty-org/agentty/releases/latest/download/agentty-macos-x86_64 -o agentty && chmod +x agentty
```

Each release asset carries a published SHA256 (shown on the release page and verified automatically by the one-line installer).

## Latest release

**v0.9.62** · [release notes & checksums ↗](https://github.com/agentty-org/agentty/releases/latest)

:::release-table

## Installer options

`--prefix ~/somewhere`, `--version v0.9.62`, `--no-verify`, `--build` (force a source build). Prebuilt binaries for Linux (x86_64, i686), macOS (Apple Silicon & Intel), and Windows (x86_64). On any other platform the script builds from source automatically. Works with `curl` or `wget`.

:::tip
Building from source? See [Building from Source](/docs/building) for the CMake flags and toolchain requirements.
:::
