The novel is set in a world where magical creatures called beasts roam the land, and the Library of Amorlin, an ancient neutral institution on a river island, oversees their protection and manages all things related to magic. In the nation of Kalthos, the dominant Haidrin Church teaches that beasts are manifestations of human sin and must be destroyed, a doctrine enforced by an elite military force called the Malikinar.
Kasira Vitalis is a convicted con artist serving in the Malikinar's work-release program after three years of solitary confinement in Belvar, a lightless prison. During a hunt for Alkatir, large feline-hawk creatures, she kills a mother beast but lets its wounded cub escape, drawing the contempt of her unit and the attention of Commander Dessen, a corrupt officer who later attempts to sexually coerce her. Kasira stabs him in the leg, and he retaliates by whipping her until a stranger's voice intervenes.
She awakens chained in Dessen's tent before Ambassador Vera Helsen, the King's cousin and Kalthos's Ambassador to the Library, and Paratal Helvarin, head of the Haidrin Church. Vera wants Kasira to assume the identity of Lady Eirlana Corynth, a noblewoman from a debt-ridden family, and infiltrate the Library as the next Assistant Librarian. Kasira must earn the trust of Librarian Allaster St. Archer and gather evidence for the Conclave, a formal assembly of national leaders empowered to remove a sitting Librarian. Vera's goal is to seize the Library's resources and exterminate beasts worldwide. If Kasira refuses, she returns to Belvar permanently. Kasira accepts, frames Dessen for camp thefts she orchestrated, and slips away during a religious ceremony.
After a harrowing journey through the Isherwood swamp, Kasira arrives at the Library disguised as Eirlana. The Library is far grander than she expected: a sprawling structure beneath a cliff overhang, filled with books, artifacts, and beasts living peacefully alongside mages. A talking snow leopard named Iylis greets her. Allaster is openly hostile, convinced that anyone Vera selected must be a spy. He teleports Kasira through rooms so rapidly she is left nauseous, depositing her in a cramped stone chamber.
Allaster confides to Airamay Selvera, known as May, his First Mage and closest ally, that he cannot trust a Kalish stranger. He is secretly terrified: The Library's magic is slowly transforming him into a beast, a curse he suppresses with henolite, a rare metal he wears as jewelry, but his supply is nearly exhausted. May urges him to give Kasira a chance.
Kasira builds her cover methodically. She befriends May, who becomes her primary source of information. She studies voraciously, taking on beast-feeding duties and discovering that many behaviors she once interpreted as aggression were defensive. She tells Allaster a version of her real childhood trauma: Priests at her orphanage forced her to drown an injured Talowell, a small beast, and burned her palm with a heated blade. She repurposes this genuine history as Eirlana's backstory to explain her scars.
To prove her value, Kasira secretly triggers an allergic reaction in Benlo, a one-winged beast she has been feeding, then identifies the cause and administers the remedy, singing a lullaby from the distant nation of Avaria to soothe the animal. Allaster witnesses the rescue and is struck by her knowledge. She presents herself not as Vera's pawn but as a woman discarded by her own family, with no allegiance to anyone.
Allaster takes Kasira on a beast mission to a Kalish town, where they discover a trap: The townspeople have lured in a Zeras, a massive venomous beast, using the same Alkatir cub Kasira spared months ago as bait. Kasira shields the cub and is scratched by the Zeras's venom. Allaster hesitates, briefly considering letting her die, but carries her and the cub back to the Library. Her willingness to risk her life for a beast convinces him. He leads her to a hidden cavern containing a marble basin of silver water and tells her to drink. The water tests her through visions of her past before the Library accepts her and floods her with magic.
Kasira becomes Assistant Librarian and bonds with the Alkatir cub, learning through her new magic that his name is Gievra. She and Allaster settle into a rhythm of training and sparring that draws them closer. She frames Elyae, a young mage from the nation of Ayador who has been openly hostile, as Vera's spy by planting evidence, and Allaster banishes Elyae from the Library.
Vera arrives and reveals Kasira's true identity to Allaster, bringing Dessen to clamp a henolite cuff on her wrist. Rather than turning Kasira over, Allaster defends her, declaring the Library chose her. Kasira tells him a partial truth about her imprisonment, but the situation worsens when Vera installs Thane Ryarch, Kasira's former crime boss, as a new Kalish mage. Thane begins undermining Kasira and seeding discontent among the Library's mages.
Kasira had planned to lure Allaster into defending his hometown of Spenshire to demonstrate favoritism, but Thane convinces Vera to hire the Ryveren, a brutal mercenary band, turning the scenario into a massacre. Kasira and Allaster fight side by side, and Kasira encounters her former comrade Revna among the mercenaries, branded a traitor because of Kasira's desertion. Vera uses the incident to build her case for the Conclave.
Tensions escalate when Thane manipulates Kasira into admitting she genuinely cares about the Library while Vera listens from hiding. Thane stabs Kasira, nearly killing her, but Gievra, now a powerful adolescent, breaks free and kills Thane. Vera invokes the Conclave, accusing Allaster of murdering a Kalish mage. During her recovery, Kasira sends secret letters to King Carthur and Lady Nyelle Yadora, a Kalish noblewoman from the old royal bloodline, setting a counter-plan in motion.
At the Conclave, Kasira testifies against Allaster as Vera expects, confirming all accusations. The council votes to remove him, and Allaster is bound in chains. Then Kasira springs her trap: King Carthur arrives through a secret passage and arrests Vera for conspiring against the crown. When the King tries to maintain the Conclave for his own benefit, Nyelle produces leverage. May has discovered that Calisks, small burrowing beasts living in Kalish mine walls, create the chemical reaction that produces vylor steel, a metal central to Kalish military and economic power. The Yadoras now control this knowledge, forcing the King to withdraw his charges. Kasira halts the Conclave by producing a forged letter bearing the Avari royal seal, arguing that Library law requires all nations to vote.
In the aftermath, Kasira confesses to Allaster that she worked for Vera from the beginning and manipulated the Conclave to protect the Library. Allaster reveals the truth he has hidden. He removes his henolite, showing white hair, silver fur, slit-pupiled eyes, and two black wings extending from his back. Every Librarian is consumed by this transformation, he tells her. His predecessor Mora was not killed by a beast but was overwhelmed by the curse, and Allaster was forced to kill her. Every Assistant must eventually do the same. He asks Kasira to promise that when he begins to lose himself, she will end it.
Kasira kisses him and refuses to accept this fate, vowing to find another way. Allaster agrees to let her try but extracts her promise. The novel closes with Allaster reflecting that their kiss was a mistake, knowing this story can only end one way: with Kasira taking his life.