For the complete documentation index, see llms.txt. This page is also available as Markdown.

Mobb CLI Overview (new @mobb.ai/cli)

The Mobb CLI distributed as a standalone binary through the @mobb.ai/cli npm package. Same commands as the mobbdev package, no Node.js runtime required.

The community edition version of Mobb, or what we called Bugsy, is a command-line interface (CLI) tool that provides automatic security vulnerability remediation for your code.

What changed compared to npx mobbdev@latest

npx mobbdev@latest
npx @mobb.ai/cli@latest

What is installed

JavaScript package plus its npm dependency tree

A single prebuilt binary for your platform

Node.js at runtime

Required (a supported Node.js version)

Not required — the runtime is embedded in the binary

Node.js to run npx

Required

Required only because npx itself is npm tooling (Node.js >= 14)

Commands and flags

Full set

Same set

Download size

Small package, many transitive dependencies

One platform binary (roughly 100 MB unpacked), cached by npm/npx after the first run

Because the binary embeds its own runtime, @mobb.ai/cli is the better choice for CI runners and locked-down environments where installing a Node.js dependency tree is slow or restricted, or where the available Node.js version is too old for the mobbdev package.

Supported platforms

@mobb.ai/cli declares one platform package per target and npm installs exactly the one matching your machine:

Operating system
Architecture

Linux

x64

Linux

arm64

macOS

arm64 (Apple silicon)

macOS

x64 (Intel)

Windows

x64

On a platform not listed above, use the Node.js package instead — same CLI, same commands: npx mobbdev@latest.

A few features behave differently in the binary, and a couple of commands are npm-package only. See Distribution differences in the troubleshooting guide.

Installation and invocation

Run it directly with npx, with no install step:

In PowerShell, quote the package name: npx "@mobb.ai/cli@latest" --help

The package is named @mobb.ai/cli but the command it installs is still called mobbdev, so existing scripts that call mobbdev keep working.

Modes

Bugsy's main modes:

  • Scan and Fix: Mobb scans your repository natively using its built-in Opengrep engine and generates fixes. No external SAST tool or pre-generated report required. Supports a diff-aware mode (--baseline-commit) for PR-gated scans, a report-only mode (--scan-only), and policy enforcement (--gate).

  • Analyze: Bring your own SAST report (Checkmarx, Snyk, Fortify, CodeQL, SonarQube, Semgrep, Datadog, Black Duck) and Mobb generates fixes from it.

  • Scan: Mobb wraps an external SAST CLI (Checkmarx, Snyk, etc.) to run the scan and then generate fixes.

Bugsy also has a review mode, an add-scm-token mode, a convert-to-sarif mode, and a scan-skill mode.

To check out all the supported modes, run the following help command:

This will show you Bugsy's usage help:

Not every command in that list belongs to the CLI fix workflow. mcp backs Mobb Vibe Shield (MVS), and the claude-code-* and windsurf-intellij-* commands belong to Mobb Tracy — see those sections rather than this one.

The examples printed inside the help text still say npx mobbdev@latest. Substitute npx @mobb.ai/cli@latest — the arguments are the same.

On Windows the help output names the program mobbdev.exe rather than mobbdev, because the standalone binary reports its own filename. This is cosmetic — the command you type is still mobbdev.

Debug Mode

To enable debug output, set DEBUG=* in your environment variable before running the Mobb CLI.

For example:

Inline (temporary)

Or persistent (Session-Wide)

HTTPS_PROXY settings

To enable the use of HTTPS_PROXY, set the value of the environment variable before running the Mobb CLI.

For example:

Inline (temporary)

Or persistent (Session-Wide)

Mobb CLI will accept both https:// or http:// URLs in HTTPS_PROXY. An HTTP_PROXY variable is also honored.

Location of the Mobb Access Token

Bugsy automatically stores your Mobb access token in a JSON file whose name includes the Mobb API host it belongs to, so tokens for different Mobb tenants never overwrite each other. The file is named mobbdev-<API_HOST>.json, where <API_HOST> is the hostname from API_URL with every . replaced by _.

For the default (multi-tenant) Mobb cloud, API_URL is https://api.mobb.ai/v1/graphql, so the file is mobbdev-api_mobb_ai.json:

  • Windows: C:\Users\<USERNAME>\.config\configstore\mobbdev-api_mobb_ai.json

  • Mac / Linux: ~/.config/configstore/mobbdev-api_mobb_ai.json

If you point the CLI at a single-tenant instance, the filename follows that host instead. For example API_URL=https://api-st-tenantname.mobb.ai/v1/graphql produces mobbdev-api-st-tenantname_mobb_ai.json. Note that only dots become underscores — hyphens in the hostname are preserved.

To update your Mobb access token, edit the file in a text editor and replace the value YOUR_MOBB_API_TOKEN with your Mobb access token as shown in the code snippet below.

If you haven't generated your Mobb access token yet, click here to learn how to generate one.

To remove the Mobb access token, delete the mobbdev-<API_HOST>.json file from your file system.

Single-Tenants

Below are single-tenant-specific instructions

Environment Variables Settings for Mobb Single-Tenants

If your Mobb instance is in a single-tenant environment, you must configure the following environment variables to ensure Bugsy is communicating with the correct Mobb tenant instance.

API_URL=https://api-st-<YOUR_CUSTOM_MOBB_DOMAIN>/v1/graphql

WEB_APP_URL=https://<YOUR_CUSTOM_MOBB_DOMAIN>

Note: Replace <YOUR_CUSTOM_MOBB_DOMAIN> with your Mobb tenant domain.

Here is a sample code snippet. In this example, our Mobb domain is TENANT_NAME.mobb.ai:

  1. Create a .env file in your project directory:

  1. Install dotenv if needed:

  1. Modify your script to load .env:

  1. Run Mobb CLI

Last updated