Bambu Printer Control for Openclaw

An AI-agent tool designed to manage files and check the status of a Bambu P1S 3D printer using secure FTPS and system-level scripting.

mayf3
v1.0.0
Jun 18, 2026
0
447
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install bambu-printer

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-printer 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 Printer Control?

The Bambu Printer Control skill enables developers to manage and control Bambu P1S 3D printers directly through lightweight, local system-level scripts. Designed specifically to bypass macOS local network restrictions that typically block Homebrew-installed runtimes like Node.js or Python, this tool relies on Apple-signed native binaries such as curl (for FTPS) and Perl (for MQTT probing).

As part of the expanding ecosystem of Openclaw Skills, this skill provides a robust bridge between local AI agents and physical hardware, ensuring reliable local network connectivity. Developers can effortlessly query device online status, browse 3D printer filesystems, and handle bulk transfers of sliced 3MF or GCODE files without relying on heavy external CLI applications.

Bambu Printer Control Use Cases

  • Automated 3D Print Job Staging: Queue sliced 3MF or GCODE models onto your Bambu P1S print cache directory directly from your developer workflow.
  • Timelapse Extraction: Automate the retrieval of recorded timelapse videos from the printer directory for progress sharing or monitoring.
  • Local Network Status Monitoring: Programmatically check if the 3D printer is online and active without leaving your CLI or terminal environment.
  • File Maintenance & Clean-up: Easily monitor and clean up the printer's cache, models, and print record storage spaces to free up local storage.

How Bambu Printer Control Works

  1. Connectivity Probe: The skill checks the local connection to the Bambu P1S via native Perl scripts probing MQTT, FTPS, and camera ports.
  2. Secure Shell FTPS Calls: Using system-signed curl commands, the agent executes file operations (listing, uploading, downloading, deleting) over FTPS securely.
  3. Directory Parsing: The output from the FTPS command is structured and parsed to display the printer's inner directory hierarchy (cache, timelapse, model, etc.).
  4. Execution and Clean-up: Files like gcode or 3mf are uploaded to the cache or downloaded to your local path, with errors reported in a clear, structured JSON format.

Bambu Printer Control Setup

Configure your local settings by creating a config.json file containing your Bambu P1S printer details (IP, serial, access code). Run status checks and manage file transfers directly via terminal commands:

# 1. Verify connection status
/usr/bin/perl scripts/status.pl

# 2. List the root directory of the printer
bash scripts/ftp.sh list /

# 3. Upload a sliced 3D model to the printer's cache
bash scripts/ftp.sh upload my_model.gcode.3mf

# 4. Download a timelapse video file
bash scripts/ftp.sh download /timelapse/video_example.avi ./

Bambu Printer Control Data Schema & Taxonomy

The skill relies on a local config.json configuration and maps the Bambu P1S internal directory structure as follows:

Directory Path Description Supported Operations
/ Root printer directory List
/cache/ Cache directory for printing files List, Upload, Download, Delete
/timelapse/ Automated camera timelapse videos List, Download, Delete
/recorder/ Printer logs and records (.bin) List, Download, Delete
/image/ Stored images List, Download, Delete
/model/ Model file directories List, Download, Delete

Status JSON Schema

The status query (scripts/status.pl) returns a clean JSON output for easy programmatic validation:

{
  "status": "online",
  "ftps": "ok",
  "mqtt_auth": "ok",
  "camera_port": "open",
  "ping": "ok"
}

Bambu Printer Control Advanced Features

  • macOS Sandboxing Bypass: Uses system-signed utilities (curl, perl) to reliably access local networks and bypass macOS restrictions on Homebrew-installed Node.js or Python packages.
  • Flexible Media Fetching: Ideal for integrating with home automation suites or custom dashboards to automatically sync /timelapse/ AVI videos immediately after printing.
  • Targeted Storage Footprint Analysis: Use command-line arguments (like scripts/ftp.sh size [path]) to quickly parse total storage utilization on the internal SD card.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*