Use Case
Segment Anything is a powerful AI agent skill that extends your assistant with new capabilities. Use SAM (Segment Anything Model) to remove the image background and extract the foreground subject as a transparent PNG. Suitable for background removal, image cutout, foreground subject extraction or image segmentation. This guide walks you through installing Segment Anything, configuring it for your setup, and running your first commands β so you can start getting value in minutes.
Install Segment Anything: npx clawhub@latest --dir ~/.claude/skills install segment-anything
Restart your AI client (Claude Code, Cursor, Gemini CLI, or OpenClaw)
Type a natural language request related to general tools to trigger Segment Anything
Review the output and refine your prompt for better results
Combine Segment Anything with other skills to build multi-step workflows
Copy these prompts and use them with your AI agent after installing Segment Anything
Help me get started with Segment Anything
What can Segment Anything do for my general tools workflow?
Show me an example of using Segment Anything
Select your agent
Option 1: Install via CLI (recommended)
Recommended (no pre-install needed)
npx clawhub@latest --dir ~/.claude/skills install segment-anythingOr via clawhub CLI (if already installed)
clawhub --dir ~/.claude/skills install segment-anythingβ οΈ Requires Node.js 18+. No Node? Use Option 2 below to download the ZIP instead. Install Node.js β
Option 2: Manual install (no Node required)
Download the ZIP, extract it, and place the folder at the path below. Restart your agent to activate.
Install path
~/.claude/skills/segment-anything/π‘Extract and place the folder at the path above, then restart your agent.