This guide covers building the goose Desktop application from source on various Linux distributions.
Debian/Ubuntu:
sudo apt update
sudo apt install -y dpkg fakeroot build-essential clang libxcb1-dev libxcb-util-dev protobuf-compiler libvulkan-dev libvulkan1 glslcArch/Manjaro:
sudo pacman -S --needed dpkg fakeroot base-devel vulkan-headers vulkan-icd-loader shadercFedora/RHEL/CentOS:
sudo dnf install dpkg-dev fakeroot gcc gcc-c++ make libxcb-devel vulkan-headers vulkan-loader glslcopenSUSE:
sudo zypper install dpkg fakeroot gcc gcc-c++ make vulkan-headers vulkan-loader glslcAndroid / Termux:
The download_cli.sh installer detects Termux and automatically selects the
musl portable build (GOOSE_LINUX_VARIANT=musl). To install:
curl -fsSL https://github.com/aaif-goose/goose/releases/download/stable/download_cli.sh | bashTo build from source in Termux:
pkg install rust cmake protobuf clang build-essential
cargo build --release -p goose-cli --bin goose --no-default-features --features portable-defaultNote: The musl/portable build disables
local-inference(V8) andsystem-keyring(D-Bus SecretService) since neither is available on Android.
Original PR: aaif-goose#3890
- Rust: Install via rustup
- Node.js: Version 22.9.0 or later (use nvm for version management)
- pnpm: Version 10 or later (managed via Hermit, or install globally)
- just: Install via
cargo install justafter Rust is installed. More info
git clone https://github.com/aaif-goose/goose.git
cd gooseBuild Goose CLI:
cargo build --release -p goose-cli --bin gooseThis command should give you a list of possible packages in the workspace:
cargo test -pcd ui/desktop
pnpm install
# Copy the goose binary to the expected location
mkdir -p src/bin
cp ../../target/release/goose src/bin/Works on all Linux distributions:
pnpm run make --targets=@electron-forge/maker-zipOutput: out/make/zip/linux/x64/goose-linux-x64-{version}.zip
For Debian/Ubuntu systems:
pnpm run make --targets=@electron-forge/maker-debOutput: out/make/deb/x64/goose_{version}_amd64.deb
pnpm run make./out/goose-linux-x64/goosesudo dpkg -i out/make/deb/x64/goose_*.debIf you see errors about missing dpkg, fakeroot, Vulkan headers, or glslc:
# Install the missing packages for your distribution (see Prerequisites above)You may see warnings like:
GLib-GObject: instance has no handler with id
These are harmless and don't affect functionality. To suppress them, create a launcher script:
#!/bin/bash
cd /path/to/goose/ui/desktop/out/goose-linux-x64
./goose 2>&1 | grep -v "GLib-GObject" | grep -v "browser_main_loop"If you see "Goose binary not found", ensure you've:
- Built the Rust binary:
cargo build --release -p goose-cli --bin goose - Copied it to the right location:
cp ../../target/release/goose src/bin/ - Rebuilt the application:
pnpm run make
- The RPM maker is disabled by default as it's not compatible with Arch-based systems
- Use the ZIP distribution method for maximum compatibility
Flatpak builds are supported via CI. To build locally:
# Install flatpak and flatpak-builder
sudo apt install flatpak flatpak-builder
# Add Flathub remote
flatpak remote-add --if-not-exists --user flathub https://dl.flathub.org/repo/flathub.flatpakrepo
# Build with Electron Forge
pnpm run make --targets=@electron-forge/maker-flatpakOutput: out/make/flatpak/x86_64/*.flatpak
Building as Snap packages is not currently supported but may be added in the future.
For active development:
- Backend changes: Rebuild with
cargo build --release -p goose-cli --bin gooseand copy the binary - Frontend changes: Use
pnpm run startfor hot reload during development - Full rebuild: Run the complete build process above
Create ~/.local/share/applications/goose.desktop:
[Desktop Entry]
Name=goose AI Agent
Comment=Local AI agent for development tasks
Exec=/path/to/goose/ui/desktop/out/goose-linux-x64/goose %U
Icon=/path/to/goose/ui/desktop/out/goose-linux-x64/resources/app.asar.unpacked/src/images/icon.png
Terminal=false
Type=Application
Categories=Development;Utility;
StartupNotify=true
MimeType=x-scheme-handler/gooseTo install system-wide:
sudo cp -r out/goose-linux-x64 /opt/goose
sudo ln -s /opt/goose/goose /usr/local/bin/goose-guiWhen contributing changes that affect the Linux build process, please:
- Test on multiple distributions if possible
- Update this documentation
- Update
ui/desktop/README.mdif needed - Consider CI/CD implications for automated builds