Add onion and garlic to the bowl of a food processor and process until coarsely chopped. Add the rest of the ingredients and process until the mixture forms a smooth paste.
Transfer the mixture to a medium saucepan and bring to a simmer over medium-high heat. Simmer for about 5-10 minutes until the mixture thickens. Remove from heat and allow to cool. Place in a glass jar and refrigerate.