Level 1: Eldritch Invocations
You have unearthed Eldritch Invocations, pieces of forbidden knowledge that imbue you with an abiding magical ability or other lessons. You gain one invocation of your choice, such as Pact of the Tome. Invocations are described in the "Eldritch Invocation Options" section later in this class's description.
Prerequisites
If an invocation has a prerequisite, you must meet it to learn that invocation. For example, if an invocation requires you to be a level 5+ Warlock, you can select the invocation once you reach Warlock level 5.
Replacing and Gaining Invocations
Whenever you gain a Warlock level, you can replace one of your invocations with another one for which you qualify. You can't replace an invocation if it's a prerequisite for another invocation that you have.
When you gain certain Warlock levels, you gain more invocations of your choice, as shown in the Invocations column of the Warlock Features table.
You can't pick the same invocation more than once unless its description says otherwise.
Level 1: Pact Magic
Through occult ceremony, you have formed a pact with a mysterious entity to gain magical powers. The entity is a voice in the shadows — its identity unclear — but its boon to you is concrete: the ability to cast spells. The information below details how you use those rules with Warlock spells, which appear in the Warlock spell list later in the class's description.
Cantrips
You know three Warlock cantrips of your choice. Whenever you gain a Warlock level, you can replace one of your cantrips from this feature with another Warlock cantrip of your choice.
When you reach Warlock levels 4 and 10, you learn another Warlock cantrip of your choice, as shown in the Cantrips column of the Warlock Features table.
Spell Slots
The Warlock Features table shows how many spell slots you have to cast your Warlock spells of levels 1–5. The table also shows the level of those slots, all of which are the same level. You regain all expended Pact Magic spell slots when you finish a Short or Long Rest.
For example, when you're a level 5 Warlock, you have two level 3 spell slots. To cast the level 1 spell Witch Bolt, you must spend one of those slots, and you cast it as a level 3 spell.
Prepared Spells of Level 1+
You prepare the list of level 1+ spells that are available for you to cast with this feature. To start, choose two level 1 Warlock spells. Charm Person and Hex are recommended.
The number of spells on your list increases as you gain Warlock levels, as shown in the Prepared Spells column of the Warlock Features table. Whenever that number increases, choose additional Warlock spells until the number of spells on your list matches the number in the table. The chosen spells must be of a level no higher than what's shown in the table's Slot Level column for your level. When you reach level 6, for example, you learn a new Warlock spell, which can be of levels 1–3.
If another Warlock feature gives you spells that you always have prepared, those spells don't count against the number of spells you can prepare with this feature, but those spells otherwise count as Warlock spells for you.
Changing Your Prepared Spells
Whenever you gain a Warlock level, you can replace one spell on your list with another Warlock spell of an eligible level.
Spellcasting Ability
Charisma is the spellcasting ability for your Warlock spells.
Spellcasting Focus
You can use an Arcane Focus as a Spellcasting Focus for your Warlock spells.
Level 2: Magical Cunning
You can perform an esoteric rite for 1 minute. At the end of it, you regain expended Pact Magic spell slots but no more than a number equal to half your maximum (round up). Once you use this feature, you can't do so again until you finish a Long Rest.
Level 2: Pact Boon
Your otherworldly patron bestows a gift upon you for your loyal service. You gain one of the following features of your choice. Whenever you gain a Warlock level, you can replace your Pact Boon with another Pact Boon.
As a Bonus Action, you can conjure a pact weapon in your hand — a Simple or Martial Melee weapon of your choice with which you bond — or create a bond with a magic weapon you touch; you can't bond with a magic weapon if someone else is attuned to it or another Warlock is bonded with it. Until the bond ends, you have proficiency with the weapon, and you can use it as a Spellcasting Focus.
Whenever you attack with the bonded weapon, you can use your Charisma modifier for the attack and damage rolls instead of using Strength or Dexterity; and you can cause the weapon to deal Necrotic, Psychic, or Radiant damage or its normal damage type.
Your bond with the weapon ends if you use this feature's Bonus Action again, if the weapon is more than 5 feet away from you for 1 minute or more, or if you die. A conjured weapon disappears when the bond ends.
You learn the Find Familiar spell and can cast it as a Magic action without expending a spell slot.
When you cast the spell, you choose one of the normal forms for your familiar or one of the following special forms: Imp, Pseudodragon, Quasit, Skeleton, Slaad Tadpole, Sphinx of Wonder, Sprite, or Venomous Snake (see appendix B for the familiar's stat block).
Additionally, when you take the Attack action, you can forgo one of your own attacks to allow your familiar to make one attack of its own with its Reaction.
Stitching together strands of shadow, you conjure forth a book in your hand at the end of a Short or Long Rest. This Book of Shadows (you determine its appearance) contains eldritch magic that only you can access, granting you the benefits below. The book disappears if you conjure another book with this feature or if you die.
Cantrips and Rituals
When the book appears, choose three cantrips, and choose two level 1 spells that have the Ritual tag. The spells can be from any class's spell list, and they must be spells you don't already have prepared. While the book is on your person, you have the chosen spells prepared, and they function as Warlock spells for you.
Spellcasting Focus
You can use the book as a Spellcasting Focus.
Level 3: Warlock Subclass
You gain a Warlock subclass of your choice. A subclass is a specialization that grants you features at certain Warlock levels. For the rest of your career, you gain each of your subclass's features that are of your Warlock level or lower.
Level 4: Ability Score Improvement
You gain the Ability Score Improvement feat or another feat of your choice for which you qualify. You gain this feature again at Warlock levels 8, 12, and 16.
Level 6: Subclass Feature
You gain a feature from your Warlock subclass.
Level 8: Ability Score Improvement
You gain the Ability Score Improvement Feat or another feat of your choice for which you qualify.
Level 9: Contact Patron
In the past, you usually contacted your patron through intermediaries. Now you can communicate directly; you always have the Contact Other Plane spell prepared. With this feature, you can cast the spell without expending a spell slot to contact your patron, and you automatically succeed on the spell's saving throw.
Once you cast the spell with this feature, you can't do so in this way again until you finish a Long Rest.
Level 10: Subclass Feature
You gain a feature from your Warlock subclass.
Level 11: Mystic Arcanum
Your patron grants you a magical secret called an arcanum. Choose one level 6 Warlock spell as this arcanum.
You can cast your arcanum spell once without expending a spell slot, and you must finish a Long Rest before you can cast it in this way again.
As shown in the Warlock Features table, you gain another Warlock spell of your choice that can be cast in this way when you reach Warlock levels 13 (level 7 spell), 15 (level 8 spell), and 17 (level 9 spell). You regain all uses of your Mystic Arcanum when you finish a Long Rest.
Whenever you gain a Warlock level, you can replace one of your arcanum spells with another Warlock spell of the same level.
Level 12: Ability Score Improvement
You gain the Ability Score Improvement Feat or another feat of your choice for which you qualify.
Level 13: Mystic Arcanum
You gain a level 7 Warlock Spell of your choice.
Level 14: Subclass Feature
You gain a feature from your Warlock subclass.
Level 15: Mystic Arcanum
You gain a level 8 Warlock Spell of your choice.
Level 16: Ability Score Improvement
You gain the Ability Score Improvement Feat or another feat of your choice for which you qualify.
Level 17: Mystic Arcanum
You gain a level 9 Warlock Spell of your choice.
Level 19: Ability Score Improvement
You gain the Ability Score Improvement Feat or another feat of your choice for which you qualify.
Level 20: Eldritch Master
When you use your Magical Cunning feature, you regain all your expended Pact Magic spell slots.