Lu Qi (盧杞), courtesy name Ziliang (子良), was an official of the Chinese dynasty Tang Dynasty, serving as a chancellor during the reign of Emperor Dezong. He was characterized as treacherous and selfish in traditional histories, and traditional historians blamed him for provoking the rebellions of Zhu Ci and Li Huaiguang, which greatly weakened the Tang state.
It is not known when Lu Qi was born. His grandfather Lu Huaishen was a chancellor early in the reign of Emperor Xuanzong. His father Lu Yi (盧奕) served as an imperial official as well, and was one of the officials in charge of the eastern capital Luoyang when the general An Lushan rebelled at Fanyang in 755, toward the end of Emperor Xuanzong's reign. An quickly advanced to Luoyang, and Lu Yi, while sending his wife and sons away, remained in Luoyang himself, seeing it as his responsibility to do so. When Luoyang fell, Lu Yi remained faithful to the Tang cause and continued to curse the rebels even as he was under threat of execution, and he was executed.
Because how his father had died in imperial service, Lu Qi became an official early in his life. He was said to be ugly in appearance, such that he was compared to a ghost; however, he was also said to be frugal, and he gained a good reputation and was compared to his grandfather Lu Huaishen. While the major general Pugu Huai'en served as the military governor (Jiedushi) of Shuofang Circuit (朔方, headquartered in modern Yinchuan, Ningxia), he invited Lu to serve as a secretary for him. He was later removed on account of illness. Later, he successively served as the deputy minister of vassal affairs (鴻臚丞, Honglu Cheng), imperial censor (殿中侍御史, Dianzhong Shiyushi), and Shangbu Yuanwailang (膳部員外郎), a low-level official at the ministry of rites (禮部, Libu). He later was set to serve as the prefect of Zhong Prefecture (忠州, in modern Chongqing), but when he went to visit his superior Wei Boyu (衛伯玉), the military governor of Jingnan Circuit (荊南, headquartered in modern Jingzhou, Hubei), he displeased Wei, and subsequently, he resigned under excuse of illness and returned to the capital Chang'an. He later successively served as Xingbu Yuanwailang (刑部員外郎), a low-level official at the ministry of justice (刑部, Xingbu); Jinbu Langzhong (金部郎中), a mid-level official at the ministry of census (戶部, Hubu); and Libu Langzhong (吏部郎中, Libu Langzhong), a mid-level official at the ministry of civil service affairs (吏部, Libu). He later served as the prefect of Guo Prefecture (虢州, in modern Sanmenxia, Henan). Early in the Jianzhong era (780-783) of Emperor Xuanzong's great-grandson Emperor Dezong, he was recalled to Chang'an to serve as deputy chief imperial censor (御史中丞, Yushi Zhongcheng). On one occasion, when he was meeting the senior general Guo Ziyi at Guo's mansion, Guo personally greeted him and sent his concubines and servants away — contrary to Guo's typical custom of having the concubines and servants greet the guests. When later asked why, Guo responded, "Lu Qi is ugly and treacherous. If I let the women see him, they would surely laugh at him. If he later become powerful, my household would be wiped out."