WHAT WAS THE BUG ON MY BED??

I was lying on my bed while all lights were open and saw something move just a few centimeters away from my body, thought it was a cockroach at first since its about the same size and color, but then i realized its something that looks exactly like a headcrab from half life. Just brown and medium cockroach size. Then i swept it away out of fear and it ran under my bed. What is it? Are they agressive ? Should I sleep on my bed tonight or skip sleep

by caspianslave