It requires a 20 gallon or larger aquarium with plenty of loose coral rubble as part of the aquascape, and a tight-fitting lid to prevent it from jumping out of the tank. It will rarely become aggressive towards other fish. In the marine hobby they are often partnered with pistol shrimp.