Klipper is 3D printer firmware that splits the work between two brains: a small computer, like a Raspberry Pi, that does the heavy calculations, and the printer board, which only drives motors and controls temperatures. The result is more speed, better quality and a configuration you change by editing a text file, without recompiling anything.
In this guide you’ll see what it is, when it’s worth it and how to install it step by step.
In short
- Klipper runs on a separate computer (host) and the printer board (MCU) just executes commands.
- All the configuration lives in a text file: printer.cfg. Changing a setting means editing and restarting.
- Key features: input shaping, pressure advance and macros.
- It’s easy to install with KIAUH and you control it from the browser with Mainsail or Fluidd.
- Many commercial printers already ship with Klipper-based firmware.
What Klipper is and how it differs from Marlin
On a printer running Marlin, the whole firmware lives on the board’s microcontroller. That chip reads the G-code, calculates the paths and generates the motor pulses. If it’s an 8-bit board, it quickly runs out of headroom.
Klipper splits the work:
- The host (a Raspberry Pi or any Linux computer) interprets the G-code and calculates precisely when each motor must take each step.
- The printer board (MCU) receives those pre-calculated commands over USB or serial and executes them at exactly the right moment.
| Marlin | Klipper | |
|---|---|---|
| Where calculations happen | On the printer board | On a separate computer |
| Changing a setting | Edit, compile and flash | Edit printer.cfg and restart |
| Interface | Printer screen | Web browser (Mainsail/Fluidd) |
| Input shaping | Available in recent versions | Built in, with accelerometer |
| Extra hardware | No | Raspberry Pi or similar |

Is Klipper worth installing?
It’s worth it if:
- You have an older printer running Marlin and want to print faster without losing quality.
- You like tinkering and want to change parameters without recompiling the firmware.
- You want to control the printer from the browser and have your own macros.
You don’t need it if your printer already comes with Klipper-based firmware from the factory, or if you only print now and then and everything works fine. If you don’t have a printer yet, the guide on which 3D printer to buy will help you decide.
What you need
- A Raspberry Pi (a Pi 3B+, 4 or 5 is more than enough) with its power supply. If you’re not sure, check which Raspberry Pi to buy.
- A microSD card of 16 GB or more.
- A USB data cable between the Pi and the printer board.
- The sample configuration file for your printer or board, found in the
config/folder of the Klipper repository.
Step-by-step installation
1. Flash the system to the card
With Raspberry Pi Imager, flash Raspberry Pi OS Lite (64-bit). In the advanced options (OS customization), enable SSH, set a username and password and configure Wi-Fi. If you get lost, follow the guide to enable SSH without a monitor or keyboard.
2. Install Klipper with KIAUH
KIAUH is a helper script that installs Klipper, Moonraker (the API) and the web interface. Connect over SSH and run:
sudo apt update && sudo apt install git -y
cd ~ && git clone https://github.com/dw-0/kiauh.git
./kiauh/kiauh.sh
In the menu choose Install and install, in this order, Klipper, Moonraker and Mainsail (or Fluidd, they’re equivalent).
3. Compile and flash the board firmware
The board needs a small Klipper firmware:
cd ~/klipper
make menuconfig
make
In menuconfig, choose your board’s microcontroller. The exact values (chip, bootloader, port) are listed at the top of your printer’s sample file. Many boards are flashed by copying out/klipper.bin to an SD card and powering on the printer with it inserted; each manufacturer has its own method.

4. Configure printer.cfg
Copy your printer’s sample as printer.cfg into the ~/printer_data/config/ folder. From Mainsail you can edit it right in the browser.
Find the board’s serial port:
ls /dev/serial/by-id/*
And paste it into the [mcu] section:
[mcu]
serial: /dev/serial/by-id/usb-1a86_USB_Serial-if00-port0
The sample path is just for illustration: use the one the command returns. Save, click Firmware restart and the printer should connect.
How printer.cfg is organized
The file is divided into sections in square brackets, one for each part of the machine:
[stepper_x]
step_pin: PB13
dir_pin: !PB12
enable_pin: !PB14
microsteps: 16
rotation_distance: 40
position_max: 235
[extruder]
rotation_distance: 34.406
nozzle_diameter: 0.400
filament_diameter: 1.750
pressure_advance: 0.05
[heater_bed]
max_temp: 110
This is a simplified excerpt: the pins depend on your board and are already set in the sample file. What you will have to calibrate is the extruder’s rotation_distance, which replaces e-steps in Klipper. We explain it in the guide to calibrating e-steps.

First checks after installing
Before printing, verify the basics from the Mainsail console:
STEPPER_BUZZ STEPPER=stepper_x: the motor should move a little back and forth. Repeat for each axis.- Run
G28(home) with your hand near the power switch the first time. PID_CALIBRATE HEATER=extruder TARGET=210and thenSAVE_CONFIG.PID_CALIBRATE HEATER=heater_bed TARGET=60andSAVE_CONFIG.- Set the Z offset with
PROBE_CALIBRATE(if you have a probe) or with paper, as in the guide to leveling the bed.
After that, calibrate Pressure Advance and, if you have an accelerometer, input shaping.
Common mistakes
- “mcu: Unable to connect”: the
serialpath is wrong or the board firmware wasn’t compiled with the right options. - Using a charge-only USB cable: it doesn’t carry data and the board doesn’t show up.
- Powering the Pi with any old charger: voltage drops cause disconnects in the middle of a print.
- Copying a printer.cfg from another board: the pins are different. Always start from the sample for your board or printer.
Frequently asked questions
Can I go back to Marlin if Klipper doesn’t win me over? Yes. Just flash the Marlin firmware back onto the board. The Raspberry Pi is then free for other uses.
Does OctoPrint work with Klipper? It can, but Mainsail or Fluidd are the usual choice, since they’re designed for Klipper. If you’re coming from OctoPrint, you’ll find the idea is the same: control the printer from the browser.
Do I need an accelerometer? Not to get started. You need one to measure vibrations and calibrate input shaping automatically, which is what lets you raise the speed a lot without ghosting.
Does Klipper improve an 8-bit printer? Yes, it’s one of its strengths: since the host does the calculations, a modest board can run at speeds it would never reach with Marlin.



