Abu al-'Abbas Ahmad ibn al-Khasib al-Jarjara'i (Arabic: أبو العباس أحمد بن الخصيب الجرجرائي; died c. 879) was a civil officer of the Abbasid Caliphate in the mid-9th century, serving as vizier (Arabic: wazir) during the caliphate of al-Muntasir (r. 861–862). A major figure in the first year of the period known as the Anarchy at Samarra, his career at the caliphal court came to an end when he was forced into exile in mid-862.
Ahmad was the son of al-Khasib ibn 'Abd al-Hamid, a finance officer in Egypt during the reign of Harun al-Rashid (r. 786–809). Early in Ahmad's career, he entered the service of the Turkish general Ashinas, becoming the latter's secretary (katib). In 838 he is mentioned as assisting Ashinas in thwarting a plot by several military officers to assassinate the caliph al-Mu'tasim (r. 833–842) during the Amorion campaign. During the reign of al-Wathiq (r. 842–847), he was one of the targets of a general crackdown against the government secretaries in 843-4, during which he and his subordinates were fined and forced to hand over one million gold dinars to the caliph. Under al-Mutawakkil (r. 847–861) he was assigned as secretary to al-Muntasir, the caliph's eldest son and heir.
Following the assassination of al-Mutawakkil by his Turkish bodyguards in December 861, Ahmad quickly worked to secure the succession for al-Muntasir. The army, secretaries and eminent men were assembled and Ahmad read to them an official version of the caliph's murder, claiming (falsely) that he had been killed by his favorite companion al-Fath ibn Khaqan. He also had an oath of allegiance drawn up and administered to everyone present. Al-Muntasir's younger brothers al-Mu'tazz and al-Mu'ayyad immediately recognized the new caliph, and al-Muntasir was able to establish his position without incident.