← Back to Skills Marketplace
377
Downloads
1
Stars
2
Active Installs
1
Versions
Install in OpenClaw
/install bambu-agent
Description
Monitor and manage Bambu Lab 3D printers in your local network with real-time status, error decoding, and a web dashboard interface.
README (SKILL.md)
🛠️ Skill: Bambu Farm Agent (拓竹农场助手)\r
- 技能概述\r 本技能允许 Agent 深度接入局域网内的拓竹 (Bambu Lab) 打印机集群。Agent 可以实时监控打印状态、解析复杂的 HMS 错误码,并为用户提供可视化的 Web 监控入口。\r \r
- Agent 调用规范 (Tool Use)\r 2.1 状态获取 (GET /api/farm/status)\r 适用场景:用户询问进度、时间、温度或查询整体农场状态时。\r \r 数据结构说明:\r \r status_color:\r \r red: 严重错误(HMS 报错或打印失败),Agent 应立即发出语音警告。\r \r yellow: 正在打印或准备中,Agent 应汇报具体百分比和剩余时间。\r \r green: 空闲或已完成,Agent 可告知用户可以安排新任务或取走成品。\r \r ams: 包含耗材颜色和类型,Agent 可用于回答“还剩什么颜色的线”等问题。\r \r 2.2 语音摘要获取 (GET /api/agent/brief)\r 适用场景:作为定时主动提醒的数据源。\r \r 逻辑:Agent 每一小时或在任务状态变更时调用此接口,获取一行总结性的播报文本。\r \r
- 推理逻辑引导 (Reasoning Logic)\r 当用户提出以下请求时,请按如下逻辑推理:\r \r 请求: “帮我看看打印机。”\r 推理: 调用 /api/farm/status -> 检查 status_color -> 如果有 red,先报错误;如果没有,按列表顺序汇报 yellow 状态的进度。\r \r 请求: “打印完了吗?”\r 推理: 调用 /api/farm/status -> 查找 state == "打印完成" 的实例 -> 告知用户具体机器名称。\r \r 请求: “报错了怎么办?”\r 推理: 提取数据中的 hms_error -> 引导用户检查对应的硬件部位(如:0300 开头通常与热床有关)。\r \r
- 交互限制与安全\r 局域网限制:如果接口返回超时,请告知用户确保运行设备与打印机处于同一 WiFi 下。\r \r 隐私:不要在交互中完整暴露打印机的序列号 (SN),仅使用备注名称(如“一号机”)。
Usage Guidance
This skill appears to do what it says: monitor Bambu printers over your LAN and provide a local dashboard. Before installing, note these points: (1) It stores Access Code and serial numbers in config.json on disk — treat that file as sensitive and restrict its permissions. (2) The MQTT client disables TLS certificate verification (tls_insecure_set(True)), which is common for local devices but reduces MITM protection; run only on trusted networks. (3) The initial setup uses interactive input() and will block if run headlessly — run the wizard once on a terminal or pre-create config.json. (4) The web UI pulls Google Fonts (external resource) from the browser; the backend does not exfiltrate data to remote servers. If you accept these tradeoffs, run it on a trusted local machine and secure the config.json file. If you need higher assurance, request source provenance and an explanation for tls_insecure_set usage or implement credential encryption for config.json.
Capability Analysis
Type: OpenClaw Skill
Name: bambu-agent
Version: 1.0.0
The skill is a monitoring tool for Bambu Lab 3D printers that uses MQTT to communicate with devices on the local network. It is classified as suspicious due to a security vulnerability in main.py where SSL certificate verification is explicitly disabled (ssl.CERT_NONE and tls_insecure_set(True)), which exposes the communication to man-in-the-middle attacks. Additionally, the skill collects and stores sensitive printer credentials, including access codes and serial numbers, in a local plaintext config.json file, and the intents.json file contains malformed data (a directory tree comment instead of JSON).
Capability Assessment
Purpose & Capability
Name/description align with the implementation: the code opens a local web dashboard, subscribes to printers' MQTT streams on their LAN IPs, decodes status/HMS data, and exposes /api/farm/status and /api/agent/brief as described. No unrelated services or credentials are requested.
Instruction Scope
SKILL.md instructs the agent to call the local endpoints for status and hourly briefings — that matches the API implemented. The runtime code, however, includes an interactive setup wizard (input()) that writes config.json; when run headlessly as a skill this may block or fail. The skill also explicitly asks the agent not to expose serial numbers, but serials are stored in config.json.
Install Mechanism
No install spec is provided (instruction/code bundle only). Dependencies are standard Python packages (fastapi, uvicorn, jinja2, paho-mqtt) listed in requirements.txt; nothing is downloaded from arbitrary URLs.
Credentials
The skill requests no environment variables or external credentials, which is proportionate. However it stores sensitive local secrets (Access Code and SN) in a plain config.json file and uses them for MQTT authentication. This storage is expected for the stated purpose but is a privacy/security consideration: protect the file and permissions.
Persistence & Privilege
Registry flags show the skill is not always-enabled and is user-invocable (normal). The included skill.json contains "auto_start": true which may cause it to start automatically in some runtimes; verify platform behavior. The skill runs a local web server on 127.0.0.1:5000 and MQTT connections to LAN devices — this is necessary for functionality but grants network presence on the host.
How to Use
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install bambu-agent - After installation, invoke the skill by name or use
/bambu-agent - Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of Bambu Farm Agent skill:
- Enables real-time monitoring of Bambu Lab printer clusters within a local network.
- Parses and reports HMS error codes, provides web-based visual monitoring access.
- Agent can fetch farm status, report consumption materials, and provide hourly or event-based voice summaries.
- Response logic defined for common user requests, including error reporting and print progress queries.
- Ensures privacy by referencing printer nicknames instead of serial numbers; local network security emphasized.
Metadata
Frequently Asked Questions
What is bambu-agent?
Monitor and manage Bambu Lab 3D printers in your local network with real-time status, error decoding, and a web dashboard interface. It is an AI Agent Skill for Claude Code / OpenClaw, with 377 downloads so far.
How do I install bambu-agent?
Run "/install bambu-agent" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is bambu-agent free?
Yes, bambu-agent is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does bambu-agent support?
bambu-agent is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created bambu-agent?
It is built and maintained by Zhouzia (@zhouzia); the current version is v1.0.0.
More Skills