Abstract: We study the non-minimal pure spinor string in a curved background. We find that the minimal BRST invariance implies the existence of a non-trivial stress-energy tensor for the minimal and non-minimal variables in the heterotic curved background. We find constraint equations for the b ghost. We construct the b ghost as a solution of these constraints.