Present disclose provides compounds of formula I. The compound can be used for treating and IDO, for example, cancer or infectious disease (such as virus or bacterial infectious disease). In addition, present disclose provides pharmaceutical composition, kit, method and purposes including or using compound described herein.