Nozzle Notes
Slicers & software

What Is Klipper? Firmware for 3D Printers Explained

Klipper is 3D printer firmware that splits the work between a small computer and the printer board. Here is how it works, what it adds and what it takes to run it.

By Sepehr Sabbagh-pour · Published · Updated · 9 min read

Illustration: a generic single-board computer with unlabelled chips and a thin orange cable to a 3D printer controller board
AI-generated illustration

Klipper is 3D printer firmware that moves most of the heavy calculation off the printer's control board onto a separate small computer, such as a Raspberry Pi. The board mostly follows instructions. This guide covers how the split works, what Klipper adds, what it needs and who should think twice, based on the official documentation.

What does Klipper do?

Firmware is the software that runs on a printer's control board and turns G-code from your slicer into motor moves, heater control and fan speeds. Most printers ship with firmware such as Marlin that does all of this on the board itself. Klipper does it differently. New to the language itself? Start with what G-code is and how to read it. PrusaSlicer users can hand heating to a macro from the printer profile; see PrusaSlicer start G-code.

According to the Klipper documentation, an application processor (such as a low-cost Raspberry Pi) calculates when each stepper motor should step. It compresses those events, sends them to the micro-controller on the printer board, and the micro-controller executes each event at the requested time. The docs state that each stepper event is scheduled with a precision of 25 microseconds or better.

The two halves have names in the docs: the host is the Linux device (the Raspberry Pi or similar) and the MCU is the printer board.

What does Klipper add?

The project's features page lists several things that users usually mention:

  • Config file instead of reflashing. All settings are in a standard text file (printer.cfg) on the host. Editing a value does not require flashing the board again.
  • Pressure advance. A way to account for pressure inside the extruder. The docs say it reduces extruder ooze and improves the quality of corners. See our retraction settings guide for the related idea of managing ooze.
  • Input shaping. Reduces the effect of vibrations. The docs say it can reduce or eliminate ringing (also called ghosting or echoing) and may allow faster printing at similar quality. Our guide to fixing ghosting and ringing covers the symptom.
  • Macros. New G-code commands can be defined in the config file, and they can behave differently depending on printer state.
  • Built-in API server. A JSON based interface that lets other software control the printer.
  • Bed leveling and probing. Basic bed tilt detection or full mesh leveling, with support for many Z probes. See auto bed leveling explained.
  • Exclude object. When configured, it lets you cancel one object in a multi-part print.

Klipper also supports many machine layouts, including cartesian, delta, CoreXY and several others listed in the docs. If you are unsure what those words mean, see CoreXY versus bed slinger printers.

How does Klipper compare with Marlin?

The Klipper FAQ gives one concrete difference: Marlin can typically only step at around 10,000 steps per second, while Klipper achieves much higher step rates because the host does the planning. The FAQ also notes that Klipper uses the micro-controller's own pin names rather than Arduino-style numbers, so a pin number copied from a Marlin configuration may not map directly; it points to a sample-aliases.cfg file for translation. Marlin keeps everything on the board, which makes it simpler to flash and run, with no second computer to maintain.

QuestionKlipperMarlin-style firmware on the board
Extra computerRequired (Linux host)Not needed
Changing a settingEdit printer.cfg and restartUsually a configuration change and a new flash
Step rateMuch higher than Marlin, per the FAQAround 10,000 steps per second, per the Klipper FAQ
Best forTinkerers and custom buildsPlug-and-print use

What do you need to run Klipper?

PartWhat the docs say
Host computerRecommended: Raspberry Pi Zero 2 W, 3, 4 or 5. Other single board computers and x86 Linux machines also work.
Older hostsRaspberry Pi 1, 2 and Zero 1 are not recommended: print stalls are common on these slower machines.
Printer boardMany micro-controllers are supported, including ARM and AVR. Existing RepRap style printers can run Klipper without hardware modification, just add a Raspberry Pi.
Config fileStart from a printer-specific file in the Klipper config directory, or the manufacturer's own Klipper config if one exists.
InterfaceA front end such as Mainsail or Fluidd (through the Moonraker web API), or OctoPrint.

The installation guide describes flashing Klipper to the printer board as a step, so you need to be comfortable following command line instructions. Mainsail publishes a ready-made image called MainsailOS for Raspberry Pi and some Orange Pi boards, and a third-party installer called KIAUH can install Klipper and Fluidd. Check the install guide for your exact board, because flashing methods vary a lot between boards.

How do you install Klipper, step by step?

The official installation guide follows this order. Treat it as an overview and read the guide for your own board before touching anything.

  1. Prepare the host. Install a Linux image such as Raspberry Pi OS Lite or Ubuntu Server. The guide says desktop variants are not recommended, because helper programs can break Klipper functions. Alternatively use a ready image such as MainsailOS, or install with KIAUH.
  2. Find a config. Look in the Klipper config/ directory for a file named printer- plus your model, or on the manufacturer's site. If none exists, start from a generic- file for your control board.
  3. Build the board firmware on the host. Run make menuconfig, apply the settings given in the comments at the top of your config file, then run make.
  4. Find the board's serial port with ls /dev/serial/by-id/*. If the result is ambiguous, unplug the board, run it again and note which entry disappeared.
  5. Flash. Boards with an SD card (STM32 clones, LPC and similar) are flashed by copying the firmware file to the card. For Atmega boards you stop the klipper service, run make flash with the device path and restart the service. RP2040 boards may need boot mode first. If your config file's comments describe custom steps, follow those instead.
  6. Edit printer.cfg. Copy the config to the host, set the serial: line in the [mcu] section to the device path (check it again, because the name can change after flashing) and send restart from the console until the status reports the printer is ready.

Two warnings from the guide: for SD-card flashing keep the board disconnected from the host's USB, because some boards can feed power back and block the flash, and some stock boards need a new firmware filename each time you flash. If something fails, the log is usually at ~/printer_data/logs/klippy.log.

What happens if the host fails mid-print?

The FAQ describes a watchdog on the heaters: once a heater is on, the host must confirm it every 3 seconds, and if it does not, the micro-controller enters a shutdown state that turns off the heaters and steppers. So a crashed Raspberry Pi stops the printer safely rather than leaving it hot. The FAQ does not say whether the print can resume, so assume the job is lost. This is also why the docs warn that Raspberry Pi 1, 2 and Zero 1 boards stall prints and are not recommended.

A related detail: the RESTART and FIRMWARE_RESTART commands do not load new Klipper software. After updating the software itself you need to restart the klipper service or reflash, as the FAQ explains.

How do you control a Klipper printer?

Klipper supports common LCD displays wired to the printer, but day-to-day control usually happens from a browser. The docs say the best choices are front ends that talk to Klipper through the Moonraker web API, and that you can also use OctoPrint. The two main Moonraker based options are Mainsail and Fluidd. All of them are used from a normal web browser on the same network. If you want to compare with the OctoPrint route, read what OctoPrint is.

Your slicer still does the slicing. Klipper only runs the G-code it produces. If you are new to that step, start with what a slicer is.

How do you tune pressure advance and input shaping?

These two features are the usual reason people switch, and both have tuning pages in the documentation.

Pressure advance

The pressure advance guide uses a tall hollow square printed with a TUNING_TOWER command so the value rises with height. For a direct drive extruder the documented command is TUNING_TOWER COMMAND=SET_PRESSURE_ADVANCE PARAMETER=ADVANCE START=0 FACTOR=.005; for a long bowden tube the factor is .020. Before starting, set the layer height to roughly 75% of the nozzle diameter, run SET_VELOCITY_LIMIT SQUARE_CORNER_VELOCITY=1 ACCEL=500 and disable slicer dynamic acceleration control.

Corners blob below the ideal value and round off above it. Measure the height of the best corners with calipers (the guide says to choose a lower height when in doubt) and calculate start + height * factor. The example in the guide, 0 + 12.90 * .020, gives .258. Then put pressure_advance in the [extruder] section. The guide gives typical values between 0.050 and 1.000, with the high end usually only for bowden extruders, and says values above about 0.200 may make the extruder skip. It also says the ideal value depends on the extruder, nozzle and filament, so recalibrate per spool, and tune rotation_distance and nozzle temperature first.

Input shaping

You do not need an accelerometer. The resonance compensation page describes a manual method: print the ringing test model, measure the distance between ripples and compute the frequency as speed times the number of oscillations divided by the distance. Its example, 100 mm/s times 6 oscillations over 12.14 mm, gives about 49.4 Hz. Then pick a shaper. The page lists ZV, MZV (its default), ZVD, EI, 2HUMP_EI and 3HUMP_EI; the higher-order ones remove more ringing but smooth corners more, and the page warns that below roughly 20 to 25 Hz even MZV may over-smooth, in which case stiffen the printer or reduce moving mass instead. The page also says to fix mechanical causes such as belt tension first and to re-measure after changing the toolhead or bed. An accelerometer is an optional alternative that the docs say needs crimping and soldering. Our input shaping guide covers the concept.

Who is Klipper for?

This section is opinion based on the documentation, not on our own use.

  • Good fit: people who like adjusting their printer, already own a printer with a Klipper config available, or build their own machine.
  • Poor fit: anyone who wants to unbox a printer and print. Klipper adds a computer to maintain, a config file to understand and a flashing step that can go wrong.

Before adding Klipper to a printer you already own, check that a config exists for your exact model (the install guide suggests the Klipper config directory or the manufacturer's website) and that you can undo the change.

Common mistakes when starting with Klipper

  • Installing on a desktop OS image. The guide says to avoid desktop variants.
  • Using someone else's config for a different board. Pin names are board-specific, so start from the file for your exact model or board.
  • Forgetting the serial path changes. Re-run the serial lookup after flashing and update the serial: line.
  • Tuning pressure advance before extruder calibration. The guide says to tune rotation_distance and temperature first.
  • Starting on an old Raspberry Pi. Pi 1, 2 and Zero 1 stall prints, per the docs.
  • Flashing without a way back. Keep a copy of the original firmware and settings.

After it runs, the next step is calibration: use the config checks in the documentation, then pressure advance and input shaping as above. If the printer is a Bambu Lab model, note that nothing in the Klipper docs covers it, so verify support for your exact model before planning anything.

Starting points only. This article summarizes the official documentation. Always follow the install guide for your own board and keep a backup of your original firmware or settings before you flash anything.

Because Klipper has host software and microcontroller firmware, updating it differs from other printers. See how to update 3D printer firmware for the host-only and full update routes.

Frequently asked questions

What is Klipper in simple terms?

Klipper is 3D printer firmware that runs on two devices instead of one. A host computer, often a Raspberry Pi, calculates when each stepper motor should step, compresses those events and sends them to the micro-controller on the printer's board, which executes each one at the requested time. The documentation says each stepper event is scheduled with a precision of 25 microseconds or better. All settings live in one text file, printer.cfg, on the host. Your slicer still does the slicing; Klipper only runs the G-code it produces.

Does Klipper need a Raspberry Pi?

Klipper needs a host computer running Linux. The official documentation recommends a Raspberry Pi Zero 2 W, 3, 4 or 5, and says other single board computers and x86 Linux machines can also work. Older Raspberry Pi 1, 2 and Zero 1 boards are not recommended because print stalls are common on these slower machines. Existing RepRap style printers can run Klipper without hardware modification, just by adding a host computer. You also need a front end such as Mainsail or Fluidd, or OctoPrint, to control it from a browser.

Is Klipper the same as OctoPrint?

No. Klipper is firmware that controls the motors, heaters and fans, with the host computer doing the movement calculations. OctoPrint is a web interface for controlling and monitoring a printer. The Klipper documentation says OctoPrint can be used as a front end for a Klipper printer, but that the best choices are front ends that talk to Klipper through the Moonraker web API, mainly Mainsail and Fluidd. All of them are used from a normal web browser on the same network.

Do I need to reflash the board to change a setting in Klipper?

No. According to the Klipper documentation, all configuration is stored in a standard text file, printer.cfg, on the host computer, so changing a setting such as a speed, a pin or a probe offset does not require flashing the micro-controller again. You edit the file, restart Klipper and the new value applies. Flashing Klipper to the printer board is still a one-time installation step, and methods vary a lot between boards, so follow the install guide for your own board and keep a backup of your original firmware.

Sources

Sepehr Sabbagh-pour

Founder and editor

Sepehr Sabbagh-pour

Software engineer since 2009 and Head of Engineering by day, a maker who has owned several 3D printers, writing practical guides to 3D printers, filament and running costs, with every article saying what was and was not tested.

Drafted with AI assistance, then edited and reviewed by Sepehr before it goes live. How we use AI.

Matte render of a microSD card half inserted into a charcoal printer control board with a glowing orange traceAI illustration
How-to guides

How to Update 3D Printer Firmware: Step by Step

Firmware updates differ by brand. This guide covers the USB, SD card, Marlin and Klipper routes, what to check first and what to…

25 October 2026 · 5 min read