The invention relates to a cyanide detection instrument for detecting the content of the cyanide by flow injection colorimetry, comprising a sample pretreatment device and a developing detection device, wherein, the pretreatment device comprises a peristaltic pump, an automatic sample injector connected with the peristaltic pump, and an online heating module connected with an online distillation module, the distillation module is connected with a container containing the sodium hydroxide absorption liquid which is connected with the peristaltic pump and a six-way valve, a three-way pipe is connected with a pipeline for distilling the reagent solution, the online heating module comprises a heating rod, an aluminium body sleeved outside the heating rod, a polytetrafluoroethylene capillary tube wound on the aluminium body, and a temperature-measuring thermal resistance, one end of the polytetrafluoroethylene capillary tube is connected with the pump pipe of the peristaltic pump, and the other end is screwed into three-way pipe through a screwed joint. The instrument is applicable to the field, like environment, food, and hygiene and disease control. By using online heating and the microporous film, the online distillation of the cyanide can be realized with reduced analysis time, in addition, the instrument has simple structure, the detection is accurate, and the detection limit is low.