A muzzle accessory for installation on a barrel of a firearm is provided. The muzzle accessory includes an accessory body having a through-channel sized to receive the barrel of the firearm; and a locking member structured to engage the groove of the barrel to lock the muzzle accessory to the barrel.