I installed Antigravity with Codex in Distrobox Ubuntu. The Agents happily use sudo without care that it is a container. It's great when I run random scripts from the web that I don't even know how to uninstall and never worry about gunking up the main system.
It might be fine for just avoiding clutter, but be warned that distrobox defaults to very weak separation between container and host (e.g. default mounting your real home into the container). Good organizational tool, bad sandbox. (This is not a fault, just a matter of what the tool is optimized to help you do.)