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.

This is the new distribution of the Mobb CLI. @mobb.ai/cli ships the CLI as a prebuilt standalone binary instead of a Node.js package. Both are released from the same source at the same version number, so the commands, flags, and behavior match. Only how the CLI reaches your machine changed.
The older Mobb CLI Overview page documents the mobbdev package and remains supported.
What changed compared to npx mobbdev@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
Supported platforms
@mobb.ai/cli declares one platform package per target and npm installs exactly the one matching your machine:
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.
Installation and invocation
Run it directly with npx, with no install step:
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:
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)
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.jsonMac / 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:
Create a
.envfile in your project directory:
Install
dotenvif needed:
Modify your script to load
.env:
Run Mobb CLI
Last updated