A floating ghost hand appears at a point you specify within the cast range. The ghost hand lasts until the spell ends, or until you dismiss the spell with an action. If the ghost hand is more than 30 feet away from you, or when you cast the spell again, the existing ghost hand disappears.

Mage Hand 5e

Level: Cantrip

Classes: Wizard, Bard, Sorcerer, Warlock

Casting Time: 1 Action

Range: 30 feet

Components: V, S

Duration: 1 minute

You can use actions to control the ghost hand and implement a behavior through the ghost hand: you can manipulate an object, or open an unlocked door or container, or put an object into or out of the container, or move The contents of the vial are poured out. You can move the ghost hand up to 30 feet each time you use it. The ghost hand cannot attack or activate magical items or carry substances weighing more than 10 pounds.