In some aspects, the disclosure relates to compositions and methods for modulating ( e.g., increasing and/or decreasing) bone mass in a subject. In some aspects, the disclosure provides isolated nucleic acids, and vectors such as rAAV vectors, configured to express transgenes that promote (e.g., increase) or inhibit (e.g., decrease) activity, differentiation, or function of certain types of bone cells, for example osteoblasts, osteoclasts, osteocytes, etc. In some embodiments, the isolated nucleic acids and vectors described by the disclosure are useful for treating disorders and conditions associated with increased bone mass (e.g., osteopetrosis) or decreased bone mass (e.g., osteoporosis).