The electronic states of OsSi are calculated by multi-state N-electron valence state second order perturbation theory (MS-NEVPT2) with all-electron basis sets. The relativistic effects are considered comprehensively that allows us to identify the XΣ ground state. The theoretical equilibrium bond length 2.103 Å is close to the experimental measurement of 2.1207 Å while the vibrational frequency 466 cm is smaller than the experimental value of 516 cm. Two excited states, namely Π(I) and Π(II), are located at 15568 and 18316 cm above the ground state, respectively. The Π(I) ← XΣ transition has been assigned to the experimental spectra at 15729 cm and Π(II) ← XΣ may produce the bands near 18469 cm. Although the latter transition energy is in accord with the experimental spectra, theoretical calculations give too small oscillator strength. Moreover, plenty of excited states with considerable oscillator strengths are located that could serve as reference data in future experiments. The four low-lying states of OsC are also calculated for comparison.