Build remove.bg
YESreplaces $9/mosaves $108/yrback to the verdict
Background removal on your own machine: rembg behind a CLI and a localhost page with drag-and-drop, batch processing, background replacement and export at full resolution. Nothing is uploaded anywhere.
Before step 1
Everything below is assumed from the first step. Tick each one when you actually have it, not when you plan to.
- installfree
Why Every step below is a command you type or a file you edit.
Get it VS Code (code.visualstudio.com), Cursor or Zed. Open a folder for the project and use the editor's built-in terminal. open ↗
Verify
You can open a folder and run a command in its terminal - installfree
Why History for your code, and the way most hosts deploy.
Get it Install from git-scm.com or with your package manager, then run git init in the project folder once it exists. open ↗
Verify
git --version prints a version - installfree
Why rembg is a Python package.
Get it python.org or your package manager; use a virtual environment. open ↗
Verify
python3 --version prints 3.11 or higher - installfree, a few GB of disk
Why The whole engine. Models download on first use (hundreds of MB).
Get it python3 -m venv .venv && source .venv/bin/activate && pip install 'rembg[cli]' onnxruntime open ↗
Verify
rembg --help prints usage - have readyfree
Why Each phase is judged on real results.
Get it Three photos.
Environment variables
These go in a .env file the app reads at startup. The pack's .env.example is this table as a file · copy it, never commit the filled-in version.
| Variable | Needed | Example | Where the value comes from |
|---|---|---|---|
PORT | required | 8000 | Localhost port for the page. |
REMBG_MODEL | optional | isnet-general-use | Default model; birefnet for hair, u2net for speed. |
MODEL_DIR | optional | ~/.u2net | Where rembg stores downloaded models. |
The build, in order
The CLI
cut in.jpg out.png with model and alpha-matting flags.
- terminal
python3 -m venv .venv && source .venv/bin/activate pip install 'rembg[cli]' onnxruntime pillow
done when · tick each as it passesBatch
The page
Drop, paste, pick; before/after; only localhost in the network tab.
done when · tick each as it passesBackgrounds and export
Replace with color, gradient or image; export at full size; copy.
done when · tick each as it passesPackage
Run it for a teamproduct builder
A shared instance on your network with a GPU if you have one.
done when · tick each as it passes
That is the whole plan for remove.bg. What it deliberately does not cover is below · check the gaps before you call it a replacement.
- Their edge quality on hair and glass.
- Plugins, API scale, GPU batch processing.
- edge quality on hair, fur and glass
- the Photoshop and Figma plugins
- the API at scale
- GPU speed for batches
- A Photoshop-style refine-edge brush
- A watch-folder mode
Need the files? The project pack on the verdict page hands your agent the whole brief · more photo editing.