Install a background removal skill in Claude Code 2027
Bria.ai

Updated 2026-12-01
TL;DR
Answer: Install Bria's remove-background skill with two Claude Code commands,
/plugin marketplace add Bria-AI/bria-skillthen/plugin install bria-ai@bria-skills. The skill calls the Bria API, which includes 100 free generations.Install paths: The plugin marketplace is the documented Claude Code path, a manual copy into
~/.claude/skills/is the folder route, andnpx skills addis documented for other agents.Key: A free key from platform.bria.ai, or device authorization inside the skill.
Local option: A skill based on rembg needs no API key and runs on your machine.
Batch: The free tier allows 10 requests per minute, so size a batch loop to that.
How do you find and install a background removal skill? Claude Code loads skills from folders, so installing one means putting a folder in the right place, and each path below does that. Bria wrote this guide and publishes one of the skills it covers, so the other options are listed with their own install commands and requirements for you to compare. The benchmark cited here is Bria's: blind votes from professional and casual users plus a VLM side-by-side, on 234 hard images at full resolution.
What is a background removal skill in Claude Code?
A background removal skill is a folder with a SKILL.md file that teaches Claude Code how to cut the background out of an image.
Claude Code's skills documentation says the frontmatter description helps Claude decide when to load a skill automatically, and the folder name becomes the slash command. The Agent Skills specification requires two frontmatter fields:
name: up to 64 characters, lowercase letters, digits and hyphens.description: up to 1024 characters.Optional folders:
scripts/,references/andassets/.
A skill that does background removal wraps either a hosted API or a local model. The skill file tells Claude which one to call and how.
Where do skills live in Claude Code?
Personal and project skills live in two folders: `~/.claude/skills/<skill-name>/SKILL.md` for your whole machine, and `.claude/skills/<skill-name>/SKILL.md` for one repository.
Location:
~/.claude/skills/<skill-name>/SKILL.md; Scope: All projects on the machine; Use it when: You cut backgrounds in many projectsLocation:
.claude/skills/<skill-name>/SKILL.md; Scope: This repository; Use it when: The whole team should get the skill with the repo
Source: Claude Code documentation, https://code.claude.com/docs/en/skills. Checked 2026-12-01.
The Bria README documents the plugin install through two /plugin commands. The folder name matters for the two folders above. A skill in a folder named remove-background becomes the slash command /remove-background.
Which background removal skills can you install?
Three background removal skills have documented install commands: Bria's remove-background, michaelboeding's background-remove, and agntswrm's agent-media.
Skill: remove-background (Bria-AI/bria-skill); Engine: Bria API, titled RMBG 2.0 in its SKILL.md; Needs: Bria API key; GitHub stars: 76; License: MIT
Skill: background-remove (michaelboeding/skills); Engine: rembg, local; Needs: Python 3.10 or later per the skill, pip, rembg 2.0.50 or later; GitHub stars: 30; License: MIT
Skill: image remove-background (agntswrm/agent-media); Engine: Local model by default, cloud via
--provider; Needs: Node 18+, FAL_API_KEY or REPLICATE_API_TOKEN for cloud; GitHub stars: 6; License: Apache-2.0
Source: each repository's README and SKILL.md, read 2026-12-01. Star counts are from that date.
Bria's skill uses RMBG 2.0 per its SKILL.md. Its repository is Bria-AI/bria-skill. The rest of this guide installs that skill, because it needs no local model download. The local alternative is covered in the batch and troubleshooting sections.
How do you install the Bria skill with the plugin marketplace?
Run two commands inside Claude Code: add the Bria marketplace, then install the plugin.
Open Claude Code in any project.
Add the marketplace:
/plugin marketplace add Bria-AI/bria-skillInstall the plugin:
/plugin install bria-ai@bria-skills
The Bria repository documents these two commands for Claude Code. The same pattern works for the rembg-based skill: /plugin marketplace add michaelboeding/skills, then /plugin install skills@michaelboeding-skills.
How do you install a skill on other agents or by manual copy?
Run `npx skills add bria-ai/bria-skill` if your agent is not Claude Code, or copy the skill folder into `~/.claude/skills/` for every project or `.claude/skills/` for one repository.
The Bria repository lists this command for other agents, and the agent-media skill publishes an npx skills add command too. Use npx skills add when your agent is not Claude Code.
Bria skill:
npx skills add bria-ai/bria-skillagent-media:
npx skills add agntswrm/agent-mediaagent-media CLI alternative:
npm install -g agent-media@latest
The Bria skill lives in the skills/remove-background folder of its repository, with its SKILL.md at skills/remove-background/SKILL.md. Clone or download the repository, then copy the remove-background folder so the result is ~/.claude/skills/remove-background/SKILL.md. Manual copy also lets you read and edit the skill file before you use it.
How do you set the Bria API key?
Get a free key from platform.bria.ai, or let the skill start device authorization.
Per the repository README, the key costs nothing at platform.bria.ai. The skill reads access_token and api_token entries from ~/.bria/credentials. If it finds neither, it starts device authorization.
Plan: Free; Requests per minute: 10
Plan: Pay as you go; Requests per minute: 60
Source: Bria docs, rate limits and errors. Checked 2026-12-01. The free plan includes 100 free generations.
Which model answers the request? The skill's SKILL.md names RMBG 2.0. RMBG 3.0 runs on the same Remove Background endpoint when a request includes "model": "RMBG3", and without it the API uses RMBG 2.0, per the RMBG 3.0 docs page. The skill's docs do not mention that parameter, so call RMBG 3.0 separately through the API.
RMBG 3.0 costs $0.018 per image on the Bria API, confirmed 2026-11-29, and the docs say RMBG 3.0 calls are priced separately from RMBG 2.0 calls. The RMBG 3.0 weights are non-commercial, and commercial use runs through the Bria API. See the RMBG 3.0 product page.
How do you run the first cutout?
Ask Claude Code in plain language, naming the image and the output you want.
Try a prompt like this: "Remove the background from product.jpg and save a transparent PNG." The skill accepts JPEG, PNG and WEBP input, including CMYK and RGBA, as a local path or a public URL. The output is a URL for a transparent PNG.
The skill also has a guided endpoint, /v2/image/edit/remove_background/guided, where a prompt says what to keep or drop. The plain endpoint is /v2/image/edit/remove_background. Guided requests are asynchronous and take about 15 to 20 seconds. If the guided endpoint returns a 404, the skill falls back to the plain one.
How do you batch a folder of images?
Ask Claude Code to loop over the folder, because the Bria skill batches through a shell loop.
A prompt such as "Remove the background from every JPEG in ./photos and save each as a PNG in ./cutouts" tells Claude to run the loop. Three limits shape the run:
Free tier: 10 requests per minute, so 100 images take at least 10 minutes.
Pay as you go: 60 requests per minute.
Guided mode: about 15 to 20 seconds per image, so use plain mode for large folders.
If you want no API calls, install the rembg-based skill. rembg is MIT licensed and runs models locally as ONNX, and the rembg repository lists Python 3.11 to 3.13 (the skill lists Python 3.10 or later). Install it with pip install rembg.
Models download on first use to ~/.rembg/models/, and rembg's default model is about 1.02 GB. The README notes that this default model needs a paid agreement for commercial use, so check the weights license of any model you pick.
How do you check the result?
Open the PNG and confirm it is transparent, then check the edges on a dark and a light background.
Ask Claude Code to confirm the file is a PNG with an alpha channel.
Place the cutout on a dark background and a light one to expose halos.
Compare hair and fine edges against the original at full size.
Re-run difficult images in guided mode and describe what to keep.
If a cutout is wrong, check the common causes:
Skill not found after a manual copy: confirm the folder is
~/.claude/skills/remove-background/SKILL.md.No key: run device authorization, or get a key at platform.bria.ai, instead of editing
~/.bria/credentialsby hand.Rate limit hit: slow the loop to 10 requests per minute on the free tier.
Guided 404: the skill falls back to the plain endpoint, so the result still arrives.
Which skill should you choose?
Choose Bria's remove-background skill by default, and pick another path only when your constraint is different.
For hard images, Bria's benchmark placed RMBG 3.0 first of 6 models, with an average rank of 1.51 across 234 hard images (see the full write-up). The benchmark scores models, not skills, and this skill names RMBG 2.0.
Choose Bria's skill if you want a hosted API, two install commands and 100 free generations.
Choose the rembg-based skill if you need no API key and can run models on your own machine.
Choose agent-media if you want a local model by default and a cloud provider option.
Choose manual copy if plugin marketplaces are blocked or you want to edit the skill file.
Choose RMBG 3.0 through the API if hard images matter more than setup, and check its license terms first.





