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.
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.
- Invisible installs. It is a global npm package that runs under
node; nothing lands in Programs and Features or/Applications. - Auto-approve on by default for tasks. Cline's CLI reference lists
--auto-approvewith a default oftrue(false in ACP mode) and says a prompt passed on the command line starts in act mode with auto-approve enabled. - Keys on disk.
~/.cline/data/settings/providers.jsonholds API keys and provider configuration in a plain file.
Where Cline CLI leaves traces
| Signal | Windows | macOS | Linux |
|---|---|---|---|
| npm global package | cline under %APPDATA%\npm\node_modules, shim %APPDATA%\npm\cline.cmd | cline under npm root -g | Same as macOS |
| Process | node.exe with node_modules\cline\ in the command line | node 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 folders | CLINE_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
| Setting | What it means | What Kuntur reports |
|---|---|---|
API key in providers.json | A long-lived provider key in a plain file | AI_API_KEY_IN_APP_CONFIG (masked) |
mcpServers in cline_mcp_settings.json | Programs or URLs the agent can call, often with tokens in env | MCP inventory, MCP_PLAINTEXT_SECRET, MCP_AUTO_APPROVE for servers whose tools are pre-approved |
Tasks run with the default --auto-approve | Tool calls in a command-line task run without asking | Not 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:
- Windows with Intune: Detect AI tools with Intune Remediations (detection-only script, results in the device status column).
- Windows with NinjaOne: Inventory AI tools with NinjaOne (writes a summary to a device custom field).
- macOS with Jamf Pro: Find AI tools with a Jamf Pro extension attribute (plus a Smart Group to act on it).
- macOS with Iru (Kandji): Detect AI tools with an Iru custom script (with an allowlist).
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.
- Windows (Intune): an App Control for Business or AppLocker deny rule on the binary, by publisher, path or hash, in audit mode first. How to restrict Claude Code with Intune walks through the same steps for another terminal agent; swap in the paths from the table above.
- macOS (Jamf Pro): a Restricted Software record with the exact process name. How to restrict Claude Code with Jamf Pro shows how to find the name on a test Mac and what the record will not catch.
- npm installs run under Node. A rule on the tool's own binary does not apply to
node, and denying Node breaks every JavaScript developer. For node-hosted installs, vendor settings that users cannot override are the more practical control.
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:
- Download scan.ps1.
- Read it. It's plain text; here's what it does.
- Check its SHA-256 against the published hash:
Get-FileHash .\scan.ps1 -Algorithm SHA256 - Run it:
powershell -ExecutionPolicy Bypass -File .\scan.ps1
Windows shortcut, if you trust the source (PowerShell)
irm https://app.kuntur.io/scan.ps1 | iexmacOS and Linux (Terminal)
curl -fsSL https://app.kuntur.io/scan.sh | shIt 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\clineon Windows, or undernpm root -gon 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 clineon Windows orcommand -v clineon macOS and Linux, and look for the npm packagecline. The~/.clinefolder on its own can come from the VS Code extension. - Does Cline CLI auto-approve tool calls?
- Cline's CLI reference lists
--auto-approvewith a default oftrue(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 asAI_API_KEY_IN_APP_CONFIG; it never sends the key itself.
Sources
- Cline CLI configuration (folders, providers.json, MCP settings)
- Cline CLI reference (--auto-approve, --config)
- Cline YOLO mode (extension)
- cline on npm
Detect other AI tools:
Related guides: