← 返回 Skills 市场
tanguyvans

Bambu Lab Local Control

作者 Tanguyvans · GitHub ↗ · v1.0.1
cross-platform ⚠ suspicious
2561
总下载
3
收藏
2
当前安装
2
版本数
在 OpenClaw 中安装
/install bambu-local
功能描述
Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C.
使用说明 (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
安全使用建议
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.
功能分析
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.
能力评估
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.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install bambu-local
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /bambu-local 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Removed config.json, added config.example.json
v1.0.0
Initial release
元数据
Slug bambu-local
版本 1.0.1
许可证
累计安装 3
当前安装数 2
历史版本数 2
常见问题

Bambu Lab Local Control 是什么?

Control Bambu Lab 3D printers locally via MQTT (no cloud). Supports A1, A1 Mini, P1P, P1S, X1C. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 2561 次。

如何安装 Bambu Lab Local Control?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install bambu-local」即可一键安装,无需额外配置。

Bambu Lab Local Control 是免费的吗?

是的,Bambu Lab Local Control 完全免费(开源免费),可自由下载、安装和使用。

Bambu Lab Local Control 支持哪些平台?

Bambu Lab Local Control 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Bambu Lab Local Control?

由 Tanguyvans(@tanguyvans)开发并维护,当前版本 v1.0.1。

💬 留言讨论