Preheat oven to 400°F and line a baking sheet with parchment paper.
Boil potatoes in salted water until fork tender. Drain well and roughly mash in a large bowl.
2 pounds russet potatoes
Meanwhile, melt butter in a skillet over medium heat. Cook onion for 3-4 minutes until softened. Add garlic during the last 30 seconds of cooking. If using pancetta or bacon, cook with the onions until lightly crisp.
2 Tbsps butter, ¼ cup onion, 2-3 garlic cloves, 1 cup pancetta
Add the onion mixture, eggs, sour cream, cheese, chives, green onions, salt, and pepper to the potatoes. Stir to combine. Add a splash of milk if needed to loosen the mixture slightly.
2 eggs, ¼ cup sour cream, ½ cup grated cheddar, 2 Tbsps chopped chives, 2 green onions, 1½ tsps salt, 1 tsp fresh ground black pepper, 1-2 Tbsps milk
Shape the potato mixture into cakes using a ring mold or by hand and place on the prepared baking sheet. Sprinkle tops with extra cheese and red pepper flakes if desired.
Red pepper flakes for garnish
Bake for 15-20 minutes until golden and crisp around the edges. Serve warm with butter and extra chives.