Bambu Lab 3D Printer Control for Openclaw

A local-only CLI tool enabling AI agents to monitor and control Bambu Lab 3D printers via MQTT and FTP protocols.

g9pedro
v1.0.0
Mar 1, 2026
2
1.6k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install bambu

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install bambu using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Bambu Lab 3D Printer Control?

The Bambu skill provides a comprehensive interface for managing Bambu Lab hardware, including X1, P1, and A1 series printers, directly from your terminal or AI environment. By leveraging Openclaw Skills, this tool facilitates a secure, local-first connection that bypasses the cloud, ensuring your print data and commands remain private and low-latency.

This integration allows developers and makers to treat their 3D printer as a programmable node. It covers the entire lifecycle of a 3D print, from file upload and preheating to live monitoring and post-print cooldown, all through a developer-friendly command-line interface optimized for LLM context windows.

Bambu Lab 3D Printer Control Use Cases

  • Automating the upload and start of 3mf print jobs from a local development directory.
  • Real-time monitoring of print progress, nozzle temperatures, and bed status during long runs.
  • Managing multi-material workflows by switching AMS filaments programmatically.
  • Creating automated preheat routines for different materials like PLA, PETG, or ABS.
  • Diagnosing printer issues by retrieving HMS error codes and printer state via Openclaw Skills.

How Bambu Lab 3D Printer Control Works

  1. The user enables Developer Mode/LAN Only mode on the physical Bambu Lab printer hardware.
  2. The Openclaw Skills interface connects to the printer using its local IP address and LAN access code.
  3. Commands are dispatched via the @versatly/bambu CLI tool, which communicates with the printer using MQTT for real-time control.
  4. File transfers for 3D models are handled through a secure FTP connection directly to the printer's SD card.
  5. The AI agent parses the human-readable or JSON output to verify command success or monitor telemetry.

Bambu Lab 3D Printer Control Setup

To get started, install the CLI globally and configure your printer credentials:

npm i -g @versatly/bambu
bambu setup <ip> <serial> <access_code>
bambu ping

Ensure your printer is set to LAN Only mode in the settings menu to allow the Openclaw Skills to communicate with the hardware.

Bambu Lab 3D Printer Control Data Schema & Taxonomy

The skill manages configuration and state through local files and structured JSON responses:

Component Description
~/.bambu/config.json Stores the printer IP, serial number, and encrypted access code.
bambu status --json Provides the full printer state including gcode_state, mc_percent, and wifi_signal.
bambu ams --json Details the current filament types, colors, and tray assignments.
bambu errors --json Exports active HMS (Health Management System) error codes for automated troubleshooting.

Bambu Lab 3D Printer Control Advanced Features

  • Support for raw G-code injection via the gcode command for custom hardware routines.
  • Progressive loading guide to minimize token usage by only requesting specific data (e.g., just temps or just AMS info).
  • Integrated calibration suite for bed leveling, vibration compensation, and flow rate adjustment.
  • Real-time telemetry streaming using the watch command for continuous progress tracking.
  • Headless file management including remote deletion and directory listing on the printer's internal storage.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*