Finely chop tofu and onion.
Beat the eggs and season with salt and pepper.
Heat olive oil in a pan and sauté the onion.
Add the tofu and stir-fry together.
Transfer the sautéed ingredients to an oven-safe dish.
Pour the beaten eggs over them and top with cheese.
Bake in a preheated oven at 180°C for 15 minutes.