# Installation

> Install RaptorCode from a prebuilt package for Linux, macOS or Windows, or build it from source with Cargo.

RaptorCode ships as a single binary with two names, `raptor` and `raptorcode`. Install a prebuilt package from the [download page](https://raptorcode.dev/download) or [GitHub Releases](https://github.com/RaptorLabsHQ/raptorcode/releases/latest), or build it from source.

## Install a prebuilt package

**Linux**

The Linux build is a Debian package for x86_64. Download `raptor-code_amd64.deb` from the [download page](https://raptorcode.dev/download), compare its checksum with the one listed there, then install it:

```bash
sha256sum raptor-code_amd64.deb
sudo apt install ./raptor-code_amd64.deb
raptor --version
```

**macOS**

The macOS build is a universal archive for Apple silicon and Intel. Download `raptor-code_macos_universal.tar.gz`, compare its checksum, extract it into its own folder and move both commands onto your `PATH`:

```bash
shasum -a 256 raptor-code_macos_universal.tar.gz
mkdir -p raptorcode && tar xzf raptor-code_macos_universal.tar.gz -C raptorcode
sudo mkdir -p /usr/local/bin && sudo mv raptorcode/raptor raptorcode/raptorcode /usr/local/bin/
raptor --version
```

If macOS refuses to open it because the developer cannot be verified, clear the quarantine flag, or allow it under **System Settings → Privacy & Security**:

```bash
xattr -d com.apple.quarantine /usr/local/bin/raptor /usr/local/bin/raptorcode
```

**Windows**

The Windows build is a zip for x86_64. In PowerShell, compare the checksum, unblock the archive and extract it. `-Force` replaces an older version when you update:

```powershell
Get-FileHash .\raptor-code_windows_x86_64.zip -Algorithm SHA256
Unblock-File .\raptor-code_windows_x86_64.zip
Expand-Archive .\raptor-code_windows_x86_64.zip -DestinationPath $HOME\raptorcode -Force
```

The first time only, put the folder on your `PATH`:

```powershell
[Environment]::SetEnvironmentVariable('Path', [Environment]::GetEnvironmentVariable('Path', 'User') + ";$HOME\raptorcode", 'User')
$env:Path += ";$HOME\raptorcode"
raptor --version
```

> **Warning:** The builds are not code-signed yet, so macOS Gatekeeper and Windows SmartScreen may warn before the first run. Run them only after the checksum matches.

## Build from source

You need Git and Rust 1.88 or newer with Cargo. Cargo builds and installs the latest code from the repository:

```bash
cargo install --locked --git https://github.com/RaptorLabsHQ/raptorcode raptor-cli
```

Or build from a clone. The repository pins its Rust version in `rust-toolchain.toml`, which rustup picks up automatically:

```bash
git clone https://github.com/RaptorLabsHQ/raptorcode.git
cd raptorcode
cargo install --path crates/raptor-cli --force --locked
```

Both install `raptor` and `raptorcode` into Cargo's `bin` directory, usually `~/.cargo/bin`.

## Verify a download

Every release is published on [GitHub Releases](https://github.com/RaptorLabsHQ/raptorcode/releases) with the Linux package, the macOS archive and the Windows zip. There the files carry the version in their names, and each has a `.sha256` file next to it:

```bash
sha256sum -c raptor-code_1.2.0_amd64.deb.sha256
```

Every build also has a build-provenance attestation. With the GitHub CLI, check that a file was built by the project's release workflow, whatever its name:

```bash
gh attestation verify raptor-code_1.2.0_amd64.deb --repo RaptorLabsHQ/raptorcode
```

The files on [raptorcode.dev/download](https://raptorcode.dev/download) are the same builds without the version in their names; the page shows the current version and each file's SHA-256.

## Check the installation

```bash
raptor --version   # prints the version, for example raptor 1.2.0
raptor doctor      # checks the repository, git and the Rust toolchain
```

`raptor doctor` reports the version, the current directory, whether it is inside a git repository, and which of `git`, `cargo` and `rustc` are available.

## Update or uninstall

To update, install the new version the same way: `apt install` replaces the Debian package, the macOS and Windows steps overwrite the old files, and `cargo install` rebuilds from the latest code.

To uninstall, remove the package or the two binaries:

```bash Linux
sudo apt remove raptor-code
```

```bash macOS
sudo rm /usr/local/bin/raptor /usr/local/bin/raptorcode
```

```powershell Windows
Remove-Item -Recurse $HOME\raptorcode
```

```bash Cargo
cargo uninstall raptor-cli
```

Your saved DeepSeek key and model choice live in `~/.raptor/`; delete that folder to remove them too. Agent work in your repositories stays under each repository's `.raptor/` folder.

- [Next: Quickstart](https://raptorcode.dev/docs/quickstart): Add your DeepSeek key and run your first swarm.
