← Back to Skills Marketplace
tanguyvans

Bambu Lab Local Control

by Tanguyvans · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
2561
Downloads
3
Stars
2
Active Installs
2
Versions
Install in OpenClaw
/install bambu-local
Description
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
README (SKILL.md)

Bambu Local - 3D Printer Control

Control Bambu Lab printers locally via MQTT without cloud dependency.

Setup

  1. Create virtual environment:
python3 -m venv ~/bambu-env
source ~/bambu-env/bin/activate
pip install paho-mqtt
  1. Create config.json in skill folder:
{
  "printer_ip": "192.168.x.x",
  "access_code": "xxxxxxxx",
  "serial": "xxxxxxxxxxxx",
  "printer_name": "MyPrinter"
}

Get these from your printer: Settings → LAN Only Mode (access code) and Settings → Device (serial).

Commands

Status

run ~/clawd/skills/bambu-local/bambu status

Light

run ~/clawd/skills/bambu-local/bambu light on
run ~/clawd/skills/bambu-local/bambu light off

Print Control

run ~/clawd/skills/bambu-local/bambu print pause
run ~/clawd/skills/bambu-local/bambu print resume
run ~/clawd/skills/bambu-local/bambu print stop

Speed (1=Silent, 2=Standard, 3=Sport, 4=Ludicrous)

run ~/clawd/skills/bambu-local/bambu speed 2

Temperature

run ~/clawd/skills/bambu-local/bambu temp --bed 60
run ~/clawd/skills/bambu-local/bambu temp --nozzle 200

G-code

run ~/clawd/skills/bambu-local/bambu gcode "G28"

Supported Printers

  • Bambu Lab A1 / A1 Mini
  • Bambu Lab P1P / P1S
  • Bambu Lab X1 / X1C
Usage Guidance
This skill looks like what it claims: a local MQTT controller for Bambu printers. Before installing, consider: 1) Protect the config.json (it contains your printer access_code). Move it to a secure location or restrict file permissions so others on the machine cannot read it. 2) The code disables TLS certificate verification (tls_insecure_set(True)); that reduces MITM protection — acceptable on a trusted local LAN with self-signed certs, but be cautious on untrusted networks. 3) Verify the printer IP is local and that you trust devices on that network; anyone with the access_code can control the printer. 4) Because the skill stores credentials in a file inside the skill folder, avoid running it on multi-user systems without securing the file. 5) If you want stronger security, consider editing bambu.py to enforce certificate checks or use a more secure storage mechanism for the access_code (environment variables, OS keyring) and update SKILL.md accordingly.
Capability Analysis
Type: OpenClaw Skill Name: bambu-local Version: 1.0.1 The skill is designed for local control of Bambu Lab 3D printers via MQTT. It is classified as suspicious due to the `bambu.py` script explicitly disabling SSL certificate verification (`ssl.CERT_NONE` and `client.tls_insecure_set(True)`) for its MQTT connections. While this might be for practical reasons with local devices, it represents a significant security weakness, as the client will not verify the identity of the MQTT server it connects to, making it vulnerable to man-in-the-middle attacks if the local network or `config.json` (containing the `printer_ip`) is compromised. No other clear malicious intent like data exfiltration or remote code execution on the agent's host was found.
Capability Assessment
Purpose & Capability
Name/description match the implementation: bambu.py uses paho-mqtt to connect to a local printer IP over MQTT/TLS and publish/subscribe on device/{serial} topics. Declared binary (python3) and the required inputs (printer_ip, access_code, serial) are appropriate for the described functionality.
Instruction Scope
SKILL.md stays within the purpose (create venv, install paho-mqtt, create config.json with printer info, run the script). Two operational/security notes: the Python code disables TLS certificate verification (tls_set with CERT_NONE and tls_insecure_set(True)), which is likely to accommodate a self-signed cert but weakens MITM protections; and the instructions store the printer access_code in a plain config.json inside the skill folder (sensitive data at rest). The script does not read other system files or call external endpoints beyond the printer IP.
Install Mechanism
No install spec is provided (instruction-only). The SKILL.md asks the user to pip install paho-mqtt into a venv — a low-risk, expected step for a Python MQTT client.
Credentials
The registry metadata declared no required config paths, but the runtime code requires a config.json placed alongside bambu.py (CONFIG_PATH). This mismatch is an informational inconsistency. The sensitive value requested (access_code) is proportional to the skill's purpose, but users should note it will be stored in plaintext by default in the skill folder unless they change that.
Persistence & Privilege
The skill does not request always:true and does not modify other skills or system-wide settings. It runs when invoked and does not request elevated/persistent platform privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install bambu-local
  3. After installation, invoke the skill by name or use /bambu-local
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.1
Removed config.json, added config.example.json
v1.0.0
Initial release
Metadata
Slug bambu-local
Version 1.0.1
License
All-time Installs 3
Active Installs 2
Total Versions 2
Frequently Asked Questions

What is Bambu Lab Local Control?

Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C. It is an AI Agent Skill for Claude Code / OpenClaw, with 2561 downloads so far.

How do I install Bambu Lab Local Control?

Run "/install bambu-local" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Bambu Lab Local Control free?

Yes, Bambu Lab Local Control is completely free (open-source). You can download, install and use it at no cost.

Which platforms does Bambu Lab Local Control support?

Bambu Lab Local Control is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Bambu Lab Local Control?

It is built and maintained by Tanguyvans (@tanguyvans); the current version is v1.0.1.

💬 Comments