Inspired by https://www.printables.com/model/630492-gridfinity-aa-batteries-holder but rebuilt from the ground up to be one standalone part and use less filament.
Included a thick (0.8mm walls) version, I recommend printing this one. The thin (0.5mm walls) version will use less filament but depending on your printer and print settings the walls may be too thin to properly connect. However the batteries don't need a ton of structure so this may be fine, YMMV.
The author marked this model as their own original creation.