In a large skillet, melt the butter over medium-low heat. Add the shallots, salt, and a few cranks of black pepper, and cook, stirring occasionally, until the shallots are soft, deeply golden brown, and jammy, about 35 minutes. To prevent the shallots from burning, deglaze the pan with ¼ cup water whenever they start to stick to the bottom. Scrape up the browned bits and stir them into the shallots, repeating as needed. Once caramelized, turn off the heat and allow the shallots to cool for 5 minutes.
Meanwhile, in a mixing bowl, combine the mayonnaise, cream cheese, and sour cream. Whisk until smooth and no lumps remain. Stir in the cayennepepper, ¼ teaspoon black pepper, and the caramelized shallots. Taste and season with additional salt, as needed.
Cover and chill for at least 4 hours.
Garnish with thinly sliced chives and serve with potato chips for dipping.