This repository is the official implementation of DC-MPC, presented in "Discrete Codebook World Models for Continuous Control" at ICLR 2025. DC-MPC is a model-based reinforcement learning algorithm demonstrating the strengths of learning a discrete latent space with discrete codebook encodings.