Skip to content
Back to skills

Rembg Ai Background Removal Cli

ASecurity

rembg is a Python tool for automatic image background removal powered by AI models like U2-Net and SAM. It works as a CLI, Python library, HTTP server, or Docker container, supporting CPU and GPU acceleration for batch processing of images and video frames.

  • 36 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added June 2, 2026
ai-agentspythongodockergitbackendsecurity

Works with

  • cli

Security analysis

A92/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned June 2, 2026

npx -y skills add agentskillexchange/skills --skill rembg-ai-background-removal-cli --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Rembg Ai Background Removal Cli?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Rembg Ai Background Removal Cli
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/agentskillexchange-rembg-ai-background-removal-cli/badge)](https://www.skillsdirectory.com/skills/agentskillexchange-rembg-ai-background-removal-cli)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: "rembg AI Background Removal CLI and Python Library"
slug: "rembg-ai-background-removal-cli"
description: "rembg is a Python tool for automatic image background removal powered by AI models like U2-Net and SAM. It works as a CLI, Python library, HTTP server, or Docker container, supporting CPU and GPU acceleration for batch processing of images and video frames."
github_stars: 22400
verification: "security_reviewed"
source: "https://github.com/danielgatis/rembg"
category: "Image & Creative Automation"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "danielgatis/rembg"
  github_stars: 22400
---

# rembg AI Background Removal CLI and Python Library

rembg is a Python tool for automatic image background removal powered by AI models like U2-Net and SAM. It works as a CLI, Python library, HTTP server, or Docker container, supporting CPU and GPU acceleration for batch processing of images and video frames.

## Installation

Use the upstream install or setup path that matches your environment:
- pip install "rembg[cpu]" # for library
- pip install "rembg[cpu,cli]" # for library + cli
- pip install "rembg[gpu]" # for library
- pip install "rembg[gpu,cli]" # for library + cli

Requirements and caveats from upstream:
- <p align="center">Rembg is a tool to remove image backgrounds. It can be used as a CLI, Python library, HTTP server, or Docker container.</p>
- python: >=3.11, <3.14
- **Note:** NVIDIA GPUs may require onnxruntime-gpu, CUDA, and cudnn-devel. See [#668](https://github.com/danielgatis/rembg/issues/668#issuecomment-2689830314) for details. If rembg[gpu] doesn't work and you can't insta...

Basic usage or getting-started notes:
- text
- Choose **one** of the following backends based on your hardware:
- ### CPU support

- Source: https://github.com/danielgatis/rembg
- Extracted from upstream docs: https://raw.githubusercontent.com/danielgatis/rembg/HEAD/README.md

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/rembg-ai-background-removal-cli/)

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.