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.
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.
- Invisible installs.
npm install -g @kilocode/cli, no admin rights, nothing in Programs and Features. - Approve-everything options. The docs describe
/auto-approve(saved to the global config),"permission": "allow"in the config to allow all permissions at once, andkilo run --autofor autonomous runs. - Credentials on disk. Credentials live in
auth.jsonunder~/.local/share/kilo/.
Where Kilo Code CLI leaves traces
| Signal | Windows | macOS | Linux |
|---|---|---|---|
| npm global package | @kilocode/cli under %APPDATA%\npm\node_modules | @kilocode/cli under npm root -g | Same as macOS |
| Commands | kilo and kilocode (both from the package) | ||
| Process | kilo 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 files | kilo.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
| Setting | What it means | What Kuntur reports |
|---|---|---|
"permission": "allow" in kilo.json | All permissions allowed at once | AGENT_PERMISSIONS_BYPASS |
Auto-approve turned on with /auto-approve | Permission 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.json | Programs or URLs the agent can call | MCP inventory and MCP findings |
Provider keys in auth.json | Credentials in a plain file | AI_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:
- 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 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.
- 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.
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:
- 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 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 thekiloandkilocodecommands. 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, akilocodecommand and~/.config/kilo/kilo.json. Ifcommand -v kilopoints outside the npm folder, it is probably the kilo text editor. - Does Kilo Code CLI have an auto-approve mode?
- Yes.
/auto-approvetoggles auto-approval of all permission prompts and saves it to the global config,"permission": "allow"allows everything, andkilo run --autoruns autonomously (anything not auto-approved is rejected). - Where does Kilo Code store MCP servers?
- Under the
mcpkey ofkilo.jsonorkilo.jsonc, globally in~/.config/kilo/or in a project. The VS Code extension keeps its ownmcp_settings.jsonin the editor's storage.
Sources
- Kilo Code CLI documentation (install, config, auto-approve)
- Kilo blog: config and data folders, auth.json
- @kilocode/cli on npm
Detect other AI tools:
Related guides: