Run security scans locally on macOS by installing the Semgrep CLI using brew. You'll have access to community rules without requiring a login.
When you are ready for more rules or need more coverage create a free account.
$ brew install semgrep
$ semgrep --config=auto
Run security scans locally on Windows using Semgrep CLI by using python to install. You'll have access to community rules without requiring a login.
Can be used with PowerShell, Windows Subsystem for Linux, or anywhere you can run Python.
$ python3 -m pip install semgrep
$ semgrep --config=auto
Run security scans locally on Linux distributions using Semgrep CLI by using python. You'll have access to community rules without requiring a login.
You can use Semgrep CE in a Docker container too by running docker pull semgrep/semgrep.
$ python3 -m pip install semgrep
$ semgrep --config=auto
Learn from our open source community champions
How does Semgrep CE work?
Source Code
Semgrep CE can review source code on your local filesystem or pulled from your software configuration management system. The programming languages used in your code base will be recognized automatically. This is effective because static analysis reviews source code prior to compile or runtime.
Scan Your Code
Semgrep CE is a deterministic rules engine trained to analyze programming language syntax. Semgrep Rules are downloaded from the Semgrep Registry to evaluate source code for patterns of what insecure code looks like.
The earlier in the development process you scan the easier it is for teams to catch security anti-patterns.
Triage the Findings
Semgrep CE provides output to a terminal or in a data format for review such as SARIF or JSON. These findings identify lines of code that match the pattern defined by the security rules with remediation advice to resolve the vulnerability.
Write your own rules or use advanced rules from Semgrep Code to take advantage of Pro engine features that improve results and further reduce false positives.
Given the same source code as input, Semgrep CE produces the same output. This deterministic behavior makes Semgrep beginner-friendly. You don't need a PhD in program analysis and abstract syntax trees to use Semgrep CE. Start by keeping the easy things easy, learn the foundations of secure software development. As needs evolve, create custom rules and workflows to support your team's needs.
Share security foundations with your team so everybody knows how to code securely.
False positives erode trust in application security tools. We prioritize semantic accuracy.
DevOps ready with IDE, CI/CD, and hooks for building custom integrations into development workflows.
Learn about the Fall 2025 releases with highlights including:
Private Beta
Open source under LGPL 2.1 license.
Graduate to the Semgrep AppSec Platform
Reasons you should consider upgrading from Semgrep CE to Semgrep AppSec Platform:
✔️ Add Supply Chain and Secrets detection
✔️ Even better false positive handling
✔️ Managed scanning to offload operations
✔️ Dashboard and reporting capabilities
✔️ More comprehensive security rules coverage
✔️ AI Assistant with remediation guidance
✔️ AI Memories for policies
✔️ Award winning support