I'm glad that you're feeling better after sharing what's going on for you.
In terms of your plan, how do you think that your boyfriend would respond if you were to tell him to go away? Is there a possibility of him becoming violent, or sticking around and not letting you leave your apartment?
I ask because we want to make sure to think through the different possibilities just in case, so that you'll have options if things don't go quite as smoothly as "If A, then B". Does that make sense?
In case you haven't read it yet, you might find The Scarleteen Safety Plan
helpful. When you get to the pink links, you'd choose the first one, since you're not living with him, and then there are suggestions for things that might be helpful for you to think about and prepare for yourself. Of course, we can be here to help think things through or provide support while you're doing that!
Sending you lots of good thoughts. <3