ClearCrowds

ClearCrowds CLI — Install with npm

Install the ClearCrowds CLI with npm or npx to edit photos, remove objects, resize images and run OCR from your terminal.

Edit local photos from your terminal or AI agent. ClearCrowds uploads the files you select, runs the requested API workflow, and downloads the result to your chosen path.

Install

Requires Node.js 20.19 or newer.

npm install --global clearcrowds
clearcrowds --help
clearcrowds --version

Or run without installing globally:

npx --yes clearcrowds --help

View clearcrowds on npm.

The package is a CLI, not an MCP server or JavaScript SDK. Developer API access requires an approved project and uses API Credits, separate from personal subscription credits. For personal subscription editing, use Connect an Agent.

Authorize this machine

On macOS, authorize your developer project in the browser:

clearcrowds login
clearcrowds doctor --json
clearcrowds whoami
clearcrowds credits

Browser login stores refresh credentials in macOS Keychain. login --no-browser prints the authorization URL instead of opening it. On Linux, Windows or CI, configure CLEARCROWDS_API_KEY through your environment or secret manager; browser login currently requires macOS. Do not paste keys into an agent conversation.

Edit a local image

clearcrowds presets --json
clearcrowds edit ./input.jpg --preset remove-crowds --output ./fixed.jpg
clearcrowds erase ./input.jpg --mask ./mask.png --output ./cleaned.jpg
clearcrowds resize ./fixed.jpg --width 1200 --height 630 --output ./social.jpg
clearcrowds ocr detect ./input.jpg --filter all --json
clearcrowds ocr replace --detection DETECTION_ID --candidate CANDIDATE_ID --text "New text" --output ./edited.jpg
clearcrowds jobs get JOB_ID --json
clearcrowds jobs cancel JOB_ID --json

Use the live presets catalog for available IDs and prices. edit accepts single-image workflows without additional form fields. OCR detection returns the IDs used by ocr replace. Supported input files are JPG, PNG, WebP and HEIF up to 25 MB.

Output paths are checked before a paid job starts. Existing files require --force; the input image cannot be overwritten. API errors return a nonzero exit status and machine-readable codes with --json. Insufficient API Credits do not trigger a purchase.

Reuse the same --idempotency-key and arguments when retrying an uncertain submission, or query the original job. A successful edit can incur credits even if downloading its result fails. Check the job before starting another paid edit.

Connect an agent client

clearcrowds setup --agent codex

Use claude-code or cursor for other supported clients. This explicitly installs the bundled Skill using a pinned skills installer, authorizes the CLI or uses an existing environment credential, and checks the connection. --no-login installs only the Skill. npm installation alone does not install Skills or open your browser.

Upgrade and uninstall

npm install --global clearcrowds@latest
clearcrowds logout
npm uninstall --global clearcrowds

Uninstalling does not revoke API keys or remove separately installed Skills. Manage these in the Developer console and agent client. For local testing, CLEARCROWDS_API_BASE_URL may point to a localhost backend; remote origins must use HTTPS.