---
title: "Klipper setup through Moonraker"
description: "Connect a Klipper printer through Moonraker using network discovery, a trusted site agent, or a Moonraker API key."
url: https://pluraprint.com/docs/printers/klipper
---
# Klipper setup through Moonraker

Connect a Klipper printer through Moonraker using network discovery, a trusted site agent, or a Moonraker API key.

Pluraprint reaches Klipper printers through Moonraker’s HTTP API. Start with a working Klipper and Moonraker installation. Check that Klipper reports **Ready** and that Moonraker can start a file from its G-code storage. Klipper uses `[virtual_sdcard]` for these files and `[pause_resume]` for print controls. See the [Klipper configuration reference](https://www.klipper3d.org/Config_Reference.html#virtual_sdcard).

The [site agent](https://pluraprint.com/docs/sites-and-agents/agents) needs to be online and able to reach Moonraker. For the network list, enable Moonraker’s `[zeroconf]` and allow multicast DNS between the host and the agent. You can also enter the address by hand. See [Moonraker discovery settings](https://moonraker.readthedocs.io/en/stable/configuration/#zeroconf).

## Give the site agent access

- If Moonraker trusts the site agent through `trusted_clients`, setup skips the key. Moonraker checks the address it sees for the agent’s requests.
- If Moonraker requires authorization, use its API key. Ask the Moonraker administrator to [retrieve the key](https://moonraker.readthedocs.io/en/latest/installation/#retrieving-the-api-key) if you don’t have it. A Mainsail or Fluidd login is separate from the API key.

## Add the printer

1. In Pluraprint, open **Printers → Add printer** and select the **Site**.
2. Under **On the network**, select **Add** beside the **Klipper** host. If it is missing, select **Klipper** under **Not listed**. Enter the Moonraker HTTP or HTTPS address, such as `http://printer.local:7125`, including any configured proxy path.
3. Paste the Moonraker key in **API key** if the host prompts for one.
4. Check the suggested **Model** against the physical printer and choose the exact model if needed. Check the name, nozzle, and build plate.
5. Select **Add printer**. Use **Add and next** to continue with another printer from the network list.

## Run prints and read status

The connection covers rectangular beds, one extruder, and one loaded material. Export text `.gcode` sliced for the model, nozzle, and Klipper configuration. Record the nozzle, plate, and filament in [Equipment](https://pluraprint.com/docs/printers/equipment). Pluraprint matches jobs on the equipment you enter. See the [Klipper model list](https://pluraprint.com/printers/klipper#models) for included Klipper presets.

Pluraprint confirms that a sent file starts, reports progress and temperatures, and lets you pause, resume, or stop a Pluraprint job. It shows snapshots from an enabled Moonraker webcam whose snapshot URL can be fetched on the same scheme, hostname, and port as the Moonraker address. [Storage cleanup](https://pluraprint.com/docs/printers/printer-storage#octoprint-and-klipper) removes old Pluraprint files under `pluraprint/` while the printer is idle.

## Troubleshoot the connection

| What you see | What to check |
| --- | --- |
| The host is missing from **On the network** | Check `[zeroconf]` and multicast DNS. If discovery can’t cross network segments, enter a Moonraker address the agent can reach. |
| Pluraprint can’t reach the address | Check that Moonraker is running, the selected site’s agent is online, and the address serves Moonraker’s API. For HTTPS, use a certificate the agent trusts. |
| Moonraker rejects access | Check the agent’s address against `trusted_clients` and whether Moonraker requires logins. If the API key changed, replace it in **Edit** on the printer’s page. |
| Moonraker is up but Klipper is unavailable | Check power, the connection to the printer controller, and Klipper’s error in Mainsail or Fluidd. When **Connect to printer** appears, Pluraprint asks Moonraker to restart Klipper after a reported shutdown or startup error. |
| A print fails to start | Confirm Klipper is ready, Moonraker can write to its G-code storage, and the file runs on that Klipper setup. |
| The camera is missing | Check that the webcam is enabled in Moonraker and its snapshot URL opens from the agent’s network on the same origin as Moonraker. |
