Cyanides are poisonous chemicals that widely exist in nature and industrial processes as well as accidental fires. Rapid and accurate determination of cyanide exposure would facilitate forensic investigation, medical diagnosis, and chronic cyanide monitoring. Here, a rapid and direct method was developed for the determination of cyanide ions in urinary samples. This technique was based on an integrated capillary electrophoresis system coupled with laser-induced fluorescence (LIF) detection. Cyanide ions were derivatized with naphthalene-2,3-dicarboxaldehyde (NDA) and a primary amine (glycine) for LIF detection. Three separate reagents, NDA, glycine, and cyanide sample, were mixed online, which secured uniform conditions between samples for cyanide derivatization and reduced the risk of precipitation formation of mixtures. Conditions were optimized; the derivatization was completed in 2-4 minutes, and the separation was observed in 25 s. The limit of detection (LOD) was 4.0 nM at 3-fold signal-to-noise ratio for standard cyanide in buffer. The cyanide levels in urine samples from smokers and non-smokers were determined by using the method of standard addition, which demonstrated significant difference of cyanide levels in urinary samples from the two groups of people. The developed method was rapid and accurate, and is anticipated to be applicable to cyanide detection in waste water with appropriate modification.