head to head · open source
rembg vs kokon
rembg has 25,860 GitHub stars, 2,535 forks, 3 open issues and last shipped 8 days ago. kokon has 517 stars, 57 forks, 14 open issues and last shipped 3 days ago. rembg leads on adoption by 4,902% (25,860 vs 517 stars). rembg is written in Python under MIT; kokon is written in Rust under AGPL-3.0. rembg has attracted 10% as many forks as stars, kokon 11%. kokon was the more recently maintained of the two, and both are self-hostable with no licence fee.
Two open source projects, one decision. Both are free and self-hostable — the differences are community size, license terms, language stack and release pace.
← all 20902 open source comparisons
Side by side
| rembg | kokon | |
|---|---|---|
| GitHub stars | ★ 26K | ★ 517 |
| License | MIT | AGPL-3.0 |
| Written in | Python | Rust |
| Last push | 2026-11-24 | 2026-11-29 |
| Forks | ⑂ 2.5K | ⑂ 57 |
| Self-hosting | Yes | Yes |
| Data ownership | Your server | Your server |
pick rembg if
- You weight community size — 26K stars and counting
- You want the MIT license terms
- Your stack matches Python
- You value the larger contributor base for long-term maintenance
pick kokon if
- You want the kokon feature set and don't need the biggest community
- You prefer the AGPL-3.0 license terms
- Your stack matches Rust
- You evaluated both and kokon fits your workflow better
About rembg
Rembg is a tool to remove image backgrounds. It can be used as a CLI, Python library, HTTP server, or Docker container. Sponsors PhotoRoom Remove Background API Fast and accurate background remover API If this project has helped you, please consider making a donation. Requirements bash pip install "rembg[gpu]" for library pip install "rembg[gpu,cli]" for library + cli bash pip install "rembg[rocm]" for library pip install "rembg[rocm,cli]" for library + cli shell rembg help shell rembg help shell curl s rembg i output.png shell rembg i path/to/input.png path/to/output.png shell rembg i path/to/input.png →…
read the full rembg overview →
About kokon
Edit photos by describing the change, on your own computer. A free, open source alternative to Nano Banana and Generative Fill that runs on your own GPU. One installer for Windows, Mac and Linux sets up the best open model for your hardware. Brush an area, type what you want, get the edit. Your photos stay with you, and you can edit as often as you like. Website · Install · New in 0.12 · Phone & server · Features · Examples · AI agents · FAQ · Prompt guide · How it works Watch in 4K on YouTube · What you can do with Kokon (85 s) · What's new in 0.12 Free and open source · about 12 GB of models downloaded on…
read the full kokon overview →
More in Miscellaneous
Related comparisons
More Photo & Video Editors projects
Compare either of these against the rest of the Photo & Video Editors field.
Frequently asked questions
Is rembg or kokon more popular?
rembg has 25,860 GitHub stars and kokon has 517. rembg has the larger community by that measure.
Are rembg and kokon free?
Both are open source. rembg is licensed under MIT and kokon under AGPL-3.0. Neither carries a licence fee.
What is the difference between rembg and kokon?
rembg is written in Python and kokon in Rust. The practical differences are community size, licence terms, language stack and release cadence — all compared in the table above.
Which should I choose, rembg or kokon?
Choose rembg if you want the larger community (25,860 stars) or its MIT licence terms. Choose kokon if its feature set, stack or AGPL-3.0 licence fits better. Both are self-hostable.