I'm on your boat where I drink about 8 cups of coffee in the morning, then in the afternoon- I switch to green tea. Overall, my diet has a lot of room for improvement but I haven't noticed coffee contributing to mania. If anything, coffee has really helped me be focused at work.
Here's an article about bipolar and coffee:
5 Foods to Avoid If You Have Bipolar Disorder | Everyday Health