# Install gallery-dl on Windows, macOS and Linux

Download image galleries and their metadata from social and hosting sites.

gallery-dl downloads image galleries and collections from several hundred sites, including social networks, image boards and art platforms. It can save each post's metadata next to the file, which is what makes it useful for preserving evidence.

## How to install gallery-dl

```
ot install gallery-dl
```

ot installs gallery-dl 1.32.21 with uv into a Python environment of its own under `~/.ot`, so it cannot conflict with your system Python or with any other tool.

If you do not have ot yet:

macOS and Linux:

```
curl -fsSL https://otinstaller.com/install.sh | sh
```

Windows (PowerShell):

```
irm https://otinstaller.com/install.ps1 | iex
```

Current version: 0.3.0. Both scripts verify the download against its [SHA-256 checksum](https://otinstaller.com/releases/v0.3.0/checksums.txt) before installing.

## How to use gallery-dl

Arguments after the tool's name go straight to gallery-dl.

Download a gallery with a JSON file per image.

```
ot run gallery-dl --write-metadata URL
```

Print the image URLs without downloading.

```
ot run gallery-dl -g URL
```

Print the metadata as JSON.

```
ot run gallery-dl -j URL
```

`ot run gallery-dl --help` lists every option.

An AI agent can run gallery-dl too: `ot mcp` serves it over the Model Context Protocol. See [OSINT with AI agents](https://otinstaller.com/mcp/).

## gallery-dl licence, platforms and versions

- Project: https://github.com/mikf/gallery-dl
- Licence: GPL-2.0
- Runs on: Windows, macOS and Linux
- Takes: url
- Categories: media, image, archive
- Sends traffic to the target: no
- Python package: gallery-dl 1.32.21, in its own isolated environment

## Questions about gallery-dl

### How do I install gallery-dl on Windows?

Open PowerShell and install ot with `irm https://otinstaller.com/install.ps1 | iex`. Then run `ot install gallery-dl`. ot fetches a pinned version of gallery-dl and keeps it under `~/.ot`, apart from the rest of your system.

### Is gallery-dl free?

Yes. gallery-dl is open source, released under the GPL-2.0 licence. ot, which installs it, is free under the Apache 2.0 licence.

### Do I need to set up Python to use gallery-dl?

No. ot installs gallery-dl with uv into a virtual environment of its own, separate from your system Python. If uv is not installed, ot fetches its own copy first.

### How do I update or remove gallery-dl?

`ot update gallery-dl` moves it to the version pinned in ot's registry, and `ot update gallery-dl --latest` to the newest upstream release. `ot remove gallery-dl` uninstalls it.

## Tools related to gallery-dl

- [yt-dlp](https://otinstaller.com/tools/yt-dlp/): Download video, audio and metadata from thousands of sites for archiving.
- [exiftool](https://otinstaller.com/tools/exiftool/): Read and write metadata (EXIF, GPS, author, software) in images, documents and media.
- [gau](https://otinstaller.com/tools/gau/): Fetch known URLs for a domain from the Wayback Machine, Common Crawl and others.
- [httrack](https://otinstaller.com/tools/httrack/): Copy a website to disk for offline review and evidence.
- [instaloader](https://otinstaller.com/tools/instaloader/): Download Instagram profiles, posts, stories and metadata.
- [waybackpy](https://otinstaller.com/tools/waybackpy/): Query and save pages in the Internet Archive Wayback Machine.

More: [Social media](https://otinstaller.com/osint-tools/social-media/), [Files and media](https://otinstaller.com/osint-tools/files-and-media/).
