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.

By Kuntur team · Published

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.

Where Amp leaves traces

SignalWindowsmacOSLinux
Install script%USERPROFILE%\.amp\bin\amp.exe~/.amp/bin/amp, linked from ~/.local/bin/amp (or ~/bin, ~/.bin)Same as macOS
Moved install folderThe AMP_HOME environment variable replaces ~/.amp
npm global package@ampcode/cli or the older @sourcegraph/amp under %APPDATA%\npm\node_modulesSame packages under npm root -gSame as macOS
Processamp.exe from .amp\bin or from the npm package folderamp from ~/.amp/bin or the npm packageSame 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

SettingWhat it meansWhat Kuntur reports
amp.mcpServersPrograms or URLs the agent can call, often with tokens in env or headersMCP inventory, MCP_PLAINTEXT_SECRET and the other MCP findings
No amp.mcpPermissions rulesEvery configured MCP server is allowedShown through the MCP inventory
amp.remoteThreadCreation.enabled: trueampcode.com can create threads that open in the terminal on this machineNot a finding yet: check with the snippet
amp.runner.env.enabled: trueamp --no-tui runners can inject stored secrets and environment variables into commands and MCP serversNot 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:

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.

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:

  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 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.exe on Windows) and links it from ~/.local/bin. npm installs it as the global package @ampcode/cli, or @sourcegraph/amp on 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/cli and ~/.config/amp/settings.json. command -v amp alone 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.mcpServers in ~/.config/amp/settings.json and in a project's .amp/settings.json. MCP servers with no matching amp.mcpPermissions rule are allowed by default.

Sources

  1. Amp CLI settings reference (file locations, managed settings, MCP)
  2. Amp install script (install folder and links)
  3. Amp permissions rules (default approval behaviour)
  4. @ampcode/cli on npm

Detect other AI tools:

Related guides: