Claude Code: Where It Leaves Traces (Paths per OS)
Claude Code is a terminal agent that installs into the user's home folder, so software inventories rarely list it. This page is the short per-OS reference: the paths, processes and data folders it leaves, and a one-minute check for one laptop.
Looking for the full walkthrough? How to detect Claude Code on company laptops covers every install method (including WinGet and Homebrew), the settings.json keys that deserve a finding, MCP servers, WSL and dev containers. This page is only the trace list.
What Claude Code is and why security teams care
Claude Code is Anthropic's coding agent. It reads the code in the folder it starts from, edits files, runs shell commands and launches MCP servers, all with the permissions of the logged-in user. The same agent runs in the terminal, in the VS Code and JetBrains extensions and inside the Claude desktop app.
Security teams care for three reasons:
- Invisible installs. The native installer and a user-level npm install both write only to the home folder. Nothing lands in Programs and Features or
/Applications. - Local execution. A proxy sees the model traffic, but not the commands the agent ran, the files it read to build context or the MCP servers it started.
- Settings that remove the guardrails. A user can switch off permission prompts, pre-approve every shell command, auto-approve every repository's MCP servers or route traffic to a non-Anthropic endpoint, all in a JSON file in their profile.
Session transcripts are kept in plain text under ~/.claude/projects, so anything a session read, including secrets, can sit on disk after the session ends.
Where Claude Code leaves traces
| Signal | Windows | macOS | Linux |
|---|---|---|---|
| Native installer | %USERPROFILE%\.local\bin\claude.exe | ~/.local/bin/claude, versions in ~/.local/share/claude/versions/ | ~/.local/bin/claude, versions in ~/.local/share/claude/versions/ |
| Older local install | - | ~/.claude/local/claude | ~/.claude/local/claude |
| npm | Global package @anthropic-ai/claude-code | Global package @anthropic-ai/claude-code | Global package @anthropic-ai/claude-code |
| Process | claude.exe from .local\bin, or node running the npm package | claude from ~/.local/bin or ~/.claude | Same as macOS |
| User data (any entry point) | %USERPROFILE%\.claude, %USERPROFILE%\.claude.json | ~/.claude, ~/.claude.json | ~/.claude, ~/.claude.json |
| Editor extension | anthropic.claude-code in the VS Code extensions folder | Same | Same |
One trap: the Claude desktop app also runs a process called claude. On a Mac its executable sits inside /Applications/Claude.app; on Windows it lives under %LOCALAPPDATA%\AnthropicClaude or a Store package. Count a claude process as Claude Code only when its path is under .local, .claude or an npm folder. Kuntur's catalog applies the same rule, and reports the desktop app separately.
Inside ~/.claude, settings.json holds permission rules, projects/ holds transcripts per working directory and plugins/ holds extensions. ~/.claude.json holds MCP servers and per-project trust.
Check one machine
Both checks only read files, the process table and, where relevant, the local listener table. They send nothing over the network and change nothing.
Windows (PowerShell)
# Read-only, no network. Run as the user (not SYSTEM).
# 1. Installed? Native installer, then the npm package under the default global prefix
Test-Path "$env:USERPROFILE\.local\bin\claude.exe"
Test-Path "$env:APPDATA\npm\node_modules\@anthropic-ai\claude-code"
Get-Command claude -ErrorAction SilentlyContinue | Select-Object Source
# 2. Running now? Check Path: the Claude desktop app uses the same process name
Get-Process -Name claude -ErrorAction SilentlyContinue | Select-Object Id, Path
# 3. Used recently? Transcripts are written per working directory
Get-ChildItem "$env:USERPROFILE\.claude\projects" -Directory -ErrorAction SilentlyContinue |
Sort-Object LastWriteTime -Descending | Select-Object -First 5 Name, LastWriteTime
# 4. Settings worth a finding
$s = "$env:USERPROFILE\.claude\settings.json"
if (Test-Path $s) { Select-String -Path $s -Pattern 'bypassPermissions', 'enableAllProjectMcpServers', 'ANTHROPIC_BASE_URL' }
macOS and Linux (bash)
# Read-only, no network. Run as the user.
# 1. Installed? Native installer, older local install, npm
ls -l ~/.local/bin/claude ~/.claude/local/claude 2>/dev/null
ls ~/.local/share/claude/versions 2>/dev/null
ls -d "$(npm root -g 2>/dev/null)/@anthropic-ai/claude-code" 2>/dev/null
# 2. Running now? The path tells Claude Code from the desktop app (Claude.app)
for pid in $(pgrep -x claude); do ps -o pid=,args= -p "$pid"; done
pgrep -fl '@anthropic-ai/claude-code' # npm install, runs under node
# 3. Used recently?
find ~/.claude/projects -mindepth 1 -maxdepth 1 -type d -mtime -30 2>/dev/null
# 4. Settings worth a finding
grep -E 'bypassPermissions|enableAllProjectMcpServers|ANTHROPIC_BASE_URL' ~/.claude/settings.json 2>/dev/null
npm root -g only covers the active Node version. With nvm, fnm or Volta, each Node version has its own global packages, so also list ~/.nvm/versions/node/*/lib/node_modules/@anthropic-ai. The full walkthrough, including WinGet and Homebrew installs, is in How to detect Claude Code on company laptops.
Settings worth a finding
An install tells you who uses Claude Code; its settings tell you how much it may do without asking. Kuntur raises findings for permission prompts switched off (bypassPermissions), pre-approved shell commands, auto-approved project MCP servers, literal API keys and a non-Anthropic ANTHROPIC_BASE_URL. The keys, where they live and a jq check for each are in the full guide's settings table. For plugins, skills and hooks, see How to audit Claude Code plugins, skills and hooks; for managed settings, Cursor and Claude Code in your company.
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. Each of these guides has a tested script that already includes Claude Code:
- 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).
Those scripts walk every profile under C:\Users or /Users, because MDM scripts usually run as SYSTEM or root, where %USERPROFILE% and ~ point at the wrong home folder. On Linux, run the bash checks through whatever configuration management you have (Ansible, Salt, a cron job) and loop over /home/* the same way.
How Kuntur detects Claude Code
Kuntur's catalog identifies Claude Code by the native-installer paths, the global npm package, the claude binary, a process started from .local/bin, .claude or the npm package, and the ~/.claude data folder, while excluding the desktop app's process. The agent also reads Claude Code's MCP servers, plugins, hooks and the settings in the table above, for every user profile, and inside WSL distros where a Windows-only check never looks.
To check one machine now, the free Kuntur scanner lists Claude Code 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 Claude Code 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 Claude Code installed on Windows?
- The native installer puts
claude.exein%USERPROFILE%\.local\bin. An npm install puts the package@anthropic-ai/claude-codeunder%APPDATA%\npm\node_moduleswith aclaudeshim in%APPDATA%\npm. User data is in%USERPROFILE%\.claudeand%USERPROFILE%\.claude.json. - Where is Claude Code installed on macOS and Linux?
- The native installer creates
~/.local/bin/claude, a link into~/.local/share/claude/versions. Older installs used~/.claude/local/claude, and npm installs live undernpm root -g. User data is in~/.claudeand~/.claude.json. - How do I tell Claude Code apart from the Claude desktop app?
- By the executable path. Both can run a process called
claude, but Claude Code runs from~/.local/bin,~/.claudeor an npm folder, while the desktop app runs fromClaude.appon macOS or its own folder or Store package on Windows. - Where is the full Claude Code detection guide?
- How to detect Claude Code on company laptops adds WinGet and Homebrew installs, the
settings.jsonkeys worth a finding, MCP server locations, WSL and dev containers.
Sources
- Claude Code docs: Advanced setup (install methods and locations)
- Claude Code docs: Settings files and precedence
- Claude Code docs: Configure permissions
Detect other AI tools:
- How to detect OpenAI Codex CLI
- How to detect Gemini CLI
- How to detect Cursor
- How to detect GitHub Copilot
- How to detect MCP servers
- All AI tools
Related guides: