How to Detect the Amp Coding Agent on Employee Laptops
Amp is a terminal coding agent. It installs per user with a script or npm, with no admin rights, and its command name is shared with an unrelated text editor. Here are the traces it leaves on each OS, a read-only check, and the settings that turn an install into a finding.
How to check if Amp is installed: look for ~/.amp/bin/amp (amp.exe on Windows), the global npm package @ampcode/cli (formerly @sourcegraph/amp) and the settings file ~/.config/amp/settings.json. A bare amp on PATH is not proof: it can be the Rust text editor of the same name.
What Amp is and why security teams care
Amp is an agentic coding tool that runs in the terminal (and in editors). Like other coding agents it reads the code in the folder it starts from, edits files, runs shell commands and calls MCP servers with the permissions of the logged-in user.
- Invisible installs. The official install script puts the binary in
~/.amp/binand links it into~/.local/bin; the npm package installs it globally. Neither shows up in Programs and Features or/Applications. - Few prompts by default. Amp's own documentation says that by default it does not ask for approval before running tools, and that MCP servers with no matching
amp.mcpPermissionsrule are allowed. - Remote control options. Settings such as
amp.remoteThreadCreation.enabledlet ampcode.com open threads in the terminal on that machine.
Where Amp leaves traces
| Signal | Windows | macOS | Linux |
|---|---|---|---|
| Install script | %USERPROFILE%\.amp\bin\amp.exe | ~/.amp/bin/amp, linked from ~/.local/bin/amp (or ~/bin, ~/.bin) | Same as macOS |
| Moved install folder | The AMP_HOME environment variable replaces ~/.amp | ||
| npm global package | @ampcode/cli or the older @sourcegraph/amp under %APPDATA%\npm\node_modules | Same packages under npm root -g | Same as macOS |
| Process | amp.exe from .amp\bin or from the npm package folder | amp from ~/.amp/bin or the npm package | Same as macOS |
| User settings | %USERPROFILE%\.config\amp\settings.json (or .jsonc) | ~/.config/amp/settings.json (or .jsonc) | Same as macOS |
| Managed settings (if deployed) | %ProgramData%\ampcode\managed-settings.json | /Library/Application Support/ampcode/managed-settings.json | /etc/ampcode/managed-settings.json |
| Project files | .amp/settings.json (or .jsonc) in a repository; skills in .agents/skills/ | ||
Lookalike: amp is also the name of a Rust text editor (installed with cargo install amp, config in ~/.config/amp/config.yml). Kuntur's rule never matches a bare amp on PATH or a process from ~/.cargo/bin; it needs the ~/.amp/bin location, one of the two npm packages or the agent's settings.json, so the editor is not reported as an AI tool.
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? Install-script binary, npm packages, anything named amp on PATH
Test-Path "$env:USERPROFILE\.amp\bin\amp.exe"
Test-Path "$env:APPDATA\npm\node_modules\@ampcode\cli"
Test-Path "$env:APPDATA\npm\node_modules\@sourcegraph\amp" # older package name
Get-Command amp -ErrorAction SilentlyContinue | Select-Object Source # may be another "amp"
# 2. Running now? Only count amp from ~/.amp/bin or the npm package
Get-CimInstance Win32_Process |
Where-Object { $_.ExecutablePath -like '*\.amp\bin\*' -or $_.CommandLine -like '*@ampcode*' -or $_.CommandLine -like '*@sourcegraph\amp*' } |
Select-Object ProcessId, Name, ExecutablePath
# 3. Settings files (user, managed) and what is in them (key names only, no values)
foreach ($f in "$env:USERPROFILE\.config\amp\settings.json",
"$env:USERPROFILE\.config\amp\settings.jsonc",
"$env:ProgramData\ampcode\managed-settings.json") {
if (Test-Path $f) {
$f
if (Select-String -Path $f -Pattern '"amp\.mcpServers"' -Quiet) { " has amp.mcpServers" }
if (Select-String -Path $f -Pattern '"amp\.remoteThreadCreation\.enabled"\s*:\s*true' -Quiet) { " remote thread creation on" }
if (Select-String -Path $f -Pattern '"amp\.runner\.env\.enabled"\s*:\s*true' -Quiet) { " runner secrets injection on" }
}
}
macOS and Linux (bash)
# Read-only, no network. Run as the user. Prints paths only.
# 1. Installed? Install-script binary and its link, npm packages, PATH
ls -l "$HOME/.amp/bin/amp" "$HOME/.local/bin/amp" 2>/dev/null
ls -d "$(npm root -g 2>/dev/null)/@ampcode/cli" "$(npm root -g 2>/dev/null)/@sourcegraph/amp" 2>/dev/null
command -v amp # may be the unrelated amp text editor: check the path
# 2. Running now? Only count amp from ~/.amp/bin or the npm package
pgrep -fl '\.amp/bin/amp|@ampcode/cli|@sourcegraph/amp'
# 3. Settings files (user, managed) and what is in them (key names only, no values)
for f in "$HOME/.config/amp/settings.json" "$HOME/.config/amp/settings.jsonc" \
"/Library/Application Support/ampcode/managed-settings.json" \
/etc/ampcode/managed-settings.json; do
[ -f "$f" ] || continue
echo "$f"
grep -q '"amp\.mcpServers"' "$f" && echo " has amp.mcpServers"
grep -Eq '"amp\.remoteThreadCreation\.enabled"[[:space:]]*:[[:space:]]*true' "$f" && echo " remote thread creation on"
grep -Eq '"amp\.runner\.env\.enabled"[[:space:]]*:[[:space:]]*true' "$f" && echo " runner secrets injection on"
done
If command -v amp prints a path under ~/.cargo/bin, that is the text editor, not the agent. With nvm, fnm or Volta each Node version has its own global packages; a Linux install inside WSL is invisible to the Windows check (see the WSL guide).
Settings worth a finding
| Setting | What it means | What Kuntur reports |
|---|---|---|
amp.mcpServers | Programs or URLs the agent can call, often with tokens in env or headers | MCP inventory, MCP_PLAINTEXT_SECRET and the other MCP findings |
No amp.mcpPermissions rules | Every configured MCP server is allowed | Shown through the MCP inventory |
amp.remoteThreadCreation.enabled: true | ampcode.com can create threads that open in the terminal on this machine | Not a finding yet: check with the snippet |
amp.runner.env.enabled: true | amp --no-tui runners can inject stored secrets and environment variables into commands and MCP servers | Not a finding yet: check with the snippet |
Because Amp does not ask before running tools by default, the useful question is less "is approval switched off" and more "is this person allowed to run an autonomous agent at all, and with which MCP servers".
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 Amp 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 Amp on every endpoint.
How to restrict Amp with Intune or Jamf
Kuntur does not block, restrict or uninstall anything. If your policy says Amp 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.
Amp also reads a local managed settings file (%ProgramData%\ampcode\managed-settings.json, /Library/Application Support/ampcode/managed-settings.json or /etc/ampcode/managed-settings.json) that you can deploy as a file with Intune or Jamf, for example to disable tools with amp.tools.disable or allow only approved MCP servers with amp.mcpPermissions. Check the vendor documentation for which keys the managed file honours.
How Kuntur detects Amp
Kuntur's catalog identifies Amp by the ~/.amp/bin/amp binary, the npm packages @ampcode/cli and @sourcegraph/amp, an amp process running from .amp/bin or either package, and the agent's settings.json. It does not match the amp text editor. The agent also reads amp.mcpServers from the user and project settings files for every user profile, and links MCP servers that Amp starts to Amp.
To check one machine now, the free Kuntur scanner lists Amp 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 Amp 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 Amp installed?
- The install script puts the binary in
~/.amp/bin/amp(%USERPROFILE%\.amp\bin\amp.exeon Windows) and links it from~/.local/bin. npm installs it as the global package@ampcode/cli, or@sourcegraph/ampon older machines. Settings live in~/.config/amp/settings.json. - How do I check if Amp is installed?
- Look for
~/.amp/bin/amp, the npm package@ampcode/cliand~/.config/amp/settings.json.command -v ampalone is not enough, because the Rust text editor called amp uses the same command name. - Is the amp text editor the same as the Amp coding agent?
- No. The editor is a separate open-source program installed with
cargo install amp, with its config in~/.config/amp/config.yml. Kuntur's rule ignores it and only reports the coding agent. - Where does Amp store MCP servers?
- Under the key
amp.mcpServersin~/.config/amp/settings.jsonand in a project's.amp/settings.json. MCP servers with no matchingamp.mcpPermissionsrule are allowed by default.
Sources
- Amp CLI settings reference (file locations, managed settings, MCP)
- Amp install script (install folder and links)
- Amp permissions rules (default approval behaviour)
- @ampcode/cli on npm
Detect other AI tools:
Related guides: