I'm so very sorry things have gone to hell so fast... The fact that you can see the situation your in and even tho a homeless shelter is probably the last thing you want, you know that you need it until your back on your feet... That takes courage! So cut yourself a break.
My Daughter is Bipolar also and my T has reminded many times that if I were to "check out" that it would increase the chance of my daughter making the same choice by 50% .. So that is what keeps me motivated.
Are you hooked up with your local mental health services? You need treatment of course but you can also get help from a case worker they are the go to people in finding resources that will help you ...
Just an option to toss out there many elderly or physically/ mentally challenged people need help 24/7 and are looking for live in help, which would take care of housing and food to , plus pay of some sort..
I hope something turns around very quick for you