Cobalt -rich Heusler compounds represent a very interesting family among Heusler alloys due to their performance in the field of spintronics and magnetic devices. The quaternary Heusler created by swapping of an anti-atom site by an alkali element improves the performance of physical properties for new applications. In this study, the electronic structures and magnetic properties before and after swapping cobalt (Co) by lithium (Li) in the Co2NbAl compound have been investigated using first-principle computational calculations. Our findings revealed that the swapping Co antisite by Li keeps the half-metallic character in the CoLiNbAl. Analysis of band structures show that ternary Heusler compound is ferromagnetic half-metallic with half metallic gap (band gap in minority channel ) equal 0.134 eV but the swapping Co with Li leads the material to change its behavior and becomes a semiconductor with a gap equal 1.043 eV using HSE06 approach. The results of optical and thermoelectric properties such as absorption coefficient, reflectivity or thermopower and figure of merit are very interesting in the optoelectronic field and encourages the researchers to realize photovoltaic cell and thermoelectric generator with a higher efficiency. These interesting features suggest that Co2NbAl and LiNbAlCo Heusler compounds could be good candidates for applications of antiferromagnetic spintronics and optoelectronics in commercial semiconductor industry.