How to Detect Kilo Code CLI on Employee Laptops

Kilo Code is an open-source coding agent that started as a VS Code extension and now ships a terminal agent. The CLI installs from npm and adds a kilo command, a name it shares with a well-known small text editor. Here are the traces per OS, a read-only check, and what deserves a finding.

By Kuntur team · Published

How to check if Kilo Code CLI is installed: look for the global npm package @kilocode/cli, a kilocode command, and the config file ~/.config/kilo/kilo.json (or .jsonc). A bare kilo command is not proof: the kilo text editor uses the same name.

What Kilo Code CLI is and why security teams care

Kilo Code CLI reads and edits code, runs commands and calls MCP servers as the logged-in user, with the model provider the user connects.

Where Kilo Code CLI leaves traces

SignalWindowsmacOSLinux
npm global package@kilocode/cli under %APPDATA%\npm\node_modules@kilocode/cli under npm root -gSame as macOS
Commandskilo and kilocode (both from the package)
Processkilo running from inside the @kilocode package, or node with @kilocode/cli
Global config%USERPROFILE%\.config\kilo\kilo.json or .jsonc (Kilo's settings docs name this folder; it moves only if XDG_CONFIG_HOME is set)~/.config/kilo/kilo.json or .jsonc (legacy opencode.json)Same as macOS
Data and credentials~/.local/share/kilo/, with auth.json (written with 0600 permissions)
Project fileskilo.json or kilo.jsonc, .kilo/ and .kilocode/ in a repository

Lookalike: kilo is also a small open-source text editor that people build and put in /usr/local/bin. Kuntur's rule never matches a bare kilo: it needs the npm package, the kilocode command, a kilo process from inside the @kilocode package, or the Kilo config files. The Kilo Code VS Code extension (kilocode.kilo-code) is reported separately as an extension.

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 (it adds both "kilo" and "kilocode")
Test-Path "$env:APPDATA\npm\node_modules\@kilocode\cli"
Get-Command kilocode, kilo -ErrorAction SilentlyContinue | Select-Object Source   # a bare "kilo" may be the text editor

# 2. Running now? Only count kilo from inside the npm package
Get-CimInstance Win32_Process |
  Where-Object { $_.CommandLine -like '*@kilocode*' -or $_.ExecutablePath -like '*@kilocode*' } |
  Select-Object ProcessId, Name, ExecutablePath

# 3. Config and credentials (file names only: auth.json holds credentials)
foreach ($f in "$env:USERPROFILE\.config\kilo\kilo.json", "$env:USERPROFILE\.config\kilo\kilo.jsonc",
               "$env:USERPROFILE\.local\share\kilo\auth.json") {
  if (Test-Path $f) { $f }
}

# 4. Settings worth a finding (labels only, no values)
foreach ($f in "$env:USERPROFILE\.config\kilo\kilo.json", "$env:USERPROFILE\.config\kilo\kilo.jsonc") {
  if (Test-Path $f) {
    if (Select-String -Path $f -Pattern '"permission"\s*:\s*"allow"' -Quiet) { "  $f : permission allow (all)" }
    if (Select-String -Path $f -Pattern '"mcp"\s*:' -Quiet) { "  $f : has mcp servers" }
  }
}

macOS and Linux (bash)

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

# 1. Installed? The npm package (it adds both "kilo" and "kilocode")
ls -d "$(npm root -g 2>/dev/null)/@kilocode/cli" 2>/dev/null
command -v kilocode kilo   # a bare "kilo" may be the kilo text editor: check the path

# 2. Running now? Only count kilo from inside the npm package
pgrep -fl '@kilocode'

# 3. Config and credentials (file names only: auth.json holds credentials)
ls -l "$HOME/.config/kilo/kilo.json" "$HOME/.config/kilo/kilo.jsonc" \
      "$HOME/.local/share/kilo/auth.json" 2>/dev/null

# 4. Settings worth a finding (labels only, no values)
for f in "$HOME/.config/kilo/kilo.json" "$HOME/.config/kilo/kilo.jsonc"; do
  [ -f "$f" ] || continue
  grep -Eq '"permission"[[:space:]]*:[[:space:]]*"allow"' "$f" && echo "  $f: permission allow (all)"
  grep -Eq '"mcp"[[:space:]]*:' "$f" && echo "  $f: has mcp servers"
done

With nvm, fnm or Volta, also list ~/.nvm/versions/node/*/lib/node_modules/@kilocode. For the extension, see how to list AI extensions in VS Code.

Settings worth a finding

SettingWhat it meansWhat Kuntur reports
"permission": "allow" in kilo.jsonAll permissions allowed at onceAGENT_PERMISSIONS_BYPASS
Auto-approve turned on with /auto-approvePermission prompts are approved automatically; saved to the global config as "permission": {"*": {"*": "allow"}}AGENT_PERMISSIONS_BYPASS, unless another rule still asks or denies
mcp servers in kilo.jsonPrograms or URLs the agent can callMCP inventory and MCP findings
Provider keys in auth.jsonCredentials in a plain fileAI_API_KEY_IN_APP_CONFIG (masked)

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 Kilo Code 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 Kilo Code CLI on every endpoint.

How to restrict Kilo Code CLI with Intune or Jamf

Kuntur does not block, restrict or uninstall anything. If your policy says Kilo Code 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.

How Kuntur detects Kilo Code CLI

Kuntur's catalog identifies Kilo Code CLI by the npm package @kilocode/cli, the kilocode command, processes running from the package, and the Kilo config and data folders, never by a bare kilo. The agent also reads MCP servers from ~/.config/kilo/kilo.json (and the legacy opencode.json there), project kilo.json files and the extension's MCP settings, and checks auth.json for provider keys (masked), for every user profile.

To check one machine now, the free Kuntur scanner lists Kilo Code 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 Kilo Code 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 Kilo Code CLI installed?
As the global npm package @kilocode/cli, which adds the kilo and kilocode commands. Its config is in ~/.config/kilo/ and its data and credentials in ~/.local/share/kilo/.
How do I check if Kilo Code CLI is installed?
Look for the npm package @kilocode/cli, a kilocode command and ~/.config/kilo/kilo.json. If command -v kilo points outside the npm folder, it is probably the kilo text editor.
Does Kilo Code CLI have an auto-approve mode?
Yes. /auto-approve toggles auto-approval of all permission prompts and saves it to the global config, "permission": "allow" allows everything, and kilo run --auto runs autonomously (anything not auto-approved is rejected).
Where does Kilo Code store MCP servers?
Under the mcp key of kilo.json or kilo.jsonc, globally in ~/.config/kilo/ or in a project. The VS Code extension keeps its own mcp_settings.json in the editor's storage.

Sources

  1. Kilo Code CLI documentation (install, config, auto-approve)
  2. Kilo blog: config and data folders, auth.json
  3. @kilocode/cli on npm

Detect other AI tools:

Related guides: