Toss together the onions, garlic and oil and transfer to a greased baking sheet
Roast the onions at 375 degrees for 20 minutes, or until well caramelized.
Puree the onions in the food processor until smooth. Add in the room temperature butter and season with salt and pepper, and pulse in the food processor again. Keep in the refrigerator for up to a week.