It can be frustrating when your cat is constantly opening your cabinets and getting into things they're not supposed to. There are a few things you can do to try and stop this behavior.
First, make sure that there is nothing in the cabinets that your cat finds appealing. If there are food items or other objects that they like, they will be more likely to keep trying to get into the cabinets. Put these items away or keep them out of reach so that your cat can't access them.
Second, try using a deterrent spray inside the cabinets. This will create an unpleasant smell for your cat and deter them from going near the cabinets. You can find these sprays at pet stores or online.
Finally, provide your cat with plenty of toys and scratching posts so that they have other ways to occupy their time. If they are bored, they may be more likely to turn to mischief like opening up your cabinets. Make sure their environment is enriching and stimulating so that they don't get bored and start causing trouble.