# Install leela-zero with Homebrew, apt, Nix

Neural Network Go engine with no human-provided knowledge. Version 0.17 via Homebrew; verified 2026-07-05. Also installable with debian: sudo apt install leela-zero.

## Install

```sh
sudo av install brew:leela-zero
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install leela-zero
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install leela-zero
```

  Evidence: Debian stable package indexes: leela-zero from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#leela-zero
```

  Evidence: nixpkgs package indexes: pkgs/by-name/le/leela-zero/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:leela-zero
- **Package manager:** Homebrew
- **Version:** 0.17
- **Source summary:** Neural Network Go engine with no human-provided knowledge
- **Homepage:** <https://zero.sjeng.org/>
- **Repository:** <https://github.com/leela-zero/leela-zero>
- **Last updated:** 2026-07-05T18:49:59+09:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- leelaz (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 0.17
## Project history and usage

Leela Zero is an open-source Go engine modeled after DeepMind's AlphaGo Zero approach: Monte Carlo tree search guided by a deep residual convolutional neural network, trained without human-provided Go knowledge.

### Project history

The project appeared after the AlphaGo Zero paper as a public reimplementation effort. Its README explicitly framed the engine as a faithful open-source implementation of the AlphaGo Zero system, while also noting that the repository did not contain trained network weights.

A major part of the project was the distributed AutoGTP training loop: volunteers ran clients that generated self-play games, uploaded results, and helped train stronger networks. The official training site records 21,219,288 self-play games and 1,264,007 match games before the server shut down on 2021-02-15.

The release line evolved through practical engine work: OpenCL/GPU support, GTP integration, GUI-facing analysis commands, batching, Tensor Core support, Winograd optimizations, and AutoGTP features. Version 0.17 was released on 2019-04-04.

### Adoption history

Leela Zero reached adoption well beyond a niche package: the GitHub repository shows thousands of stars and forks, the README documents Homebrew installation for macOS, and the official site linked to community successor projects after training ended.

Go players and engine users usually paired it with GTP-compatible GUIs rather than running the engine directly. The README names Lizzie, Sabaki, LeelaSabaki, and GoReviewPartner as related clients or review tools.

### How it is used

Leela Zero is used as a Go engine through the Go Text Protocol. A user supplies a neural-network weights file, enables GTP with `--gtp`, and connects the engine to a GUI or analysis tool for playing, review, and study.

During the distributed-training phase, contributors ran AutoGTP to generate self-play or match games for the public training effort.

### Why package nerds care

For package people, Leela Zero is a snapshot of the post-AlphaGo open-source AI-engine wave: C++14, OpenCL, GPU tuning, neural-network weights as separate data artifacts, and package-manager builds that had to expose a command-line engine while leaving training data outside the formula.

It also links Go-engine packaging with AI reproducibility culture: the executable, weights, GUI clients, training server, and community forks are all separate moving parts.

### Timeline

- 2017: AlphaGo Zero paper prompted open-source reimplementation efforts including Leela Zero.
- 2018-12-08: GitHub releases page shows Leela Zero 0.9 + AutoGTP v8.
- 2019-04-04: Version 0.17 + AutoGTP v18 was released with batching, Tensor Core support, and search/analysis improvements.
- 2021-02-15: Official training server shut down after the project finished its distributed training run.

### Related projects

- The README links Leela Zero to AlphaGo, AlphaGo Zero, AlphaZero, Lizzie, Sabaki, LeelaSabaki, GoReviewPartner, Leela Chess Zero, and lc0.
- The official training site points former contributors toward SAI and KataGo as successor-style Go AI projects.

### Sources

- <https://github.com/leela-zero/leela-zero>
- <https://github.com/leela-zero/leela-zero/releases>
- <https://zero.sjeng.org/>


## Security Notes

broad file, network, media, or database tool signal.

- **Geiger risk:** blue / medium
- broad file, network, media, or database tool signal

## Other Package-Manager Records

- Debian apt - leela-zero - 0.17-1+b4: normalized package name match | Debian stable package indexes: leela-zero from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Go engine with no human-provided knowledge, modeled after the AlphaGo Zero paper | https://github.com/gcp/leela-zero
- Nix - leela-zero: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/leela-zero/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - leela-zero - 0.17-1build6: normalized package name match | Ubuntu 24.04 LTS package indexes: leela-zero from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Go engine with no human-provided knowledge, modeled after the AlphaGo Zero paper | https://github.com/gcp/leela-zero


## Combined YAML source

View the package source record on GitHub. [combined/leela-zero.yml](https://github.com/mxcl/pkgdb/blob/main/combined/leela-zero.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
