How kalicocrew/kalico works
Kalico is a community-maintained Klipper firmware fork for controlling 3D printers. A user configures the printer and submits G-code; the host parses commands, plans motion and coordinates heaters and peripherals, then communicates timed commands to MCU firmware that drives hardware. The repository also provides calibration, probing, sensor and plugin capabilities. The graph reflects documented product stages and the available source-index references; many host-to-host and host-to-MCU calls are not shown in excerpts, so those links are marked unverified rather than asserted as inspected.
Main entry points: gcode.py G-code parser · extras Printer extensions · toolhead.py Motion planner · mcu.py MCU interface
Components 21
Host runtime
- Configuration
klippy/configfile.py - Printer runtime
klippy/klippy.py - G-code parser
klippy/gcode.py - Event reactor
klippy/reactor.py - Webhook API
klippy/webhooks.py
Motion control
- Motion planner
klippy/toolhead.py - Kinematics
klippy/kinematics/cartesian.py - Stepper control
klippy/stepper.py
Hardware control
- Heater control
klippy/extras/heaters.py - Fan control
klippy/extras/fan.py - MCU interface
klippy/mcu.py - Serial transport
klippy/serialhdl.py - Clock synchronization
klippy/clocksync.py
MCU firmware
- MCU scheduler
src/sched.h - Firmware commands
src/command.h
Printer features
- Printer extensions
klippy/extras - Probe and leveling
klippy/extras/probe.py - Motion calibration
klippy/extras/resonance_tester.py - User plugins
klippy/plugins
Other components
- Printer operator
- 3D printer hardware
Connections 23
- Printer operator → Configuration: configures
- Printer operator → G-code parser: submits G-code
- Configuration → Printer runtime: configures
- Printer runtime → G-code parser: dispatches
- G-code parser → Event reactor: uses events
klippy/gcode.py - Webhook API → G-code parser: routes commands
klippy/webhooks.py - G-code parser → Motion planner: requests motion
- Motion planner → Kinematics: calculates motion
- Kinematics → Stepper control: sets steppers
- Motion planner → MCU interface: queues commands
- MCU interface → Serial transport: transmits
- MCU interface → Clock synchronization: synchronizes clocks
- Serial transport → Firmware commands: sends commands
- Firmware commands → MCU scheduler: dispatches
src/command.h - MCU scheduler → 3D printer hardware: drives hardware
- Printer extensions → Heater control: provides control
- Printer extensions → Fan control: provides control
klippy/extras/controller_fan.py - Printer extensions → Probe and leveling: includes probes
- Printer extensions → Motion calibration: includes calibration
- User plugins → Printer runtime: extends runtime
- Probe and leveling → 3D printer hardware: measures bed
- Heater control → 3D printer hardware: controls temperature
- Fan control → 3D printer hardware: controls cooling