NSFW Hub
EN
Start now

GlossaryChecked Nov 2026

What Is a Lorebook?

A lorebook is a collection of short notes about a story's world that an AI chat platform adds to the prompt only when a matching keyword appears.

18+ only. All characters are AI-generated adults; no real people are depicted.

Updated

Our top pick

Candy AI

9.7/10

  • OurDream AI9.0/10
  • Nomi8.0/10

How does a lorebook work?

A lorebook is a collection of short notes about a story's world, places, people and rules that an AI chat platform inserts into the prompt only when a matching keyword comes up. It lets a roleplay keep hundreds of facts on hand without filling the context window. SillyTavern calls the same idea world info, and Character.AI and Secrets AI offer lorebooks too.

A lorebook works as a lookup table of entries, each with one or more trigger keywords and a short description. Before every reply the platform scans recent messages for those keywords. When it finds one, for example the name of a city or a rival character, it adds that entry to the prompt so the model knows the facts it needs right then.

Entries that are not triggered stay out of the prompt, which is the main advantage over writing everything into the character card. A card is sent with every message and eats into the context memory, while a lorebook spends space only on what the scene uses. Good entries are short, factual and written in the third person, with keywords that will actually appear in the chat.

Lorebooks show up across platforms. Character.AI lists a lorebook among its memory tools, with an advanced version on c.ai+. Secrets AI includes lorebooks on paid plans from $19.99 a month for Premium. SpicyChat supports lorebooks alongside personas and a memory manager, and SillyTavern runs world info locally at no cost.

Where does a lorebook matter for NSFW AI users?

A lorebook matters for long-form roleplay, where a story builds up places, side characters and relationship history that the model would otherwise forget. Without one, details drift: a character's eye colour changes, a house moves to another city or a past event is retold differently. A lorebook keeps those facts fixed and brings them back exactly when they are mentioned.

A lorebook also helps on plans with small windows. SpicyChat's starter plan holds 4K of context, so every token counts, and moving world details into triggered entries leaves more room for recent dialogue. Lorebook entries follow the platform's content rules like everything else, so keep every character in them an adult and leave real people out. Our AI roleplay ranking compares the platforms on memory tools, content rules and price.

A lorebook links to these glossary entries:

  • Persona, the profile that describes you in the same story.
  • Token limit, the cap that makes triggered entries worthwhile.
  • SillyTavern, whose world info works the same way.