We demonstrated the continuous-wave (cw) and pulsed optical vortex with topological charges driven by heat generated during the lasing process without introducing the astigmatism effect and reducing lasing efficiency. During the lasing process, the topological charges were changeable by the thermal-induced lens and selected by the mode-matching between the pump and oscillating beams. With a graphene sample as the saturable absorber, the pulsed optical vortex was achieved at the wavelength of 1.36 {mu}m, which identified that graphene could be used as a pulse modulator for the generation of pulsed optical vortex. It could be believed that the thermally driven cw and pulsed optical vortex should have various promising applications based on the compact structure, changeable topological charges and specific wavelength