# Setup Semgrep Plugin

> Set up the Semgrep plugin by installing Semgrep, authenticating, and verifying compatibility

- Skill: `semgrep/setup-semgrep-plugin` (Agent Skill)
- Install (CLI): `npx skillmds@latest add semgrep/setup-semgrep-plugin`
- Raw SKILL.md: https://api.skillmd.com/api/skills/semgrep/setup-semgrep-plugin/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: semgrep (https://skillmd.com/u/semgrep)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/semgrep/setup-semgrep-plugin

---

# Setup Semgrep Plugin

Follow these steps to set up the Semgrep plugin:

## 1. Install Semgrep

Check if Semgrep is installed, and install it if not:

```bash
which semgrep || brew install semgrep
```

## 2. Authenticate with Semgrep

Log in to Semgrep (this will open a browser window):

```bash
semgrep login --force
```

## 3. Install Semgrep Pro Engine

Install the Pro engine for enhanced scanning capabilities:

```bash
semgrep install-semgrep-pro || true
```

## 4. Verify Installation

Confirm everything is working:

```bash
semgrep --pro --version
```

## 5. Check Version Compatibility

Verify your Semgrep version is >= 1.146.0:

```bash
semgrep --version
```

If your version is older than 1.146.0, please update:
```bash
brew upgrade semgrep
```

