Open-source CNC safety tool

Catch the crash
before the crash.

Offline collision checker for CNC G-code. Verifies the full tool assembly against your vise, stock, and fixtures — before the program runs on the machine.

View on GitHub

pip install gcode-collision-check

hover to collide tap to collide

How it works

From text to truth in 0.07 seconds.

  1. G-code
  2. Parse
  3. Sample
  4. Z-filter
  5. Check
  6. Result

The output

Every crash, pinpointed. Every scene, explorable.

The CLI maps every collision to its G-code line. One flag turns the same check into a 3D scene you can orbit.

$ gcode-collision-check verify crash.nc --scene vise.stl RESULT: COLLISION   33 hits on 3 of 7 program lines        checked 7 segments, 134 samples, 0.07 s   LINE  G-CODE        COLLIDING PAIR      HITS  DEPTH   Z  ----  ------------  ------------------  ----  ------  -------------  6     G0 X-50       flute / vise         8    40.087  5.00  7     G1 Z-10 F200  flute / vise, ...    9     9.798  -10.0..5.0  8     G0 Z50        flute / vise, ...   16    10.535  -10.0..20.0         first contact: line 6  X-36.00 Y0.00 Z5.00

gcode-collision-check · drag to rotate · scroll to zoom

Hover a program line for the full story.