Shadow library
A shadow library is an unauthorised online collection that offers free downloads of books, papers and other works that are normally paywalled or hard to access, most of them under copyright.
Shadow libraries are online repositories that make normally paywalled or access-controlled material freely downloadable, mostly ebooks and academic papers. The best known include Library Genesis (LibGen), started around 2007 or 2008 by a group of Russian scientists; Sci-Hub, created by Alexandra Elbakyan to distribute research papers; Z-Library; and Anna's Archive.
Courts have mostly sided with the publishers. In 2015 the academic publisher Elsevier sued LibGen and Sci-Hub in the United States, and in 2017 it won a $15 million default judgment it has not been able to collect. In 2017 the American Chemical Society won a $4.8 million damages order against Sci-Hub. In November 2022 the FBI seized Z-Library's domains and charged two of its operators. Courts in several countries have ordered internet providers to block these sites, with limited effect.
Shadow libraries became an AI story because books are valuable training data. Books3, a collection of 196,640 books drawn from the pirate site Bibliotik, was included in The Pile, a widely used open training dataset compiled by EleutherAI, and was used to train models including Meta's. In August 2023 the Danish anti-piracy group Rights Alliance had it taken down from the site hosting it. In January 2025 newly unredacted documents in a class action against Meta were reported to show the company had used shadow library data to train its AI models.
The largest case so far is Bartz v. Anthropic. In June 2025 Judge William Alsup ruled that training Claude on lawfully purchased books was fair use, but that Anthropic's downloading of millions of titles from LibGen and the Pirate Library Mirror was not, exposing it to large statutory damages. In September 2025 Anthropic agreed to pay $1.5 billion, about $3,000 per book for roughly half a million works, and Judge Araceli Martínez-Olguín gave the settlement final approval on July 20, 2026. As a settlement, it does not set legal precedent.
In practice, the lesson for AI developers has been that where training data came from can matter as much as what was done with it. A company's legal exposure may depend less on the training itself than on whether it downloaded pirated copies to get the material.
It is a website that offers free downloads of books, academic papers and other works without the rights holders' permission. Library Genesis, Sci-Hub, Z-Library and Anna's Archive are the best-known examples. Distributing copyrighted works without permission infringes copyright, and courts have repeatedly ruled against shadow libraries, including a $15 million default judgment for Elsevier against LibGen and Sci-Hub in 2017. Courts in several countries have also ordered internet providers to block access to such sites. Court cases and reporting say several did. Books3, built from the pirate site Bibliotik, was part of the widely used Pile dataset, and in Bartz v. Anthropic the judge found Anthropic had downloaded millions of books from LibGen and the Pirate Library Mirror. Anthropic agreed in September 2025 to pay $1.5 billion to settle a class action by authors over books downloaded from pirate libraries, about $3,000 per book for roughly half a million works. The court gave final approval on July 20, 2026.Common questions
What is a shadow library?
Is LibGen illegal?
Did AI companies train on pirated books?
What was the Anthropic book piracy settlement?
Search for "shadow libraries AI training", "Books3", "Bartz v. Anthropic" or "LibGen lawsuit" to follow the legal and data questions. The most reliable sources are court filings and orders, available on public docket sites, reporting from established legal and technology news outlets, and encyclopedia articles that cite them. Distinguish between allegations in complaints and findings by a judge, since many claims about training data have not been tested in court.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.