Imperial palace
Following the Prussian campaign, Napoleon appointed Klein as governor of the Imperial palace. In 1807, Klein was called to the Senate. In 1808, he was raised by letters of patent to a count of the empire and awarded the Grand Cordon of the Order of the Bavarian Lion. In 1812, he was placed in command of the recruitment and training of a cohort of the National Guard.