a device for locking a power tool to a battery pack has at least one movable locking bar mountable on the power tool and upon locking engaging a detent recess of the battery pack , and at least one unlocking device for manually disengaging the locking bar from the detent recess , wherein the unlocking device is mountable on the battery pack .