SHAMBUa little impersonation.

BAMBU HARDWARE / MOONRAKER LANGUAGE

Your Bambu.
Your familiar tools.

A little shim between two worlds. Shambu connects Bambu Lab printers to Moonraker clients like Mainsail and Fluidd, right on your LAN.

Python · Docker · MIT licensed / Experimental

01 / THE TRANSLATION LAYER● LAN
{ }
Your favourite interfaceMainsail · Fluidd · Moonraker clients
HTTP / WEBSOCKET↓ ↑
shambuspeaks a little of both.
⇄
MQTT / FTPS↓ ↑
▤
Your Bambu Lab printerOriginal firmware · local connection
A Moonraker-compatible API. A Bambu underneath.
01

Stays on your LANDirect MQTT and FTPS connections.

02

Keeps your firmwareRuns alongside the printer, in Docker.

03

Brings familiar interfacesMainsail, Fluidd and Retrograde bundled.

THE VIEW FROM THIS SIDE

Well, this looks familiar.

A Bambu printer, seen through Mainsail.
The interface you know, with a new translator underneath.

shambu / mainsailOpen full size ↗
Mainsail connected through Shambu, showing a Bambu printer camera, temperatures, toolhead controls, fans and console.
Captured from the local P1S dashboard, still named Fakeraker in this instance. See validation status below for control support.

A SMALL BRIDGE, ON PURPOSE

Bambu on one side.
Moonraker on the other.

Shambu translates a subset of Moonraker requests into Bambu operations. It runs on a computer that can reach your printer, exposing an API on port 7125.

Monitoring, files, camera streams and settings can live in a familiar dashboard. The shim handles the protocol differences behind the scenes.

It does not install Klipper, replace Bambu firmware or turn the printer into a Klipper machine. Existing Klipper macros and slicer profiles are not automatically compatible.

WHAT'S INSIDE

The useful bits, brought together.

01 / OBSERVE

A window into your printer

Temperatures, print state, progress and filenames over LAN MQTT. A shared P1-style camera connection provides MJPEG streams and snapshots.

Monitoring and camera observed on P1S
02 / BROWSE

Files that keep their names

Browse printer files over FTPS, with real .gcode.3mf filenames. The bundled Mainsail build includes a durable 3MF compatibility patch.

Listing · upload · download · delete paths
03 / INSPECT

A preview before the print

Read embedded thumbnails and slicer estimates from sliced 3MF and common G-code formats. Missing fields stay missing, with previews cached in SQLite.

Metadata · thumbnails · plate selection
04 / REMEMBER

A dashboard that remembers

UI preferences, webcams, external-spool metadata and terminal job records persist in SQLite through a Moonraker-compatible database API.

HTTP + WebSocket settings persistence

WORK IN PROGRESS, OUT IN THE OPEN

A shim. With honest edges.

The development printer is a P1S. A code path or a passing mock test is only part of the story; physical behaviour needs observation.

Observed / verified

LAN monitoring and the P1S camera path. Settings persistence. File listing, metadata and previews. Validation details live in the README.

Needs validation

Remote print start remains unresolved on the observed P1S firmware. Heater semantics, motion and other controls need further hardware acceptance testing.

Known limits

A subset of Moonraker, fixed macro handlers, and incomplete model coverage. No general Klipper/Jinja macro engine or validated AMS/AFC UI integration.

Read the full compatibility and validation notes ↗

GET STARTED

One container.
Three ways to look in.

You'll need Docker, a printer reachable from the container, its serial number and its LAN access code. Start with the documented LAN-mode setup.

01

Get the source

Clone the repository and open its directory.

02

Add your printer

Create .env with your host, access code, serial and model. Follow the configuration example ↗.

03

Build and launch

Create the persistence files, build the image and run it using the documented port and volume mappings.

TERMINAL / GET THE SOURCE
git clone https://github.com/justinh-rahb/bambu-moonraker-shim.git
cd bambu-moonraker-shim
Next: configure .env before building or running.
Continue with the Docker setup ↗
8080MainsailPatched for 3MF
8081FluiddAlternative web interface
8082RetrogradeBundled web interface
7125Shim APIMoonraker-compatible

Intended for a trusted LAN; the API currently has no authentication. This unofficial project is unsupported by Bambu Lab, and firmware changes may affect compatibility.

Want to explore without a printer?

Mock mode simulates printer state with local file operations. The README includes a separate container command that clears printer credentials and disables the camera. Mock behaviour does not validate physical controls.

Run the mock example ↗
Prefer to run Python directly?

The shim can run with Python 3.11 and the repository's requirements. You'll need a separately hosted UI; the Python server serves the API. The bundled Mainsail patch is applied by the Docker build.

Python setup instructions ↗

OPEN SOURCE / MIT

A friendly Moonraker imposter.

Printer quirks, careful testing and contributions welcome.

Meet Shambu on GitHub ↗