This guide will tell you how to open these eyeball chests in Hogwarts Legacy.
There are two ways to open them, you can buy an invisibility potion, and you can get it for free without needing the ingredient if you have a spell. After that, go stealth, approach the eyeball chest, and open it up to get the loot.
You have to follow the main story to get this spell. Make your way to a restricted area in the library and once you start that story, you will get the spell from your friend. After that, you can open up all the eyeball chests using the spell.