We propose a simply tunable optical codec using a cyclic wavelength shifter, which can be applied for two-dimensional optical CDMA (O-CDMA) schemes. The cyclic wavelength shifter is based on dual-band holographic grating. By using this device, it is easy to implement various optical CDMA codecs utilizing constant-weight cyclic-permutable codes. In this paper, the basic principle and the feasibility of the proposed device is demonstrated experimentally. (