# 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.

## 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
- **Package manager page:** <https://formulae.brew.sh/formula/leela-zero>
- **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>
- **Upstream docs:** <https://github.com/leela-zero/leela-zero#readme>
- **License:** GPL-3.0-or-later
- **Source archive:** <https://github.com/leela-zero/leela-zero.git>
- **Last updated:** 2026-07-05T18:49:59+09:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- leelaz (cli)
- leelaz (alias)

## Dependencies

- boost

## Build dependencies

- cmake

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.17
- Package-manager updated: 2026-07-05
- Local data: ok
- Upstream repository: https://github.com/leela-zero/leela-zero
- info: No cached GitHub release or tag data was available.
## 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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** leela-zero
- **Version Scheme:** 0
- **Revision:** 12
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 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


## Related links

- [MCP tool packages](https://www.automicvault.com/pkg/mcp-tools/) - Mentions MCP or Model Context Protocol.
- [Secret-risk packages](https://www.automicvault.com/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [cmake](https://www.automicvault.com/pkg/brew/cmake/) - Build dependency declared by Homebrew.
- [katago](https://www.automicvault.com/pkg/brew/katago/) - Shares av.db curated category or tags: ai, cli, game-engine, games, go.
- [arx-libertatis](https://www.automicvault.com/pkg/brew/arx-libertatis/) - Shares av.db curated category or tags: cli, game-engine, games.
- [cgoban](https://www.automicvault.com/pkg/brew/cgoban/) - Shares av.db curated category or tags: cli, games, go.
- [chocolate-doom](https://www.automicvault.com/pkg/brew/chocolate-doom/) - Shares av.db curated category or tags: cli, game-engine, games.
- [corsixth](https://www.automicvault.com/pkg/brew/corsixth/) - Shares av.db curated category or tags: cli, game-engine, games.
- [crispy-doom](https://www.automicvault.com/pkg/brew/crispy-doom/) - Shares av.db curated category or tags: cli, game-engine, games.
- [exult](https://www.automicvault.com/pkg/brew/exult/) - Shares av.db curated category or tags: cli, game-engine, games.
- [fheroes2](https://www.automicvault.com/pkg/brew/fheroes2/) - Shares av.db curated category or tags: cli, game-engine, games.
- [pachi](https://www.automicvault.com/pkg/brew/pachi/) - Both packages touch the same language runtime or ecosystem. Shared terms: boost, cli, game, games, go.
- [lc0](https://www.automicvault.com/pkg/brew/lc0/) - Local metadata places this package in an adjacent workflow. Shared terms: cli, engine, games, network, neural.

## Combined YAML source

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


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
