To investigate the effects of fly maggot pretreatment and excipient incorporation on greenhouse gas emissions and NH3 volatilization during chicken manure composting,a mixture of weathered lignite,kitchen waste,mushroom residue,and chicken manure was chosen for evaluation.Specifically,NH3 volatilization and greenhouse gas emissions during composting were studied.The study included four control groups(no fly maggot pretreatment),which were composed of pure chicken manure(CK1),a blend of 30%weathered lignite and 70%chicken manure(CK2),30%kitchen waste and 70%chicken manure(CK3),and 30%mushroom residue and 70%chicken manure(CK4).Additionally,there were four test groups with fly maggot pretreatment,including pure chicken manure(T1),a blend of 30%weathered lignite and 70%chicken manure(T2),30%kitchen waste and 70%chicken manure(T3),and 30%mushroom residue and 70%chicken manure(T4).The results indicated that maggot pretreatment prolonged the period with temperatures≥50℃by 5-9 days compared to CK1.During the whole test period,the NH3 emissions of the test group were concentrated in the 2nd day of composting,and the NH3 cumulative emission of pretreatment of fly maggots was significantly lower than that of the control group,with a decrease of 42.7%-61.1%.The NH3 cumulative emission from mushroom residue was the lowest in the control group.N2O emissions were significantly reduced by weathered lignite.Fly maggot pretreatment significantly reduced CO2 emission equivalent(ECO2e),which is 32.1%-73.2%lower than CK1.The combined combination of mushroom residue and fly maggot pretreatment had the lowest ECO2e.In summary,the test group experienced increased composting temperatures,while significantly reduced NH3 and ECO2e.Based on composting temperature and ECO2e,a combination of fly maggot pretreatment and mushroom residue is recommended as an optimal management solution.