Bambu CLI for Openclaw

A powerful command-line interface for monitoring, controlling, and troubleshooting BambuLab 3D printers over local network protocols.

tobiasbischoff
v1.0.0
Jan 9, 2026
18
4.3k
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install bambu-cli

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-cli 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 CLI?

The Bambu CLI skill enables seamless integration between AI agents and BambuLab 3D printers. By leveraging MQTT, FTPS, and camera protocols, this Openclaw Skills addition allows developers to automate print jobs, monitor hardware status in real-time, and manage printer configurations without manual intervention. It provides a robust bridge for remote printer management, making it an essential tool for creators looking to streamline their 3D printing pipeline within the Openclaw Skills ecosystem.

This utility prioritizes safety and precision, offering structured JSON output for scripts and dry-run capabilities to preview actions before execution. Whether you are managing a single printer or a fleet, it provides the technical foundation needed for sophisticated additive manufacturing automation.

Bambu CLI Use Cases

  • Remotely starting 3MF or GCODE print jobs with specific plate selection using Openclaw Skills.
  • Real-time monitoring of print progress and printer health via status updates or continuous watch mode.
  • Automated file management including uploading models to the printer or downloading logs for analysis.
  • Controlling printer hardware such as bed/nozzle temperatures, fan speeds, and LED lighting via command line.
  • Troubleshooting connectivity issues using the built-in doctor command for network diagnostics across MQTT and FTPS ports.

How Bambu CLI Works

  1. The user configures a printer profile by providing the local IP address, serial number, and access code.
  2. The CLI establishes secure communication with the printer using MQTT for status and FTPS for file transfers.
  3. Users issue commands through Openclaw Skills for specific actions like starting a print, homing axes, or capturing a camera snapshot.
  4. The skill validates safety protocols, requiring explicit confirmation for destructive actions like stopping a print or sending raw G-code.
  5. For automated workflows, the tool can output structured JSON or plain text for easy parsing by other systems.

Bambu CLI Setup

Initialize your printer configuration with the following command to integrate with Openclaw Skills:

bambu-cli config set --printer "MyPrinter" --ip 192.168.1.100 --serial 01S00A12345678 --access-code-file ./code.txt --default

Test the connection by checking the printer status:

bambu-cli status

Optionally, set environment variables like BAMBU_IP and BAMBU_ACCESS_CODE_FILE to simplify your workflow and avoid repetitive flags.

Bambu CLI Data Schema & Taxonomy

The skill manages data through JSON configurations and specific file hierarchies to ensure compatibility with Openclaw Skills:

Component Description
User Config Located at ~/.config/bambu/config.json for global printer profiles.
Project Config Located at ./.bambu.json for directory-specific printer settings.
File Storage Supports .3mf and .gcode formats for uploads and printing.
Media Captures snapshots in .jpg format for remote monitoring.
Output Supports human (default), --json (structured), and --plain (key=value) formatting.

Bambu CLI Advanced Features

  • Automated AMS (Automatic Material System) mapping and object skipping during print starts for multi-material efficiency.
  • Direct G-code execution with safety validation overrides for advanced calibration tasks.
  • Multi-printer profile management with easy switching via flags or environment variables in Openclaw Skills.
  • Real-time camera snapshot retrieval for visual verification of print progress and AI-based failure detection.
  • Comprehensive network diagnostics via the doctor command to ensure MQTT, FTPS, and camera ports are reachable.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*