What do you want to do?
4 use cases
-
Remove backgrounds from a whole folder of photos offline
Install the desktop app and cut out the background from many images in one batch, with no uploads.
View prompt
Using the unbagrnd app from github.com/zidniryi/unbagrnd, process every image in <folder path> in batch mode and export the results as a ZIP. Expected output: one ZIP file containing one cutout per source image. Verify that the number of images in the ZIP matches the number of source images.
-
Clean up hair edges and export a mask for design tools
Refine a cutout's outline and hand edits, then save the alpha channel as a black-and-white matte.
View prompt
Using the unbagrnd app from github.com/zidniryi/unbagrnd, refine the cutout of <image path> and export its alpha channel as a black-and-white matte. Expected output: a grayscale image where the subject is white and the background is black. Verify that the matte contains only black and white pixels.
-
Run the desktop app from source for development
Install Node.js and Rust, then start Unbagrnd in dev mode with hot reload.
View prompt
Clone github.com/zidniryi/unbagrnd, install dependencies with npm, and start the app with npm run tauri dev. Expected output: the unbagrnd window opens. Verify that the app starts without build errors and that the frontend loads.
-
Host a private background removal API with Docker
Run the Axum REST API on your own server, then create API keys for your apps.
View prompt
Clone github.com/zidniryi/unbagrnd, set UNBAGRND_ADMIN_KEY in .env, and start the stack with docker compose up --build. Expected output: a health response of {"status":"ok"} from http://localhost:8080/health. Verify the response and then use a generated key to call POST /v1/remove-background with an image from <image path>.
How to use Unbagrnd
- Check you have what it needs: A Windows, macOS (Apple Silicon), Linux, or Android device; Internet access once, to download the AI model on first use (about 170 MB); For building from source: Node.js 20+, Rust 1.88+ via rustup, and the Tauri prerequisites for your OS.
- Open zidniryi/unbagrnd on GitHub and read the README and license.
- Download the installer for your platform from the Releases page and install it.
- Open Unbagrnd, choose the batch option, and select your folder of images.
- In Settings, pick the output format (PNG, WebP, or SVG) and choose a model that fits your speed and accuracy needs.
- Optionally set one background color and a drop shadow for the whole batch, and set an output name template such as {name}.
These steps come from our top use case, Remove backgrounds from a whole folder of photos offline, which also has a copy-paste agent prompt.
Get 5 new use cases every morning. Free, one short email, unsubscribe anytime.
Get them freeAbout this repo
- Who it is forDesigners, photographers, and sellers who need to cut out many images without uploading them, and developers who want a self-hosted background removal service.
- Why it is hot
- LanguageRust
- Sourcegithub.com/zidniryi/unbagrnd · Back to Hot repos
Requirements
- A Windows, macOS (Apple Silicon), Linux, or Android device
- Internet access once, to download the AI model on first use (about 170 MB)
- For building from source: Node.js 20+, Rust 1.88+ via rustup, and the Tauri prerequisites for your OS
- For the API: Docker with docker compose, and openssl to generate an admin key
Maintain Unbagrnd? Add the Featured on Deduped badge
Paste this into your README:
[](https://dedupedai.com/use-cases/zidniryi-unbagrnd/?ref=badge)
Questions about Unbagrnd
What is Unbagrnd?
unbagrnd is a free, open-source desktop app, with a self-hostable REST API, that removes image backgrounds using an AI model that runs on your own device. It is an open-source project on GitHub: https://github.com/zidniryi/unbagrnd.
Who is Unbagrnd for?
Designers, photographers, and sellers who need to cut out many images without uploading them, and developers who want a self-hosted background removal service.
What can I do with Unbagrnd?
4 use cases so far, for example: Remove backgrounds from a whole folder of photos offline; Clean up hair edges and export a mask for design tools; Run the desktop app from source for development. Each has steps and a copy-paste agent prompt.
What do I need to run Unbagrnd?
A Windows, macOS (Apple Silicon), Linux, or Android device; Internet access once, to download the AI model on first use (about 170 MB); For building from source: Node.js 20+, Rust 1.88+ via rustup, and the Tauri prerequisites for your OS; For the API: Docker with docker compose, and openssl to generate an admin key.
What are alternatives to Unbagrnd?
Other hot AI repos in Content: Voice Studio, Anatomy, Comfy UI, Hyperframes, Earshot.
Is Unbagrnd safe to run?
Deduped does not own, audit or vouch for it. Read the README and license, run it on your own systems first and review every command before you run it.