Peel the onions and finely dice them. Sweat in the butter until translucent. Dust with the flour, briefly toast until lightly, deglaze with the stock and simmer gently for a few minutes.
Season with pepper, fold in the Gouda cheese and crème fraîche. Continue heating until the cheese has melted, then serve immediately with crusty bread.