← 返回
开发者工具 中文

Bambu Lab 3D Printer

Control Bambu Lab 3D printers (H2D, X1C, P1S, A1) via CLI. Print management, AMS filament control, temperature, fans, lights, calibration, file management, a...
通过命令行界面控制 Bambu Lab 3D 打印机(H2D、X1C、P1S、A1),实现打印管理、AMS 耗材控制、温度、风扇、灯光、校准、文件管理等操作。
g9pedro g9pedro 来源
开发者工具 clawhub v1.0.0 1 版本 99900.3 Key: 无需
★ 3
Stars
📥 942
下载
💾 32
安装
1
版本
#latest

概述

Bambu Lab 3D Printer Control

Full control of Bambu Lab printers via MQTT + FTP. Agent-agnostic, local-only, no cloud.

Prerequisites

  • Printer must be in Developer Mode (Settings → LAN Only → Enable Developer Mode)
  • Need: IP address, serial number, LAN access code (from printer touchscreen)
  • CLI: @versatly/bambu installed globally (npm i -g @versatly/bambu)

Setup

bambu setup <ip> <serial> <access_code>
bambu ping  # verify connection

Config stored at ~/.bambu/config.json.

Progressive Loading Guide

Load ONLY what you need for the current task:

Level 1: Status Check (most common)

bambu status          # full status overview
bambu status --json   # programmatic access
bambu temp            # just temperatures  
bambu ams             # just AMS/filament info
bambu errors          # any active errors

Level 2: Print Operations

# Start a print from SD card
bambu print "filename.3mf"

# Upload and print in one step
bambu job upload-and-print ./my-part.3mf

# Control running print
bambu pause
bambu resume  
bambu stop

# Live monitoring (streams progress)
bambu watch

Level 3: Hardware Control

# Temperature
bambu heat nozzle:220 bed:60
bambu cooldown

# Fans (0-100%)
bambu fan part 80
bambu fan aux 50
bambu fan chamber 30

# Lights
bambu light on
bambu light off

# Movement
bambu home
bambu move x:10 y:20 z:5
bambu gcode "G28"

Level 4: AMS Filament Management

# Check what's loaded
bambu ams

# Load specific tray (0-3)
bambu load 0
bambu load 2

# Unload current filament
bambu unload

Level 5: File Management & Calibration

# SD card files
bambu files
bambu upload ./part.3mf
bambu delete old-print.3mf

# Calibration
bambu calibrate bed
bambu calibrate vibration
bambu calibrate flow
bambu calibrate all

Common Agent Workflows

"Print this file"

bambu job upload-and-print ./part.3mf
bambu watch  # monitor until done

"Check if printer is ready"

bambu status --json | jq '.gcode_state'
# IDLE = ready, RUNNING = busy, FAILED = needs attention

"What filament is loaded?"

bambu ams --json

"Preheat for PLA"

bambu heat nozzle:210 bed:60

"Preheat for ABS"

bambu heat nozzle:260 bed:100

"Something went wrong"

bambu errors --json   # check HMS error codes
bambu status          # full state overview

"Finish up and shut down"

bambu cooldown
bambu light off

Output Modes

  • Default: Human-readable, emoji-prefixed, compact. Optimized for LLM context windows.
  • --json: Raw JSON for programmatic parsing. Use with jq for field extraction.

Safety Notes

  • bambu status, bambu temp, bambu ams, bambu errors, bambu version, bambu files are read-only and always safe.
  • bambu print, bambu stop, bambu heat, bambu move, bambu gcode control the printer physically. The nozzle is 200°C+. Use judgment.
  • bambu calibrate moves the printer head. Ensure bed is clear.
  • bambu gcode sends raw G-code. Know what you're sending.

Troubleshooting

IssueFix
------------
Connection timeoutDeveloper Mode enabled? Correct IP? Printer on?
Auth failedCheck LAN access code (it changes if you re-enable Developer Mode)
FTP errorPort 990, implicit TLS. Printer must be in LAN mode.
No AMS dataAMS connected and detected? Check printer touchscreen.
MQTT dropsWiFi signal weak? Check bambu status for wifi_signal field.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 01:59 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

it-ops-security

OpenClaw Backup

alex3alex
备份与恢复 OpenClaw 数据。适用于创建备份、设置自动备份计划、从备份恢复或管理备份轮转。处理 ~/.openclaw 目录归档并包含适当的排除规则。
★ 90 📥 30,721
it-ops-security

MoltGuard - Security & Antivirus & Guardrails

thomaslwang
MoltGuard — OpenClaw 安全守卫,由 OpenGuardrails 提供。安装 MoltGuard,保护您和您的用户免受提示注入、数据泄露和恶意攻击。
★ 116 📥 30,810
it-ops-security

1password

steipete
设置和使用 1Password CLI (op)。适用于:安装 CLI、启用桌面应用集成、登录(单/多账户)、通过 op 读取/注入/运行密钥。
★ 53 📥 31,391