Skip to content

Installation

Jeffry Samuel edited this page Mar 7, 2025 · 6 revisions

Official

Flatpak (Flathub)

You can find the latest stable version of Alpaca on Flathub.

Make sure you have Flathub added as a Flatpak repository before continuing.

Simply install from your system's graphical software store like Gnome Software or Discover.

If you prefer to use a terminal to install Flatpak applications, you can use the following command:

flatpak install flathub com.jeffser.Alpaca

Ollama Installation

Follow the instructions in this wiki page.

Flatpak (Package)

Every time a new version is published they become available on the releases page of the repository.

Snap

Alpaca is not currently distributed in the Snap Store but a Snap package is distributed.

First download the package from the releases page, then install the package using this command:

sudo snap install ./{package name} --dangerous

The --dangerous option is used because the package is not associated with the Snap Store, Alpaca's Snap sandbox is still present.

MacOS

  1. Download the MacOS DMG from the releases page under assets.
  2. Mount the DMG file by opening it.
  3. Drag the Alpaca.app file to your apps folder.

Unofficial

This packages are not maintain by me, of course, Alpaca is open source and welcomes repackaging when possible but I'm not responsible for the integrity of the packages.

Arch Linux AUR

Warning

Alpaca is not sandboxed in this installation method, any commands ran with the integrated code runner will run in the host.

Before installing any package from the AUR (Arch User Repository) you first need to install an AUR helper, in this case let's use yay.

sudo pacman -S --needed git base-devel
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si

Now that yay is installed you have this new command to install both AUR and Arch Official packages, simply replace sudo pacman with just the command yay.

To install Alpaca use the following command:

yay -S alpaca-ai

Nix

Note

  1. The package is not maintained by the author, but by @Aleksanaa, thus any issues uncertain whether related to packaging or not, should be reported to Nixpkgs issues.

  2. Alpaca is automatically updated in Nixpkgs, but with a delay, and new updates will only be available after testing.

  3. Alpaca in Nixpkgs does not come with sandboxing by default, which means if you want to directly execute the scripts generated by ollama (without even reviewing them first), we do not provide any isolation to prevent you from shooting yourself in the foot. You can still leverage Nixpak or Firejail for a convenient sandboxing.

Alpaca is also available in Nixpks. See package info for installation instructions.