A brand new MIT-licensed Python tool bridges Bambu Studio's slice-only CLI to FTPS upload and MQTT control, with clean JSON telemetry. Two such projects appeared within weeks of each other, which tells you how wide the gap was.

Bambu Studio has had a command-line interface for a while, and it does exactly one thing: it slices. You can automate a G-code file on a headless machine, and then you are stuck. Getting that file onto the printer and starting the job still means opening the app, because Studio's CLI never sends network print commands. A tool published this week called bambu-cli closes precisely that gap, and it is worth ten minutes of any automator's attention.

What it does

The project landed on GitHub on November 24 from Sunwood-ai-labs. It is Python, MIT-licensed, and it stitches together two pieces that already existed: Bambu Studio's headless slicing and the community bambulabs-api package for LAN file transfer and MQTT control. The combined flow is what people have been hand-rolling in scripts for years. One command takes an .stl or .3mf, slices it headlessly, uploads the resulting .gcode.3mf over FTPS on port 990, and starts the print over MQTT on 8883.

The command surface covers a real workflow rather than a demo. There is config with per-printer profiles, status, slice, upload, print, pause, resume, stop, chamber light on and off, and a raw gcode passthrough for the odd job. Credentials live in one config file with environment variable overrides, and the access code is masked whenever the tool prints it.

The part that matters is the status output

Ask it for status and you get printer state, layer progress, remaining time, nozzle, bed and chamber temperatures, and Wi-Fi signal strength. With a --json flag it dumps the raw MQTT payload. The README itself calls the output agent-ready, and that is the correct read. This is the same territory Prusa opened up when its MCP server let ChatGPT and Claude drive printers, only this is a lower-level primitive: no model wrapper, just structured output a script or an agent can pipe, poll and assert against. If you want a nightly test print from CI that fails the build when the first layer dies, this is the missing layer of plumbing.

It is not alone, and that is the signal

The interesting bit is the timing. In January, Tobias Bischoff published a Go tool under the same name, bambu-cli, doing MQTT status, FTPS and camera access from the terminal. It stayed a single-purpose utility. In November, this second project appeared and went after the full pipeline. Two unrelated people, two languages, same gap, within ten months. When open source forks the same idea twice, the demand is real. Bambu's official app still treats fleet scripting as an afterthought, and the ecosystem keeps building around that.

Honest caveats before you pip install

It is one day old. Two contributors, two commits on the repo, and the README is explicit that the verified test bench was a single A1 mini on Windows with LAN Only Mode and Developer Mode enabled on recent firmware. Expect gaps on other models until users file them. There is also an unavoidable hardware constraint the troubleshooting section already documents: the A1 mini allows only a small number of simultaneous MQTT connections, so if Bambu Studio is open on another machine the CLI times out. That is the printer, not the tool, but it will be the first thing you hit.

If you want to try it

Three things on the printer: enable LAN Only Mode, enable Developer Mode, and note the IP, access code and serial. Then a profile is one config command, and a full slice-to-print is one more. Keep the access code in a file or environment variable rather than a command flag, because shell history is where credentials leak. And if your script and the app fight over MQTT, close Studio. For anything headless, this is now the shortest path from a model file to a moving gantry, and a day-old project that fits in a weekend read is already more useful than most funded fleet managers.

Disclosure: Some links are affiliate links. We may earn a small commission at no extra cost to you.

Comments (0)

No comments yet. Be the first!

Leave a Comment