bg-remover for Openclaw

A local AI-powered image segmentation tool for removing, replacing, or blurring backgrounds with professional precision.

jxhgzs
v1.0.0
Mar 19, 2026
0
917
0

Install & Download

1. ClawHub CLI

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

npx clawhub@latest install bg-remover

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 bg-remover 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 bg-remover?

bg-remover is a powerful image processing tool designed for Openclaw Skills that leverages the rembg library and U2-Net model for high-quality background segmentation. It allows developers and users to perform complex image manipulations locally without relying on external cloud APIs, ensuring privacy and speed.

This skill is ideal for creating transparent PNGs, generating professional headshots with solid background colors, or applying depth-of-field effects through intelligent background blurring. It handles the heavy lifting of AI model management and pixel-perfect masking through a simple command-line interface.

bg-remover Use Cases

  • Creating transparent PNG cutouts for web design or presentations.
  • Batch processing product photos for ecommerce by replacing backgrounds with solid colors.
  • Enhancing portrait photography by applying a customizable blur effect to the background.
  • Automating the extraction of subjects from complex scenes for further graphic design work.

How bg-remover Works

  1. The tool initializes by loading the U2-Net pre-trained model for subject segmentation.
  2. It analyzes the input image to identify foreground subjects and creates an alpha mask.
  3. Based on the chosen command (remove, replace, or blur), it applies the mask to the original pixels.
  4. For replacements, it composites the subject over a new color hex code or image file.
  5. The final result is processed and saved as a high-quality PNG file to preserve transparency.

bg-remover Setup

To get started with this skill for Openclaw Skills, run the automated installation script:

bash {baseDir}/scripts/install.sh

Alternatively, you can install the necessary Python dependencies manually:

pip install rembg Pillow numpy onnxruntime

Note: Upon first execution, the tool will download the U2-Net model (~170MB).

bg-remover Data Schema & Taxonomy

The bg-remover skill follows a structured output naming convention to help organize your assets:

Action Default Suffix Format
Background Removal _nobg.png PNG (Transparent)
Background Replacement _newbg.png PNG
Background Blur _blur.png PNG

Users can override these defaults using the -o flag to specify a custom output path.

bg-remover Advanced Features

  • Custom blur radius control using the -r parameter for fine-tuning bokeh intensity.
  • Multi-format color support for replacements including Hex codes, RGB, and named CSS colors.
  • Image-to-image background replacement for seamless compositing.
  • Local ONNX Runtime execution for optimized performance on local hardware within Openclaw Skills.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*