I don't think anybody makes anything like that. It's doable but impractical. What's the purpose? Best I can suggest is some foldable mechanism to hang it from which let you choose the angle to balance it at. Think circular pocket sundial but instead there's a laser pointer attachment.
If you need full motion compensation you need an actual gimbal (not that small, but accessible) or a tiny laser projector with a full 6DOF IMU (good luck finding one) and ideally SLAM surface tracking (not happening in a keychain size object lol).
If you have the budget I feel like you could call up one of the companies making either multitools and laser levels, or call a company making handheld LIDAR scanners or 3D object scanners. If you don't have the budget, get a basic gimbal.
I know surface tracking projectors exists, but they're all research prototypes and none are small.