How to Check if Claude Code Is Installed on Company Laptops
Claude Code installs into the user's home folder without admin rights, so most software inventories never list it. Here is where each install method puts it, how to tell an install from active use, and which settings deserve a finding.
Short answer. As the logged-in user:
- Mac or Linux: run
command -v claudeandls -d ~/.local/bin/claude ~/.claude. Any path printed means Claude Code is installed for that user. - Windows: run
Get-Command claudein PowerShell, or check for%USERPROFILE%\.local\bin\claude.exeand%USERPROFILE%\.claude. - Every laptop at once: use an Intune Remediation or Jamf extension attribute that reads every user profile.
Recent timestamps in ~/.claude/projects mean it is actually used. A Windows check never sees installs inside WSL or dev containers.
How to check if Claude Code is installed
On one machine, as the logged-in user, run the command for the OS. Any path printed means Claude Code is installed for that user; no output means it is not installed in the usual places (WSL, dev containers and other user profiles are covered below).
Windows (PowerShell)
Get-Command claude -ErrorAction SilentlyContinue | Select-Object Source
"$env:USERPROFILE\.local\bin\claude.exe", "$env:APPDATA\npm\node_modules\@anthropic-ai\claude-code", "$env:USERPROFILE\.claude" |
Where-Object { Test-Path $_ }
macOS and Linux (bash or zsh)
command -v claude
ls -d ~/.local/bin/claude ~/.claude/local/claude ~/.claude "$(npm root -g 2>/dev/null)/@anthropic-ai/claude-code" 2>/dev/null
claude --version also works when it is on the PATH, but it runs the program; the checks above only read the file system. A ~/.claude folder without a binary usually means the VS Code or JetBrains extension, or the Claude desktop app, is the entry point.
Which version is installed
For one user, claude --version prints it. Without running anything: the native installer keeps each downloaded version as a folder under ~/.local/share/claude/versions/ on macOS and Linux (the newest is the active one, ls -l ~/.local/bin/claude shows which), and an npm install records it in package.json inside the @anthropic-ai/claude-code folder. Homebrew shows it with brew list --cask --versions claude-code, WinGet with winget list --id Anthropic.ClaudeCode.
Why it slips past software inventory
Claude Code is Anthropic's coding agent. It reads the code in the folder it is started from, edits files, runs shell commands and starts MCP servers, all as the logged-in user. The recommended native installer writes a single binary under the user's home directory and needs no administrator rights. The npm package installs into the user's global npm prefix. Neither registers in Programs and Features on Windows or in /Applications on a Mac, which is where most inventory tools look.
The same agent also runs inside the Claude Code extensions for VS Code and JetBrains and inside the Claude desktop app. All of them share the ~/.claude folder and the same settings files, so that folder is the most reliable sign of use whatever the entry point.
If you only need the risk and control side (managed settings, permission modes, documented CVEs), read Cursor and Claude Code in your company. This guide is about finding it.
Where each install method puts it
| Install method | Windows | macOS / Linux |
|---|---|---|
| Native installer (recommended) | %USERPROFILE%\.local\bin\claude.exe | ~/.local/bin/claude, a link into ~/.local/share/claude/versions/<version> |
| npm | @anthropic-ai/claude-code under the global prefix, shim in %APPDATA%\npm | @anthropic-ai/claude-code under npm root -g (per Node version with nvm, fnm or Volta) |
| Package managers | WinGet Anthropic.ClaudeCode | Homebrew cask claude-code |
| Older local install | - | ~/.claude/local/claude |
| User data (any entry point) | %USERPROFILE%\.claude\ and %USERPROFILE%\.claude.json | ~/.claude/ and ~/.claude.json |
| Managed policy (if you deployed one) | C:\Program Files\ClaudeCode\managed-settings.json or HKLM\SOFTWARE\Policies\ClaudeCode | /Library/Application Support/ClaudeCode/ (macOS), /etc/claude-code/ (Linux) |
Inside ~/.claude, settings.json holds the user's permission rules, projects/ holds session transcripts per working directory, and plugins/, skills/, agents/ and commands/ hold extensions. ~/.claude.json holds MCP server definitions and per-project trust state. A CLAUDE_CONFIG_DIR environment variable moves all of this elsewhere, which is rare but worth knowing when the folder is missing and the binary is not.
Check a Windows laptop
Run in the user's context (a logon script or Intune Remediations in user context). Under SYSTEM, $env:USERPROFILE points at the system profile and every check comes back empty. All commands are read-only.
# 1. Installed? Native installer, npm global package, WinGet
Test-Path "$env:USERPROFILE\.local\bin\claude.exe"
Get-Command claude -ErrorAction SilentlyContinue | Select-Object Source, Version | Format-Table -AutoSize
npm ls -g --depth=0 2>$null | Select-String 'claude-code'
winget list --id Anthropic.ClaudeCode 2>$null
# 2. Running right now?
Get-Process -Name claude -ErrorAction SilentlyContinue | Select-Object Name, Id, Path | Format-Table -AutoSize
# 3. Used, and how recently? (session transcripts are written per project)
$d = "$env:USERPROFILE\.claude\projects"
if (Test-Path $d) {
Get-ChildItem $d -Directory | Sort-Object LastWriteTime -Descending |
Select-Object -First 10 Name, LastWriteTime | Format-Table -AutoSize
}
An install with an empty or missing projects folder usually means someone tried it once. Recent timestamps in projects mean real use, and the folder names are the working directories (path separators replaced with dashes), so you can see which repositories it was pointed at without opening any transcript.
Check macOS and Linux
# 1. Installed? Native installer, npm, Homebrew
ls -l ~/.local/bin/claude ~/.claude/local/claude 2>/dev/null
ls ~/.local/share/claude/versions 2>/dev/null
command -v claude && claude --version
npm ls -g --depth=0 2>/dev/null | grep claude-code
brew list --cask 2>/dev/null | grep -x claude-code
# 2. Running right now?
pgrep -fl claude
# 3. Used, and how recently?
ls -lt ~/.claude/projects 2>/dev/null | head -n 11
With nvm, fnm or Volta each Node version has its own global packages, so npm ls -g only covers the active one. If Node version managers are common in your fleet, also list ~/.nvm/versions/node/*/lib/node_modules/@anthropic-ai.
Settings that matter more than the install
Finding Claude Code tells you who uses it. Its settings tell you how much it is allowed to do without asking. These are the ones worth a finding, all read from the user's own files:
| What to look for | Where | Why it matters | Kuntur finding |
|---|---|---|---|
"defaultMode": "bypassPermissions" | ~/.claude/settings.json → permissions | Every tool call runs without a prompt. Anthropic recommends it only in isolated containers or VMs. | AGENT_PERMISSIONS_BYPASS |
Bash or Bash(*) in allow | User or local settings | Any shell command is pre-approved, which makes the rest of the permission model moot. | AGENT_UNRESTRICTED_SHELL |
"enableAllProjectMcpServers": true | User settings | Every .mcp.json in any repository the user opens is approved without a prompt. | AGENT_AUTO_PROJECT_MCP |
Literal API key in env | User settings | A long-lived key in a plain-text file that backups and sync tools copy. | AGENT_PLAINTEXT_SECRET |
ANTHROPIC_BASE_URL not on anthropic.com | User settings env | Prompts and code go to a proxy or another provider instead of your contracted endpoint. | AGENT_CUSTOM_ENDPOINT |
Marketplaces outside anthropics/* | ~/.claude/plugins/known_marketplaces.json | Plugins can ship hooks and MCP servers that run code. See the plugins guide. | PLUGIN_THIRD_PARTY_MARKETPLACE |
bypassPermissionsModeAccepted | ~/.claude.json | The user accepted the bypass-mode warning at least once. | AGENT_BYPASS_ACCEPTED |
# Run as the user (macOS/Linux; on Windows use the same keys with ConvertFrom-Json)
S=~/.claude/settings.json
jq -r '.permissions.defaultMode // empty' "$S" # "bypassPermissions" = no prompts
jq -r '.permissions.allow[]? | select(test("^(Bash|Bash\\(\\*\\)|Bash\\(:\\*\\)|PowerShell)$"))' "$S"
jq -r '.enableAllProjectMcpServers // empty' "$S" # true = every repo's .mcp.json auto-approved
jq -r '.env // {} | keys[]' "$S" # look for ANTHROPIC_API_KEY, ANTHROPIC_BASE_URL
jq -r '.env.ANTHROPIC_BASE_URL // empty' "$S"
jq -r 'to_entries[] | "\(.key)\t\(.value.source.repo // .value.source.url // .value.source.path)"' \
~/.claude/plugins/known_marketplaces.json 2>/dev/null # plugin marketplaces added
jq -r '.bypassPermissionsModeAccepted // empty' ~/.claude.json # user accepted bypass mode at least once
Recent versions ignore bypassPermissions and auto when they are set in a project's .claude/settings.json or .claude/settings.local.json; they take effect from user or managed settings, or from the --permission-mode and --dangerously-skip-permissions flags. So check the user file and, if you have EDR, process command lines. Managed settings can switch the mode off entirely with permissions.disableBypassPermissionsMode.
Places a quick check misses
- WSL. A Linux install inside a WSL distro lives in that distro's home directory, which Windows checks never read. See How to find Claude Code and Codex in WSL.
- Containers and VMs. Dev containers and local VMs have their own file systems; a Claude Code dev container usually declares
ghcr.io/anthropics/devcontainer-features/claude-codein.devcontainer/devcontainer.json. See AI in Docker containers and VMs. - Other user profiles. On shared machines, repeat the checks for every profile under
C:\Usersor/Usersand/home. - Projects. A repository can carry
.mcp.json,.claude/settings.jsonandCLAUDE.md. Those are covered in How to detect MCP servers.
Check every laptop with Intune or Jamf
The same checks run fleet-wide from the MDM you already have. Both scripts only read the file system, look in every user profile (they run as SYSTEM or root) and print the paths they find.
Microsoft Intune. Add it as the detection script of a Remediation (Devices → Scripts and remediations), with no remediation script, Run this script using the logged-on credentials set to No and 64-bit PowerShell. Devices with Claude Code show as With issues; the pre-remediation output column lists the paths.
# Intune Remediations, detection script (runs as SYSTEM, so it looks in every profile)
# Exit 1 = Claude Code found: the device shows "With issues" and the output lists the paths.
$found = @()
Get-ChildItem 'C:\Users' -Directory -ErrorAction SilentlyContinue | ForEach-Object {
foreach ($p in "$($_.FullName)\.local\bin\claude.exe",
"$($_.FullName)\AppData\Roaming\npm\node_modules\@anthropic-ai\claude-code") {
if (Test-Path $p) { $found += $p }
}
}
if ($found) { Write-Output ("Claude Code: " + ($found -join '; ')); exit 1 }
Write-Output 'Claude Code not found'
exit 0
Jamf Pro. Add it as a computer extension attribute (Settings → Computer management → Extension attributes, input type Script), then build a smart group where the attribute is not Not installed.
#!/bin/bash
# Jamf Pro extension attribute (runs as root): lists every Claude Code install it finds
found=""
for home in /Users/*; do
for p in "$home/.local/bin/claude" "$home/.claude/local/claude"; do
[ -e "$p" ] && found="$found $p"
done
done
for p in /opt/homebrew/bin/claude /usr/local/bin/claude \
/opt/homebrew/lib/node_modules/@anthropic-ai/claude-code \
/usr/local/lib/node_modules/@anthropic-ai/claude-code; do
[ -e "$p" ] && found="$found $p"
done
echo "<result>${found:-Not installed}</result>"
Both miss installs managed by nvm or other version managers, WSL distros and dev containers (see places a quick check misses). To restrict it rather than find it, see Claude Code with Intune and Claude Code with Jamf. For Gemini CLI, Codex, Copilot CLI and other terminal agents, the same scripts with their folders are in How to detect AI coding CLIs.
Automate it
On a single machine, the free Kuntur scanner lists Claude Code wherever it is installed (native binary, npm package, process, ~/.claude data) together with its MCP servers, plugins and the risky settings above.
- 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, including WSL distros and containers, with the execution environment of each detection. You mark Claude Code approved or unauthorized per organization, triage the setting findings, and keep an audit log of each decision. If an auditor later asks how you controlled AI coding tools, the audit evidence pack on the Audit log page exports those decisions for a period, with who made them and when, as a ZIP with SHA-256 checksums.
How long it takes: install the agent on one laptop with one command (or a silent MSI from Intune, or a Jamf script), and a new computer usually appears in the console within one or two minutes; Claude Code is listed there with the computer, user and version. Try it on your own machine before you roll it out with Intune or Jamf.

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
- How do I check if Claude Code is installed on a Mac?
- Open Terminal as that user and run
command -v claude, thenls -d ~/.local/bin/claude ~/.claude. A Homebrew install also shows withbrew list --cask claude-code. To check every Mac, add the Jamf Pro extension attribute and a smart group. - Which version of Claude Code is installed?
claude --versionprints it. Without running the program, list~/.local/share/claude/versions/for native installs or readpackage.jsonin the global@anthropic-ai/claude-codefolder for npm installs. See which version is installed.- How do I check if Claude Code is installed?
- Run
Get-Command claudeon Windows orcommand -v claudeon macOS and Linux, then look for the native binary (~/.local/bin/claude,claude.exeon Windows), the global npm package@anthropic-ai/claude-codeand the~/.claudefolder. Any of them means it is installed for that user. Repeat inside WSL distros and dev containers; see the commands above. - How do I detect Claude Code with Intune or Jamf?
- Use a read-only script that looks in every user profile: in Intune as the detection script of a Remediation (exit 1 when Claude Code is found), in Jamf Pro as an extension attribute plus a smart group. Both scripts are in Check every laptop with Intune or Jamf.
- Does installing Claude Code need admin rights?
- No. The native installer and a user-level npm install both write only to the user's home directory, which is why software inventories that read installed-programs lists usually miss it.
- How can I tell if Claude Code is actually used, not just installed?
- Look at
~/.claude/projects. Claude Code writes session transcripts there per working directory, so recent modification times show real use and the folder names show which projects. - Does a Windows check find Claude Code installed inside WSL?
- No. A Linux install inside a WSL distro lives in that distro's own home folder (for example
~/.local/bin/claudeand~/.claudeinside Ubuntu), which PowerShell checks of%USERPROFILE%never read. List distros withwsl -l -qand run the Linux checks in each one withwsl -d <distro>, or use the script in How to find Claude Code and Codex in WSL. - How do I detect Claude Code in a dev container?
- A dev container has its own file system, so the binary and
~/.claudelive inside the container, not on the host. Search the repository's.devcontainerfolder for the featureghcr.io/anthropics/devcontainer-features/claude-codeor an npm install of@anthropic-ai/claude-code, and run the Linux checks inside running containers withdocker exec. Anthropic's documented setup keeps~/.claudein a named Docker volume (claude-code-configin its examples), so the data survives rebuilds;docker volume lsshows it. - How do I find a global npm install of Claude Code?
- Run
npm ls -g --depth=0 @anthropic-ai/claude-code, or look for the folder directly:%APPDATA%\npm\node_modules\@anthropic-ai\claude-codeon Windows and$(npm root -g)/@anthropic-ai/claude-codeon macOS and Linux. With nvm, fnm or Volta each Node version has its own global folder, so check all of them. - What is inside ~/.claude, and is it safe to read?
settings.json(permission rules and environment variables),projects/(session transcripts per working directory), andplugins/,skills/,agents/andcommands/(extensions). Transcripts can contain anything a session read, including secrets, so an inventory should read folder names and timestamps, not file contents.- Which settings.json keys should security teams check?
permissions.defaultModeset tobypassPermissions, Bash orBash(*)inpermissions.allow,enableAllProjectMcpServersset to true, anANTHROPIC_BASE_URLin env that is not Anthropic's, and literal API keys in env. Check the user file~/.claude/settings.jsonand any managed settings you deploy; recent versions ignore bypass mode set in a project's own settings.- Where does Claude Code store its MCP servers?
- User- and local-scope servers are in
~/.claude.json(top-levelmcpServersand per project under projects). Project-scope servers are in a.mcp.jsonfile at the repository root. Plugins can add more. Read the files rather than runningclaude mcp list, which connects to each server (starting local ones) to check its health. - Does the Claude Code VS Code extension show up the same way?
- It writes to the same
~/.claudefolder and reads the same settings, so the data folder and settings checks apply. The extension itself is listed among VS Code extensions asanthropic.claude-code. - Can Kuntur stop people from installing Claude Code?
- No. Kuntur detects and reports. To restrict behaviour, use Claude Code managed settings; to prevent installs, use your EDR or application control.
Sources
- Claude Code docs: Advanced setup (install methods and locations)
- Claude Code docs: Settings files and precedence
- Claude Code docs: Settings reference
- Claude Code docs: Configure permissions
- Claude Code docs: Deploy managed settings
- Claude Code docs: Development containers
- Claude Code docs: MCP installation scopes
More guides and tools:
- Claude Code traces per OS (quick reference)
- How to detect OpenAI Codex CLI
- How to detect Gemini CLI
- Find exposed ANTHROPIC_API_KEY and other AI keys
- Cursor and Claude Code in your company: risks and controls
- How to audit Claude Code plugins, skills and hooks
- How to find Claude Code and Codex CLI running in WSL
- Free tool: MCP config auditor
- All guides