Cut a subject out of a photo with BiRefNet general. Local rembg alternative. No API, no upload. The 928 MB ONNX file stays on disk. This page does not run it.
One-line pitch: offline background removal on your machine. First run downloads BiRefNet general. After that you cut locally.
Hosted cutout tools take the file. offline-bg-removal is a rembg alternative that stays on disk: local-bg-removal, self-hosted-cutout, on-device-bg-removal, no-api-cutout.
onnx-cutout with BiRefNet general. First run writes ~/.offline-bg-removal/models/birefnet_general.onnx (~928 MB). That file is not in git and not in the browser.
Clone the repo. pnpm install && pnpm -r build. Bin names: offline-bg-removal and obgr.
Missing weights download once to ~/.offline-bg-removal/models/. Or pass --model / OFFLINE_BG_REMOVAL_MODEL.
offline-bg-removal cut photo.jpg writes a PNG with alpha. Local web UI can drop a file on localhost.
CLI and the local UI read a file on disk. There is no remote cutout endpoint. This GitHub Pages site is marketing and install copy only.
No telemetry, no login, no cloud folder. on-device-cutout means the ONNX session runs where you installed it.
The 928 MB BiRefNet file lives under your home directory. It is gitignored. Do not commit it. Do not put it in the Pages folder.
| Package | Purpose |
|---|---|
| packages/core | ONNX runner. BiRefNet general only. ensureModel + removeBackground. |
| packages/cli | offline-bg-removal / obgr. Commands: cut, serve, demo. |
| apps/web | Local drop-image UI on localhost. Not this Pages site. |
| site/ | This landing page. Publish the folder as GitHub Pages. |
After the first download, local-background-removal is just a command. photo-cutout-local, birefnet-bg-removal, rembg-local: same binary.