What is the primary energy source causing a protostar to glow?

Answer

Radiating away gravitational potential energy

A protostar glows because it is actively shrinking due to gravity, which releases thermal energy. A true star, conversely, shines due to the energy produced by nuclear fusion.

What is the primary energy source causing a protostar to glow?
physicsstarnebulaformation