Actually the power supplied to the main lug opposite the alternator lug comes from the battery. The alternator does charge through that lug and back to the battery though.

I ran that small wire from a "key on" source in my dash to a small relay in the back to power "on" the solenoid. This way my alternator wire to the front is only hot when the key is on.