──[ ▮ comparison ]──
Semgrep and ShipGuard for Next.js founders
Semgrep is a broad code scanner for security teams. ShipGuard is a narrow check your coding agent runs on every change.
Short answer: Pick Semgrep when you need breadth: 30+ languages, your own rules, dependency scanning and a platform for a security team. Pick ShipGuard when you are a small team shipping a Next.js app with a coding agent and want one local yes-or-no on secrets, auth, payments, migrations and deploy settings. Many teams run both. What ShipGuard is.
What Semgrep does well
- It is a static analysis tool that searches code for bugs and enforces secure guardrails, and supports 30+ languages. [1]
- Rules look like the code you already write, so you can write your own. [1]
- It runs in an IDE, as a pre-commit check and in CI. By default it analyzes code on your machine or build environment and does not upload it. [1]
- Its README says the Community Edition analyzes within a single function or file, and recommends the Semgrep AppSec Platform for security work (SAST, dependency scanning, secrets). [1]
- The platform adds cross-file and cross-function analysis, a dependency scanner, secrets scanning and an AI assistant for triage. Its README says it includes free and paid tiers. [1]
- The engine is licensed LGPL-2.1. [1]
Semgrep and ShipGuard, side by side
| ShipGuard | Semgrep | |
|---|---|---|
| Best for[3][1] | Founders shipping with a coding agent | Developers and security teams |
| CLI and agent fit[3][1] | ✓ No dashboard to open. One command returns a JSON verdict, and with --strict a failing exit code. Works with Claude Code, Codex and Cursor | ✓ A command-line tool, plus an MCP server and a Claude Code plugin so a coding agent can run it |
| Where it runs[3][1] | ✓ Your machine. Your code never leaves it | ✓ Your machine or CI. Code stays there by default |
| Licence and install[3][1] | Open source CLI (Apache-2.0). One line to run, no account for the general rules | LGPL-2.1 (engine). Installs with pipx, uv, Homebrew or Docker. Login is optional |
| How you buy[4][2] | ✓ Self-serve, no sales call. One account covers any number of your machines and agents | ~ The free edition is a sign-up. Teams and enterprise plans go through Semgrep (contact us) |
| Pricing model and metering[4][2] | ✓ One flat price, no seats. Only rulebook scans are counted: 1,000 a month on Pro. General-rule scans are free and never counted | ~ Priced per contributor, with AI credits per developer each month |
| Languages[1][3] | ~ Tuned for Next.js and Supabase apps | ✓ 30+ languages |
| What it checks[1][3] | Five areas: secrets, auth, database, payments, deployment | ✓ Broad code patterns, plus dependency and secrets scanning on the platform |
| Your own rules[1] | ~ A policy file picks what blocks | ✓ Write rules that look like code |
| Dependency scanning[1][3] | ✗ Not part of ShipGuard | ✓ Semgrep Supply Chain |
| Verdict for an agent[3] | ✓ JSON recommendation plus exit code | ~ Findings list; you set the policy |
When Semgrep is the better pick
- You work in more than one language, or you need broad injection and data-flow checks. Both ShipGuard plans include injection rules. In our benchmark, only the full rulebook (Pro) flagged the SQL query built from strings (case C3). [1]
- You want to write and share your own rules. [1]
- You need dependency scanning, cross-file analysis or a dashboard to triage findings across a team. [1]
When ShipGuard is the better pick
- You ship a Next.js app with Claude Code, Codex or Cursor and want one command:
npx @agenticcli/shipguard scan --changed --strict --json. [3] - You want the checks AI-written apps tend to miss, by name: routes without login, unsigned payment webhooks, destructive migrations, open CORS, secrets in NEXT_PUBLIC_ variables. [3]
- You want no account, no dashboard and no per-seat price: the general rules are free and the full rulebook is one flat price. [3]
- You want the same answer for the same code: ShipGuard's checks are pattern rules with no AI model in the loop. [3]
Where ShipGuard stops
- ShipGuard is not a general code scanner. It has five check areas and no rule language of your own beyond the policy file.
- It has no dependency scanner. Use Semgrep Supply Chain, npm audit or a similar tool for that.
- It reads the files on disk, not past commits.
- It blocks only with --strict. Without that flag it reports and exits 0.
Run Semgrep and ShipGuard together
Semgrep for breadth on the pull request, ShipGuard as the gate on every change your agent makes.
Semgrep's README documents semgrep ci for a project; semgrep login is optional. ShipGuard runs the same way locally and in CI. [1][3]
ShipGuard's hook, from its own repo. Add the Semgrep hook from the Semgrep docs if you want it before the commit too. [3][5]
- Keep Semgrep as it is. Nothing to remove.
- Add ShipGuard as the per-commit check your agent runs, and as a CI step with --strict.
- Read the ShipGuard
recommendationfield for the verdict, and keep Semgrep's findings for your own triage.
Semgrep and ShipGuard: common questions
Is ShipGuard a Semgrep alternative?
Not a full one. Semgrep covers 30+ languages, custom rules and dependency scanning. ShipGuard covers five check areas for web apps and gives your agent a yes-or-no. If those five areas are your main risk, ShipGuard may be all you need; otherwise run both.
Does ShipGuard have a rule language like Semgrep?
No. ShipGuard has a policy file that decides which findings block, warn or are ignored. Writing your own detection rules is Semgrep's strength.
Do both tools keep my code on my machine?
Yes by default. Semgrep's README says code is not uploaded by default, and ShipGuard analyzes your files locally. Rules come down; code never goes up.
Which one fits a one-person SaaS with a coding agent?
Start with ShipGuard for the per-commit check: no account for the general rules and a JSON verdict your agent can read. Add Semgrep when you want broader code patterns, more languages or dependency scanning.
More comparisons and real scan output
- ShipGuard vs Snyk, Semgrep and GitGuardian
- gitleaks and ShipGuard: when to use which
- TruffleHog and ShipGuard: when to use which
- Claude Code /security-review and ShipGuard: when to use which
- Benchmark: 29 planted defects, 6 free tools and ShipGuard Pro
- Twelve checks before you ship an AI-built app
- Secret scanner for Next.js and Supabase apps
Sources
────────[ ▮ ShipGuard ]────────
Try the check on your own project
One command, no account for the general rules. Your code stays on your machine.