The name and the original
Aioli comes from the Provençal words for garlic and oil, and Catalan cooks call their version allioli. In its oldest form it's made in a mortar: garlic crushed to a paste with salt, then olive oil worked in drop by drop until it thickens. It's labor-intensive and can break easily, which is why many traditional cooks add an egg yolk or a bit of bread or boiled potato to stabilize it.
In Provence, le grand aïoli is a whole meal built around the sauce, served with poached salt cod, boiled vegetables and eggs. In Catalonia, allioli is a standard partner for grilled meats, rice dishes and potatoes.
The pounded version is sharp and intense, with a dense, almost paste-like texture. Catalan cooks take pride in making it without egg, and pulling it off by hand is treated as a small test of skill.
Modern aioli
On most American menus, aioli means a flavored mayonnaise. Egg yolk makes the emulsion easy and stable, and garlic, lemon juice and salt add flavor. Restaurants often use the word for any flavored mayo, which is how chipotle aioli or sriracha aioli came about.
That's not wrong so much as a shift in usage. The practical takeaway is that most aioli today contains egg, while traditional allioli and Lebanese toum don't.
Making it at home
Whisk an egg yolk with crushed garlic, salt and a little lemon juice, then add oil very slowly while whisking or blending, until thick. Olive oil gives a fruitier, more traditional flavor, but extra virgin can taste bitter when blended hard, so many cooks use a mild olive oil or mix in avocado oil. Store-bought mayonnaise is usually made with soybean or canola oil, so check labels if that matters to you.
Homemade aioli with raw egg should be refrigerated and eaten within a few days. Pasteurized eggs are a good option if you're cooking for anyone who should avoid raw egg.
For variations, stir roasted garlic into the finished sauce for a sweeter, mellower flavor, or add lemon zest, smoked paprika or chopped herbs. Grating the garlic on a microplane gives a smoother sauce than chopping. If it breaks, whisk a fresh yolk in a clean bowl and slowly add the broken mixture back in.
What to eat it with
Aioli is great with fries, roasted potatoes, grilled vegetables, seafood, sandwiches and wraps. It's richer and milder than toum, so it suits dishes that already have a lot going on.
A thin smear is enough on a sandwich.
At Pita Bowl, garlic aioli is part of the Cali Shawarma Wrap, where it ties together steak shawarma, pepper jack, fries and guacamole in a nod to San Diego's California burrito. Other dishes use the menu's garlic sauce. Pita Bowl says its sauces are made without seed oils; ask if you want to check for egg.