Cut tofu, cabbage, and onion into bite-sized pieces.
Crack the eggs into a bowl and whisk them.
Heat olive oil in a pan, then sauté the onion and cabbage.
Add tofu and stir, lightly mashing tofu as you cook together.
Season with salt and pepper.
Transfer the sautéed mixture to an oven-safe dish and pour in the beaten eggs.
Top with cheese and bake in a 180°C oven for 15 minutes.
It's ready when the surface is golden brown.