diff --git a/docs/guardian.mdx b/docs/guardian.mdx index 8702b8b40..55d43742a 100644 --- a/docs/guardian.mdx +++ b/docs/guardian.mdx @@ -83,6 +83,52 @@ semgrep login && semgrep install-semgrep-pro The plugin registers a post-tool hook so Claude Code scans every file it writes. Learn more about [Claude Code plugins](https://code.claude.com/docs/en/plugins) and [hooks](https://code.claude.com/docs/en/hooks). + + + Beta. + + If you can't install the Semgrep CLI locally, you can use Semgrep's hosted remote server instead. + + + + Start a Claude Code instance: + + ```bash + claude + ``` + + + Add the Semgrep marketplace: + + ```bash + /plugin marketplace add semgrep/guardian-claude + ``` + + + Install the plugin from the marketplace: + + ```bash + /plugin install semgrep-plugin@semgrep-guardian-claude + ``` + + + Tell Claude to load the plugin: + + ```bash + /reload-plugins + ``` + + + Start a new session in Claude to begin the Semgrep login flow: + + ```bash + /clear + ``` + + Alternatively, exit and relaunch Claude Code. + + +