Bi polar husband what do I do

Husband has bi polar how do I cope so we don’t de-rail in life because of his episodes?