Heat half of the butter in a frying pan and add the onions. Cook on a medium heat for 10-15 minutes, stirring occasionally, until the onions are golden.
Add the Gruyere cheese and rosemary to the onions. Stir well.
Preheat the oven to 185C/350F degrees and line a baking tray with parchment paper.
Place the onion and cheese mixture in a bowl.
Add the eggs, mozzarella and butter and blend well. I found a fork to be effective.
Add the coconut flour, psyllium husk powder and garlic powder.
Mix well until you have a dough-like mixture.
Take a large walnut sized piece of the mixture and roll into a ball. Repeat until you have twelve balls.
Place the balls on a baking tray alongside each other in a rectangle shape.
Bake for 20 minutes until the balls are golden.
Eat and enjoy!