Capsule Cactus

Hello, i have recently bought a cactus keychain and i am unsure how to look after it. I’ve attached a picture of it. Could you please inform me what the type of cactus it is so i can look into it further. Also, if possible would you be able to provide some advice on the correct conditions and ways to keep it happy.
thank you
Lauren C
Lauren,
Putting a living plant into a tiny plastic capusle is a cute idea. If you want instructions into keeping it alive in there I recommend following the instructions that should have come with it. But the real way to take care of the plant is to remove it from the capsule and plant it in a small terra cotta pot with fast-draining cactus soil (not sand), give it lots of direct sun and a little bit of water. When it is bigger and healthy send a photo and I can try to ID the species for you then.
Stay safe,
Peter