Scan a developer workstation
Last updated 23 November 2026
Developers install AI agent tools on their own machines: MCP servers, skills, plugins and hooks for Claude Code, Cursor, VS Code and others. Since release 1.14.0, the free open-source scanner checks that configuration with spellwarden scan --user: it reads the home directory of seven clients, judges what it finds with the rules of a repository scan and reports per client. An organisation on the Enterprise plan can also collect each workstation's inventory, so that the people who manage its AI tools can see what is installed across the team.
Run a workstation scan
Run it in a terminal on the machine, as the user whose tools you want to check. It takes the same report options as a repository scan:
spellwarden scan --user [--inventory] [--format FMT [--output FILE]]... [--fail-on LEVEL] [--probe]
[--upload --device-label TEXT] [--quiet | --verbose]- It reads the files of the table below for the running system, judges them with the scanner's rules and reports per client. The text and Markdown reports start with one line per client, such as Claude Code: 4 servers, 2 skills, 1 plugin, 1 marketplace, 2 hooks, 2 instruction files, or not found.
- The JSON report adds the clients found, with their folders, and the clients of each item; SARIF results carry the clients too.
--format cyclonedxwrites an AI bill of materials of the workstation, explained in AI bill of materials in CycloneDX. - The MCP rules that need a server's answers run only with
--probe, which asks remote servers over HTTPS for their tool lists, as in a repository scan. A local server is never started. - It reads no settings file, baseline or lock:
--userwith a path,--locked,--baseline,--configor--follow-linksis a usage error, exit code 2. The workstation scan already follows a link to a directory inside the home directory.
List without judging
spellwarden scan --user --inventory lists what is installed and runs no rule: no finding and no probe. It writes text, JSON or CycloneDX, and exits with 0, or 2 when a file could not be read. --probe with it is a usage error.
Which clients and files are read
The table is the one in the scanner's README at release 1.20.0, where each row names the client's own documentation and the day it was checked; see the Scanning a workstation section of the README. A path that a client stops documenting moves to the list of what is not read. Which files Spellwarden reads for each coding agent groups the same files by agent, next to the files a repository scan reads.
Since release 1.16.0 the scanner also reads VS Code's user and profile mcp.json files, of VS Code and of VS Code Insiders, in every profile, on Linux, macOS and Windows. VS Code's reference names the user-profile mcp.json without a path, so the folder is the user settings folder VS Code documents for settings.json and its profiles folder. A run can find servers it did not read before, so a scan that passed can fail after the upgrade.
Release 1.20.0 added or changed about forty rows: Claude Code's commands, subagents and output styles and its plugins' commands and subagents; Cursor's skills, subagents and local plugins; Copilot's instruction files, custom agents, hooks, settings and installed plugins; Codex's prompts and cached plugins; Gemini CLI's subagents and the skills and subagents of its extensions; and Windsurf's files under ~/.codeium/windsurf/. A home directory can give more items and more findings than before, so a scan that passed can fail after the upgrade.
| Client | Systems | Path | What is read |
|---|---|---|---|
| Claude Code | all | ~/.claude.json | MCP servers of the user scope and of each project (the file moves to $CLAUDE_CONFIG_DIR when that is set) |
| Claude Code | all | $CLAUDE_CONFIG_DIR/settings.json | hooks, permissions, enabled plugins and extra marketplaces |
| Claude Code | all | $CLAUDE_CONFIG_DIR/skills | skills |
| Claude Code | all | $CLAUDE_CONFIG_DIR/CLAUDE.md | instruction file |
| Claude Code | all | $CLAUDE_CONFIG_DIR/rules/**/*.md | instruction files, subfolders included |
| Claude Code | all | $CLAUDE_CONFIG_DIR/commands/**/*.md | commands, subfolders included |
| Claude Code | all | $CLAUDE_CONFIG_DIR/agents/**/*.md | subagents, subfolders included |
| Claude Code | all | $CLAUDE_CONFIG_DIR/output-styles/*.md | output styles |
| Claude Code | all | $CLAUDE_CONFIG_DIR/plugins/installed_plugins.json | installed plugins, with each plugin's skills, commands, subagents, MCP servers, hooks and manifest |
| Claude Code | all | $CLAUDE_CONFIG_DIR/plugins/known_marketplaces.json | marketplaces and their sources |
| Claude Desktop | Linux | $XDG_CONFIG_HOME/Claude/claude_desktop_config.json | MCP servers |
| Claude Desktop | macOS | ~/Library/Application Support/Claude/claude_desktop_config.json | MCP servers |
| Claude Desktop | Windows | %APPDATA%/Claude/claude_desktop_config.json | MCP servers |
| Cursor | all | ~/.cursor/mcp.json | MCP servers |
| Cursor | all | ~/.cursor/hooks.json | hooks |
| Cursor | all | ~/.cursor/skills | skills |
| Cursor | all | ~/.agents/skills | skills |
| Cursor | all | ~/.claude/skills | skills |
| Cursor | all | ~/.codex/skills | skills |
| Cursor | all | ~/.cursor/agents/*.md | subagents |
| Cursor | all | ~/.claude/agents/*.md | subagents |
| Cursor | all | ~/.codex/agents/*.md | subagents |
| Cursor | all | ~/.cursor/plugins/local/* | local plugins, with each plugin's manifest, MCP servers, hooks, skills, rules, subagents and commands |
| VS Code | all | $COPILOT_HOME/mcp-config.json | MCP servers |
| VS Code | all | $COPILOT_HOME/skills | skills |
| VS Code | all | ~/.claude/skills | skills |
| VS Code | all | ~/.agents/skills | skills |
| VS Code | all | $COPILOT_HOME/copilot-instructions.md | instruction file |
| VS Code | all | $COPILOT_HOME/instructions/**/*.instructions.md | instruction files, subfolders included |
| VS Code | all | $COPILOT_HOME/agents/**/*.md | custom agents, subfolders included |
| VS Code | all | $COPILOT_HOME/hooks/*.json | hooks |
| VS Code | all | $COPILOT_HOME/settings.json | inline hooks, enabled plugins and extra marketplaces |
| VS Code | all | $COPILOT_HOME/installed-plugins/*/* | installed plugins, with each plugin's manifest, MCP servers, hooks, skills and custom agents |
| VS Code | all | ~/.claude/rules/**/*.md | instruction files, subfolders included |
| VS Code | all | ~/.claude/CLAUDE.md | instruction file |
| VS Code | all | ~/.claude/agents/**/*.md | custom agents, subfolders included |
| VS Code | Linux | $XDG_CONFIG_HOME/Code/User/mcp.json and $XDG_CONFIG_HOME/Code/User/profiles/*/mcp.json and $XDG_CONFIG_HOME/Code - Insiders/User/mcp.json and $XDG_CONFIG_HOME/Code - Insiders/User/profiles/*/mcp.json | MCP servers |
| VS Code | macOS | ~/Library/Application Support/Code/User/mcp.json and ~/Library/Application Support/Code/User/profiles/*/mcp.json and ~/Library/Application Support/Code - Insiders/User/mcp.json and ~/Library/Application Support/Code - Insiders/User/profiles/*/mcp.json | MCP servers |
| VS Code | Windows | %APPDATA%/Code/User/mcp.json and %APPDATA%/Code/User/profiles/*/mcp.json and %APPDATA%/Code - Insiders/User/mcp.json and %APPDATA%/Code - Insiders/User/profiles/*/mcp.json | MCP servers |
| Windsurf (Devin Desktop) | Linux, macOS | $XDG_CONFIG_HOME/devin/mcp_config.json | MCP servers |
| Windsurf (Devin Desktop) | Windows | %APPDATA%/devin/mcp_config.json | MCP servers |
| Windsurf (Devin Desktop) | all | ~/.devin/global_rules.md | instruction file |
| Windsurf (Devin Desktop) | all | ~/.devin/rules/*.md | instruction files |
| Windsurf (Devin Desktop) | Linux, macOS | $XDG_CONFIG_HOME/devin/skills | skills |
| Windsurf (Devin Desktop) | Windows | %APPDATA%/devin/skills | skills |
| Windsurf (Devin Desktop) | Linux, macOS | $XDG_CONFIG_HOME/devin/AGENTS.md and $XDG_CONFIG_HOME/devin/AGENT.md | instruction files |
| Windsurf (Devin Desktop) | Windows | %APPDATA%/devin/AGENTS.md and %APPDATA%/devin/AGENT.md | instruction files |
| Windsurf (Devin Desktop) | Linux, macOS | $XDG_CONFIG_HOME/devin/agents/*.md and $XDG_CONFIG_HOME/devin/agents/*/AGENT.md | subagents |
| Windsurf (Devin Desktop) | Windows | %APPDATA%/devin/agents/*.md and %APPDATA%/devin/agents/*/AGENT.md | subagents |
| Windsurf (Devin Desktop) | Linux, macOS | $XDG_CONFIG_HOME/devin/config.json | hooks |
| Windsurf (Devin Desktop) | Windows | %APPDATA%/devin/config.json | hooks |
| Windsurf (Devin Desktop) | all | ~/.agents/skills | skills |
| Windsurf (Devin Desktop) | all | ~/.codeium/windsurf/mcp_config.json and ~/.codeium/windsurf-next/mcp_config.json and ~/.codeium/windsurf-insiders/mcp_config.json | MCP servers |
| Windsurf (Devin Desktop) | all | ~/.codeium/windsurf/skills and ~/.codeium/windsurf-next/skills and ~/.codeium/windsurf-insiders/skills | skills |
| Windsurf (Devin Desktop) | all | ~/.codex/skills | skills |
| Windsurf (Devin Desktop) | all | ~/.copilot/skills | skills |
| Codex | all | $CODEX_HOME/config.toml | MCP servers, hooks and notify, plugins and marketplaces |
| Codex | all | $CODEX_HOME/hooks.json | hooks |
| Codex | all | ~/.agents/skills | skills |
| Codex | all | $CODEX_HOME/AGENTS.md and $CODEX_HOME/AGENTS.override.md | instruction files |
| Codex | all | $CODEX_HOME/prompts/*.md | custom prompts |
| Codex | all | $CODEX_HOME/plugins/cache/*/*/* | installed plugins, with each plugin's manifest, MCP servers, hooks and skills |
| Gemini CLI | all | ~/.gemini/settings.json | MCP servers and hooks |
| Gemini CLI | all | ~/.gemini/extensions | extensions, which are its plugins, with their MCP servers, hooks, context files, skills and subagents |
| Gemini CLI | all | ~/.gemini/GEMINI.md | instruction file |
| Gemini CLI | all | ~/.gemini/skills | skills |
| Gemini CLI | all | ~/.agents/skills | skills |
| Gemini CLI | all | ~/.gemini/agents/*.md | subagents |
- Paths are shown relative to the home directory (
~/.claude.json) or under the variable that moved them ($CODEX_HOME/config.toml), never as absolute paths.$XDG_CONFIG_HOMEdefaults to~/.config,%APPDATA%to~\AppData\Roaming, and$CLAUDE_CONFIG_DIR,$CODEX_HOMEand$COPILOT_HOMEto~/.claude,~/.codexand~/.copilot. - A Claude Code server configured for one project is the item
~/.claude.json#<project>#<name>. Its project directory is shown relative to the home directory, such as~/work/app, and a project outside the home directory asoutside-home:<8 hex>/<last segment>, so no folder above the project is printed. - A folder that several clients read, such as
~/.agents/skills, is one set of items. It names each client that was found among those that read it, or every client that reads it when none of them was found. - The Devin folder is
$XDG_CONFIG_HOME/devin/on Linux and macOS and%APPDATA%/devin/on Windows. On Linux and macOS~/.config/devin/is read as well whenXDG_CONFIG_HOMEpoints elsewhere, because Devin's own pages name that folder. Since 1.20.0 a Windows scan no longer reads~/.config/devin/. - An installed Claude Code plugin that is one skill, with a SKILL.md at its root and no skills folder, is read as that skill since 1.20.0, with its commands and agents folders as the skill's files. Earlier releases read no skill for it, so such a home directory gains the skill and its findings.
- A symbolic link at a path of the table, or inside a skill, is followed when it leads to a file or folder inside the home directory, as dotfile managers set up. A link that leads out of the home directory is not followed. From scanner 1.16.1, it is an error only when content a client loads lies behind it, as with Nix home-manager, where client files are links into /nix/store: the scan is then incomplete, and the Workstations page shows the device as incomplete. The error message names the way out: remove the link, replace it with a copy, or point the client's own variable (for example
XDG_CONFIG_HOME) at the real directory. Any other link gets the notice symlink_skipped.
Not read
Not read by scanner 1.20.0:
- Windsurf's
~/.codeium/windsurf/memories/global_rules.md: only an archived page from before the rename to Devin Desktop names it. - Codex's
$CODEX_HOME/skills/as Codex's own folder, which no OpenAI page names any more. Cursor and Devin Desktop document loading~/.codex/skills/, so it is read as their folder. - The mcp.json files of VS Code's remote and WSL servers (under
~/.vscode-server/and~/.vscode-server-insiders/): VS Code's documentation names no path for them. - VS Code's user instruction files, prompt files and custom agents of the user profile: the documentation names no path. Copilot's
$COPILOT_HOME/instructions/and$COPILOT_HOME/agents/are read. - Claude Code plugins moved out of
$CLAUDE_CONFIG_DIR/plugins/byCLAUDE_CODE_PLUGIN_CACHE_DIR, parts a plugin declares outside its standard layout, a plugin'soutput-styles/,workflows/,monitors/and.lsp.json, and MCP bundles (.mcpb,.dxt). - System-wide managed files outside the home directory (
/etc/claude-code/,/etc/gemini-cli/,C:\ProgramData\), which belong to an administrator, not to the user. - Cursor's
~/.cursor/rules/: one help page names it without a format, and Cursor's rules page says user rules are kept in its settings, not in files. - Claude Desktop extensions: no Anthropic page names where they are installed.
- Windsurf's global workflows (
~/.codeium/windsurf/global_workflows/), which run only when the user asks. - Files that need a parser or a rule the scanner does not have: Codex's
rules/*.rules,agents/*.tomland profile files; Gemini CLI'scommands/**/*.tomlandpolicies/*.toml, in the home directory and in extensions, and the variableGEMINI_CLI_HOME; Copilot'slsp-config.jsonand the folders thatskillDirectoriesnames; Claude Code'sworkflows/*.js; and the settings keys that run commands besides hooks, such asstatusLineandapiKeyHelper.
The scanner reads a fixture home directory of each system in its tests. macOS is covered by the scanner's fixture tests, while its CI runs on Linux and Windows.
Automatic approval and write access in Codex and Gemini CLI
Since release 1.20.0, SW-CFG-012 (automatic approval) and SW-CFG-013 (write access) also judge the MCP servers of Codex's config.toml and Gemini CLI's settings.json. A Gemini CLI server with trust: true, a Codex server with default_tools_approval_mode = "approve" and a database or cluster server with write access are high findings, so a workstation that passed can fail after the upgrade.
A workstation scan takes no baseline file. The way out is the client's own setting, or --fail-on critical, which lets every high finding pass.
What is never read or sent
- It never changes a client file: every file is opened read-only.
- An endpoint or a marketplace source is shown as scheme, host, port and path, without a user name, query or fragment, which is where tokens in addresses usually sit.
- A local server is shown by its command identity, such as
cmd:npx pkg@1.2.0 args=<hash>, or by the reason it has none. Its arguments are never shown. - A finding on a configuration document shows its location and no excerpt, because those files hold environment values, headers and tokens.
- No environment value, header, argument or token is printed, written to a report or uploaded.
- It sends no usage ping, in CI or anywhere else, and probes nothing without
--probe. - It never uses connected mode: the repository variables
SPELLWARDEN_ORGandSPELLWARDEN_API_KEYare taken out of the environment and ignored.
Exit codes and limits
| Code | Meaning |
|---|---|
| 0 | Passed: no finding at or above the --fail-on level (high by default). |
| 1 | Failed on findings. |
| 2 | Incomplete or invalid: a usage error, a file that could not be read, a limit below reached, a missing workstation credential or label, or an upload that failed or was too large. |
When several apply, 2 wins over 1: content the scanner leaves unread never looks like a pass. What a home directory holds is the user's own content, so each of these limits reached is an error and an incomplete scan, exit code 2. The way out is to remove what is not used, or to scan without --user:
- At most 300 instruction files per client, read in the order of the table (
user_instructions_limit). - At most 1,000 skills per skills directory (
user_skills_limit). - At most 200 plugins and 200 marketplaces per state file, 200 Gemini CLI extensions and, since 1.20.0, 200 plugin directories each of Codex, Copilot and Cursor; each configuration document keeps the limits of a repository scan.
- No file over 10 MiB is read (
unreadable), and a file the user cannot read is the same error with its path.
Upload inventories to your organisation
Workstation inventories are part of the Enterprise plan. Any plan can create a workstation key, but uploads are accepted on the Enterprise plan only: a Team or trial organisation's upload is refused with plan_required.
- An owner or manager opens Settings, API keys, selects Create API key and chooses the access Workstation. A workstation key holds only workstation:write and cannot read anything: every other route of the API refuses it. One key can sit on many laptops, and an organisation can have 20 workstation keys at a time. API and keys covers creating and revoking keys.
- The developer, or a device management tool for every shell, sets two variables that only this command reads:
SPELLWARDEN_WORKSTATION_ORG, the organisation's URL name, andSPELLWARDEN_WORKSTATION_KEY, the key. - The developer runs the scan with
--uploadand, the first time, a device label:
SPELLWARDEN_WORKSTATION_ORG=<slug> SPELLWARDEN_WORKSTATION_KEY=swk_... spellwarden scan --user --upload --device-label "Anna's laptop"The upload is off unless --upload is given. Either variable missing or malformed is the error workstation_no_credential, before any client file is read.
Why not the CI variables
The two variables are not SPELLWARDEN_ORG and SPELLWARDEN_API_KEY on purpose. Either of those switches every repository scan on the machine to connected mode, which a workstation key cannot set up, so a laptop with them set would fail its repository scans. A repository scan never reads the workstation variables, so a device management tool can set them everywhere without changing anything else.
The device label and the state file
The first upload needs --device-label, 1 to 64 characters after control and zero-width characters are removed; without it the error is workstation_label_missing. The label is the developer's choice, such as Anna's laptop. The upload creates the state file workstation.json in the user configuration folder ($XDG_CONFIG_HOME/spellwarden/, ~/Library/Application Support/spellwarden/ or %APPDATA%\spellwarden\), readable by the user only where the system allows it. It holds a random install id and the label, and no key. Later uploads reuse both unless the label is given again; deleting the file makes the next upload a new device.
What the upload reports
After the scan and before any report is written, the scanner sends one request to https://dash.spellwarden.ai/api/v1/orgs/<slug>/workstations/inventory over HTTPS, with one retry after a rate limit or a server error. Success is the notice workstation_uploaded with the label; any other answer is the error workstation_upload_failed with the server's code and message, which makes the scan end with exit code 2, because an inventory you asked to send must not vanish silently. A failure of the command itself while it uploads is the same error with the code crash, and every report is still written.
Since release 1.16.0, every report carries the outcome. The text and JSON reports list the notice or the error, the Markdown report lists the error, and the JSON report's exit_code is 2 after a failure. A CycloneDX document counts the error in its spellwarden:errors property and says false in spellwarden:complete and 2 in spellwarden:exit_code. A SARIF file names the errors in its run's invocations when the upload failed. A GitLab Code Quality file lists findings only, so there the exit code alone says that the upload failed. The reports hold no timestamp: the server's time of the upload is in the stderr line only. The outcome is also printed on stderr, after the reports are written.
| Code | What it means | What to do |
|---|---|---|
plan_required | The organisation is not on the Enterprise plan. | Move to Enterprise, or stop uploading. |
device_limit | The organisation holds 10,000 devices, the limit. | Delete devices on Settings, Workstations; old ones also expire. |
inventory_too_large | The inventory has more than 2,000 items or 1,000 findings, or takes more than 380 KB stored. Nothing was stored. | Report it to us: the scanner checks the counts first. |
api_key_revoked | The key was revoked. | Ask for a new workstation key. |
workstation_key_required | The key is not a workstation key. | Use a key with the access Workstation. |
rate_limited | More than 12 uploads an hour from this device, or 6,000 from the organisation. | Upload later. |
crash | The scanner itself failed while it uploaded. Every report is still written, with the error. | Run the scan again, and report it to us if it repeats. |
Before sending, the scanner checks the limits of an upload: 1 MiB, 2,000 items and 1,000 findings. Over them nothing is sent and the error is workstation_upload_too_large. The upload lists the first 50 errors and 50 notices with their totals; the report on the workstation lists them all. Scanner 1.20.0 finds more items in a home directory, so an inventory that was under the limit can pass it: remove the plugins that are not used.
What Spellwarden stores
Spellwarden keeps only the latest upload of each device, in two records of its database:
- The device label, the operating system, the scanner and rules versions, whether the run listed or judged, whether the scan was complete, the clients found with their folders, and the counts of open findings by severity.
- Each item: its kind, name and path relative to the home directory, the project directory of a project-scoped server (relative to the home directory, and only the last segment of a project outside the home directory), the transport, the endpoint reduced to scheme, host, port and path, the command identity, the plugin, the marketplace and the instruction format.
- Each finding: the item it is in, the rule id, the severity, the line and whether it was accepted. The page shows each rule's title from the scanner's rule set, so no rule text is uploaded.
- The codes and paths of up to 50 errors and 50 notices with their totals, the first characters of the key that uploaded, and when the device first and last uploaded.
The inventory holds no hostname, no user name and no IP address, and no environment value, header, argument, excerpt or message. The upload carries the random install id, but Spellwarden does not store it: it keeps an identifier derived from the install id and the organisation, so the same laptop is a different device in another organisation. No audit entry and no analytics event is written for an upload.
The API's access log records the address of every API request for 90 days, uploads included; the inventory, the application's logs, the audit log and analytics hold no address.
A device is deleted 90 days after its last upload, and at once when an owner or manager deletes it. There is no history of earlier uploads. When an organisation is deleted, its workstation inventories are deleted with it. The privacy policy says the same.
Who sees it, and deleting a device
Only the organisation's owners and managers see the Workstations page, the people who already manage its keys and alerts. Members, viewers and the billing role never see it, and the API and the Claude connector have no route that reads an inventory.
- Settings, Workstations lists each device with its label, operating system, last upload, clients found, open findings by severity, whether the scan was complete and the name of the key it used, newest upload first, 50 a page.
- From scanner 1.16.2, the upload says how many folders each client had when more than 8 exist, and the page lists them under Folders scanned with the line "N more folders were scanned and are not listed."
- Selecting a device shows its items by client and kind, with each server's transport, endpoint or command identity and project directory, its findings with the rule and severity, and its errors and notices, with a line saying how many more the report on the workstation lists.
- Delete, on a row or in the panel, removes the device after a confirmation. It appears again if it uploads again. Delete all, in the page's header, removes every device after a confirmation.
- If your organisation leaves the Enterprise plan, owners and managers still see the stored devices on Settings, Workstations and can delete them; devices are removed 90 days after their last upload.
- Below the plan's notice, that page then lists the devices still stored with their label, operating system and last upload, with Delete on each row and Delete all. Uploads are refused, the device details and findings need the Enterprise plan again, and nothing is deleted when the plan changes.