This manuscript derives adjoint equations for the numerical solution of the spatially inhomogeneous Boltzmann equation using Direct Simulation Monte Carlo (DSMC). The formulation accounts for spatial transport and a range of boundary conditions, including periodic boundaries, specular reflection, thermal reflection, and prescribed inflow. Numerical experiments are presented to validate the resulting adjoint system. These adjoint formulations are intended for use in gradient-based optimization, sensitivity analysis, and design problems involving rarefied gas dynamics.