How to Detect Cline CLI on Employee Laptops

Cline started as a VS Code extension and now also ships a terminal agent, installed from npm without admin rights. Both share one data folder, which matters when you count installs. Here are the traces per OS, a read-only check, and what deserves a finding.

By Kuntur team · Published

How to check if Cline CLI is installed: look for the global npm package cline (%APPDATA%\npm\node_modules\cline on Windows, npm root -g elsewhere) and a cline command on PATH. The ~/.cline folder alone is not proof: the Cline extension and SDK write there too.

What Cline CLI is and why security teams care

Cline CLI is the command-line version of the Cline coding agent. It reads and edits files, runs commands and calls MCP servers as the logged-in user, using whichever model provider the user configures.

Where Cline CLI leaves traces

SignalWindowsmacOSLinux
npm global packagecline under %APPDATA%\npm\node_modules, shim %APPDATA%\npm\cline.cmdcline under npm root -gSame as macOS
Processnode.exe with node_modules\cline\ in the command linenode with node_modules/cline/Same as macOS
Data folder (shared with the extension and SDK)%USERPROFILE%\.cline\data~/.cline/data~/.cline/data
Provider keys~/.cline/data/settings/providers.json
MCP servers~/.cline/data/settings/cline_mcp_settings.json
Logs~/.cline/data/logs/cline.log, or CLINE_LOG_PATH
Moved foldersCLINE_DIR (or --config) replaces ~/.cline; CLINE_DATA_DIR replaces ~/.cline/data
Project files.cline/ at the repository root, and .clinerules instructions

The Cline VS Code extension (saoudrizwan.claude-dev) is a separate install with its own MCP file under the editor's globalStorage. Kuntur reports the extension and the CLI as two tools, and does not count ~/.cline as proof of the CLI because newer extension builds write there too.

Check one machine

Both checks only read files and the process table. They send nothing over the network, change nothing, and print paths and labels only, never the contents of a settings or credentials file.

Windows (PowerShell)

# Read-only, no network. Run as the user (not SYSTEM). Prints paths only.

# 1. Installed? The npm package "cline" and its shim
Test-Path "$env:APPDATA\npm\node_modules\cline"
Get-Command cline -ErrorAction SilentlyContinue | Select-Object Source

# 2. Running now? The CLI runs under node
Get-CimInstance Win32_Process -Filter "Name = 'node.exe'" |
  Where-Object { $_.CommandLine -like '*node_modules\cline\*' } | Select-Object ProcessId, ExecutablePath

# 3. Data folder shared by the CLI, the extension and the SDK (file names only)
$d = "$env:USERPROFILE\.cline\data\settings"
foreach ($n in 'providers.json', 'cline_mcp_settings.json', 'global-settings.json') {
  if (Test-Path "$d\$n") { "$d\$n" }   # providers.json holds provider API keys: do not print it
}
Get-Item "$env:USERPROFILE\.cline\data\logs\cline.log" -ErrorAction SilentlyContinue | Select-Object FullName, LastWriteTime

# 4. Project-level config in a repository (run from the repo root)
Test-Path .\.cline

macOS and Linux (bash)

# Read-only, no network. Run as the user. Prints paths only.

# 1. Installed? The npm package "cline" and the command on PATH
ls -d "$(npm root -g 2>/dev/null)/cline" 2>/dev/null
command -v cline

# 2. Running now? The CLI runs under node
pgrep -fl 'node_modules/cline/'

# 3. Data folder shared by the CLI, the extension and the SDK (file names only)
for n in providers.json cline_mcp_settings.json global-settings.json; do
  f="$HOME/.cline/data/settings/$n"
  [ -f "$f" ] && echo "$f"   # providers.json holds provider API keys: do not print it
done
ls -l "$HOME/.cline/data/logs/cline.log" 2>/dev/null

# 4. Project-level config in a repository (run from the repo root)
ls -d ./.cline 2>/dev/null

With nvm, fnm or Volta each Node version has its own global packages, so also list ~/.nvm/versions/node/*/lib/node_modules/cline. For the extension, see how to list AI extensions in VS Code.

Settings worth a finding

SettingWhat it meansWhat Kuntur reports
API key in providers.jsonA long-lived provider key in a plain fileAI_API_KEY_IN_APP_CONFIG (masked)
mcpServers in cline_mcp_settings.jsonPrograms or URLs the agent can call, often with tokens in envMCP inventory, MCP_PLAINTEXT_SECRET, MCP_AUTO_APPROVE for servers whose tools are pre-approved
Tasks run with the default --auto-approveTool calls in a command-line task run without askingNot visible in a file: only process command lines from your EDR show how it was run

In the extension, Cline also documents a YOLO mode ("Auto Approve on steroids") under Settings, Features; that setting belongs to the editor extension, not the CLI.

Find it across a fleet

The commands above answer the question for one laptop. Across a fleet, run the same read-only checks from the management tool you already use and collect one line per device. These guides show how to deploy a read-only script and read the results; their ready-made scripts cover the most common AI tools, so paste the Cline CLI checks from this page into the same script:

MDM scripts usually run as SYSTEM or root, where %USERPROFILE% and ~ point at the wrong home folder, so loop over every profile under C:\Users, /Users or /home and replace the home path in each check. The Kuntur agent already does this for Cline CLI on every endpoint.

How to restrict Cline CLI with Intune or Jamf

Kuntur does not block, restrict or uninstall anything. If your policy says Cline CLI should not run, the restriction is done with your MDM or with the vendor's own admin controls, and the inventory tells you who the rule will affect before you enforce it.

Because the CLI runs under node, a binary rule does not catch it. In practice teams either allow it with an approved provider and no plain-text keys, or remove the npm package through their software deployment tool and keep watching the inventory for reinstalls.

How Kuntur detects Cline CLI

Kuntur's catalog identifies Cline CLI by the global npm package cline, the cline command, and a node process running from node_modules/cline/, and keeps the VS Code extension as a separate tool. The agent also reads cline_mcp_settings.json (CLI and extension) and checks providers.json for provider keys, reporting them masked, for every user profile.

To check one machine now, the free Kuntur scanner lists Cline CLI together with every other AI tool, extension, local model and MCP server it finds:

  1. Download scan.ps1.
  2. Read it. It's plain text; here's what it does.
  3. Check its SHA-256 against the published hash: Get-FileHash .\scan.ps1 -Algorithm SHA256
  4. Run it: powershell -ExecutionPolicy Bypass -File .\scan.ps1

Windows shortcut, if you trust the source (PowerShell)

irm https://app.kuntur.io/scan.ps1 | iex

macOS and Linux (Terminal)

curl -fsSL https://app.kuntur.io/scan.sh | sh

It needs no account and no admin rights, writes an HTML report to the Desktop (or home folder) and uploads nothing. You can read scan.ps1 or scan.sh before running it; what it collects is documented.

Across a fleet, the Kuntur agent reports the same inventory for every user profile on Windows, macOS and Linux. You mark Cline CLI approved or unauthorized once for the organization, the dashboard shows which machines carry it, and every decision lands in an audit log.

Free for up to 5 endpoints. Pro is US$3 per endpoint per month (or US$30 per endpoint per year) for 10 to 30 endpoints. The trial needs no credit card. Kuntur detects and reports; it does not block or uninstall anything.

FAQ

Where is Cline CLI installed?
As the global npm package cline: %APPDATA%\npm\node_modules\cline on Windows, or under npm root -g on macOS and Linux. Its data is in ~/.cline/data, which it shares with the Cline extension and SDK.
How do I check if Cline CLI is installed?
Run Get-Command cline on Windows or command -v cline on macOS and Linux, and look for the npm package cline. The ~/.cline folder on its own can come from the VS Code extension.
Does Cline CLI auto-approve tool calls?
Cline's CLI reference lists --auto-approve with a default of true (false in ACP mode), and a prompt passed on the command line starts in act mode with auto-approve enabled. Treat command-line tasks as running without prompts unless your users pass --auto-approve false.
Where does Cline store API keys?
In ~/.cline/data/settings/providers.json. Kuntur checks that file for provider keys and reports them masked as AI_API_KEY_IN_APP_CONFIG; it never sends the key itself.

Sources

  1. Cline CLI configuration (folders, providers.json, MCP settings)
  2. Cline CLI reference (--auto-approve, --config)
  3. Cline YOLO mode (extension)
  4. cline on npm

Detect other AI tools:

Related guides: