Scan your codebase for vulnerabilities changedclaude-security
Upstream edited this page at 26 Nov 2026 03:59 UTC, give or take a minute or two: the time comes from Anthropic’s own sitemap rather than from a commit. This site recorded the change at 26 Nov 2026 04:07 UTC.
Upstream edited
Recorded here
Lines+22added
Lines−6removed
From line
63
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits24to this page, all time
The whole hunk
from line 63, old and new numbered
/
from line 63
6363
6464### Update the plugin
6565
66If a command or option doesn't work, [check](https://code.claude.com/docs/en/plugins/install.md#install-a-plugin) that you have version 0.13.0 or later of the plugin.
66If a command or option doesn't work, [check](https://code.claude.com/docs/en/plugins/install.md#install-a-plugin) that you have version 0.13.1 or later of the plugin.
6767
6868To update the plugin yourself, see [Update plugins now](https://code.claude.com/docs/en/plugins/install.md#update-plugins-now). Claude Code also [updates the plugin automatically](https://code.claude.com/docs/en/plugins/install.md#keep-plugins-updated) unless auto-update is turned off.
6969
from line 286
286286
287287The plugin includes the command. To add it to your `PATH`, enter `/claude-security:install-cli` in Claude Code and follow what it prints.
288288
289Then run it in your repository, with `--sudo` or `--no-sandbox` if your system needs it:
289For a scan in the sandbox, add `--provider` with the value for the provider that receives your code:
290290
291* **Scan the codebase**: `claude-security`
292* **Scan this branch's changes**: `claude-security --changes`
293* **Scan with a full-screen view**: `claude-security --tui`, which needs Node.js 18 or later
291* `anthropic`: paid plan or Anthropic API
292* `bedrock`: [Amazon Bedrock](https://code.claude.com/docs/en/amazon-bedrock.md)
293* `vertex`: [Google Cloud's Agent Platform](https://code.claude.com/docs/en/google-vertex-ai.md), formerly Vertex AI
294* `foundry`: [Microsoft Foundry](https://code.claude.com/docs/en/microsoft-foundry.md)
295
296To find your value, run `claude` in your terminal, enter [`/status`](https://code.claude.com/docs/en/commands#all-commands), and look for an `API provider` row and a base URL row:
297
298* **`API provider` row**: use the matching value for `Amazon Bedrock`, `Google Vertex AI`, or `Microsoft Foundry`. For any other provider, such as `Amazon Bedrock (Mantle)`, [scan in a session](#scan-and-fix-your-codebase).
299* **Base URL row**: pass the URL too. For example, for `Anthropic base URL`, use `--provider anthropic --model-base-url https://models.example.com`. If the command refuses the URL, scan in a session.
300* **Both rows absent**: if you use Claude Code through your organization, ask your administrator which value to use. Otherwise, use `anthropic`.
301
302If you pass a base URL, your credential can go to that host. For `Anthropic base URL`, export a credential that the host issued: `ANTHROPIC_AUTH_TOKEN` for a bearer token or `ANTHROPIC_API_KEY` for an API key.
303
304Run one of these commands in your repository, with your value in place of `<provider>` and with `--model-base-url` or `--sudo` if you need them:
305
306* **Scan the codebase**: `claude-security --provider <provider>`
307* **Scan this branch's changes**: `claude-security --provider <provider> --changes`
308* **Scan with a full-screen view**: `claude-security --provider <provider> --tui`, which needs Node.js 18 or later
309* **Scan on Windows**: replace `--provider` and `--model-base-url` with `--no-sandbox`, such as `claude-security --no-sandbox --changes`
294310* **List the other options**: `claude-security --help`
295311
296312The command runs in [auto mode](https://code.claude.com/docs/en/permission-modes.md#eliminate-prompts-with-auto-mode), and stops if auto mode isn't available. If your Claude Code model doesn't support it, add `--model` with one that does. For any other cause, [scan in a session](#scan-and-fix-your-codebase).
No line in this hunk matches that.