Pact of the Blade
Eldritch Invocation (Warlock)

Bonus Action to conjure a Simple or Martial Melee weapon and bond with it, or to bond with a magic weapon you touch — not one another creature is attuned to or another Warlock is bonded with.

While bonded you have proficiency with it and can use it as a Spellcasting Focus, you may use Charisma for its attack and damage rolls, and you can make it deal Necrotic, Psychic or Radiant damage instead of its own.

The bond ends if you use this Bonus Action again, if the weapon is more than 5 ft from you for a minute, or if you die. A conjured weapon then disappears.