Shanggu Commandery was a commandery in imperial China from the Warring States period to Tang dynasty. It was located in present-day Hebei and Beijing.