I have kept this alive for months, but don't know if it is indoors or outdoors
The picture is a bit dark, but I think it is Bromeliad. See link for care instructions. The plant is suitable for indoor, and depending on your climate it might be an outdoor plant as well.