Sentinel reasons about exploitability on your actual diff, verifies each finding by attacking a running copy of your app, and never lets a line of your source code leave your machine. We offer a complete, end-to-end managed AppSec solution — SAST, SCA, secret scanning, and whitebox pentesting — so you never have to worry about a security failure reaching production again.
Most of the AppSec stack, whether that's SAST, SCA, dependency bots, or the newer "AI security" add-ons, is really answering one question: does this code match a known-bad pattern? That approach has two problems baked in. It can only catch vulnerabilities it has already catalogued, and it drowns you in noise. You get "47 vulnerabilities," three of which actually matter.
Sentinel takes a different approach. It reasons about exploitability in context.
- It reasons about exploitability. Pattern matching is a cheap prior that tells you where to look. The real work is the layer that decides whether a finding is actually reachable and exploitable in this specific codebase, on this specific diff. That layer kills the false positives signatures over-flag, and it also surfaces novel bugs no signature describes.
- It proves the bug before it pages you.
sentinel pentestboots a copy of your app and attacks it, confirming a finding with runtime evidence such as sanitizer output or behavioral proof. That closed exploit loop is something most commercial platforms don't even attempt. - Your source never leaves your machine. Diffs are computed, read, and analyzed locally by an LLM you configure with your own key, or a local Ollama model if you prefer. Only the code graph (file and line pointers plus short semantic labels, never source text) and the findings sync to the cloud. Self-hosted SaaS competitors expect you to upload your entire codebase.
- It's open source and multi-model. Bring Anthropic, OpenAI, or a fully local model. No vendor lock-in, and no closed SaaS you can't inspect.
The short version: turn tokens into security. Sentinel is the layer that answers "is my AI-generated code actually exploitable?" and then goes and proves it.
We seed known vulnerabilities into real, production-shaped repositories and measure how many each approach detects, holding the code, the ground truth, and the grading rubric identical across every run. The most recent run covers 25 injected vulnerabilities across 5 repositories (Next.js apps, a FastAPI service, a Python CLI, an Express web app), graded against a blind frontier-model reviewer.
| 17 / 20 | 85.0% | 84.0% | 83.4% |
|---|---|---|---|
| Sentinel vulns detected (4 measurable repos) |
Sentinel recall | Fable 5 mean recall (raw, single-shot) |
Opus 4.8 mean recall (raw, single-shot) |
This is a living benchmark. The figures below are from our most recent run (blind reviewer: Fable 5, July 2026). We re-run the suite as new frontier models ship and as we grow the seeded-vulnerability set, and we keep the full raw data and per-trial journals for audit. Expect these numbers to move; we publish the latest rather than a cherry-picked snapshot.
Sentinel matches or edges out frontier models on raw detection, and it does something neither a raw model nor a signature scanner does: it proves each finding by exploitation, so the noise that makes every other tool exhausting to run never reaches you.
| Repository | Stack | Ground truth | Sentinel | Fable 5 (raw) | Opus 4.8 (raw) |
|---|---|---|---|---|---|
scams |
Next.js event registration | 5 | 5 / 5 | 84.0% | 88.0% |
challenge |
Python CLI / tooling | 5 | 5 / 5 | 88.0% | 87.5% |
video-condense-backend |
FastAPI video service | 5 | 5 / 5 | 84.0% | 76.0% |
BaroButForCoding |
Express "code roast" app | 5 | 2 / 5 | 80.0% | 82.0% |
| Aggregate (4 measurable repos) | 20 | 17 / 20 (85.0%) | 84.0% | 83.4% | |
calhacksy1 |
Full-stack hackathon platform | 5 | n/a | 60.0% | 58.0% |
| All 5 repos (models only) | 25 | n/a | 79.2% | 78.3% |
How to read this. Sentinel's number is cumulative detection: the share of seeded vulns found across up to 10 scans of the same code. Fable 5 and Opus 4.8 are mean per-trial recall over 10 independent, single-shot blind reviews, so the two are not measured on an identical basis. calhacksy1 is excluded from Sentinel's aggregate because a git-tracked 69 MB venv/ breaks its init step, a fixable infra limit rather than a detection miss.
Recall is only half the story. Every finding a human has to dismiss is wasted time, and false positives, not misses, are what make security tooling exhausting to live with. In this run, the raw model's false-positive rate rose with codebase size, from ~1 on the small Python CLI to ~4.4 on the large full-stack app, and tracked surface area rather than which model was reviewing.
This is exactly the gap the pentest layer closes. A finding is only promoted to confirmed once Sentinel has reproduced it against a running copy of your app with a runtime oracle, so the unverified findings that pile up on larger codebases are filtered out before they ever reach your queue. Traditional SAST has no equivalent gate, which is why industry estimates put its false-positive rate north of 85%.
| Capability | Sentinel | Snyk / Semgrep | Sentry (Seer) | Dependabot / bots |
|---|---|---|---|---|
| Finds novel vulns (no signature needed) | Yes, reasoning-based | No, pattern-only | Limited, error-trace only | No, CVE feed only |
| Proves exploitability (runtime oracle) | Yes (sentinel pentest) |
No | No | No |
| False-positive rate | Near-zero (verified) | 85%+ noise | Medium | Reachability-blind |
| Reasons over reachability on the diff | Yes, code-graph aware | Partial (paid tiers) | No | No |
| Source code stays on your machine | Yes, always | No, uploaded to SaaS | No, uploaded to SaaS | Runs in your CI |
| Bring your own model (incl. local Ollama) | Yes | No | No | No |
| Reviews a design doc before code exists | Yes (sentinel plan) |
No | No | No |
| Open source and self-hostable | Yes (Apache-2.0) | No, closed SaaS | No, closed SaaS | Partial |
| Pricing model | Your tokens, your infra | Per-seat SaaS | Per-event SaaS | Free / GitHub |
Comparison reflects each product's default and documented AppSec capability as of mid-2026. Sentry is primarily observability and error-tracking; its AI (Seer) reasons over runtime traces rather than source-level exploitability.
# 1. Install the CLI and the local analysis engine
npm install -g sentineldev
pip install sentinel-worker # or: pip install ./worker from source
# ^ pip step is temporary: prebuilt, Python-free engine binaries (shipped as
# npm optionalDependencies) are coming so `npm install` alone will be enough.
# 1b. (Optional) Docker + gVisor — stronger pentest isolation. Skippable:
# `sentinel pentest` auto-degrades to a container-less boot without them.
# macOS: brew install --cask docker # then start Docker Desktop
# Linux: https://docs.docker.com/engine/install/ + scripts/install-gvisor.sh
# 2. Point the CLI at a backend for the shared graph + findings
sentinel auth login # hosted, or self-hosted (see below)
# 3. Configure your own LLM key, used locally and never sent to the server
sentinel config set provider anthropic
sentinel config set model claude-sonnet-4-6
sentinel config set api-key sk-ant-...
# 4. Initialize your repo and run your first scan, all on this machine
cd /path/to/your-repo
sentinel init
sentinel scanExample output:
Scanning HEAD~1..HEAD - 3 files changed
[*] Analyzing...
[ok] Scan complete - 18.4s - 2 issues found
1. CRITICAL SQL Injection src/db/queries.py:42
sql_injection - a1b2c3d4
User input reaches database query without parameterization.
-> Use parameterized queries or an ORM.
2. MEDIUM Hardcoded Secret config/settings.py:15
hardcoded_secret - e5f6a7b8
API key present in source-controlled file.
-> Move to environment variables and rotate the key.
2 issues - 1 critical - 1 medium
Every command runs its analysis locally, on your machine. That includes diff parsing, graph construction, and the LLM call itself. Only the resulting code graph (pointers plus short labels, never source) and the findings sync to the backend, so a team can share one graph and one finding history.
flowchart LR
A["git diff<br/>(read locally)"] --> B["Tree-sitter<br/>code graph"]
B --> C{"Parallel<br/>analysis"}
C --> D["SAST"]
C --> E["SCA"]
C --> F["Secret scan"]
G["LLM reasoning:<br/>reachable and exploitable?<br/>(your key, local call)"]
D --> G
E --> G
F --> G
G --> H{"Finding?"}
H -->|no| X["Nothing surfaced"]
H -->|yes| I["Pentest: boot the app,<br/>attack it, check the runtime oracle"]
I -->|oracle fires| J["Confirmed"]
I -->|no evidence| K["False positive, dropped"]
G -. "graph delta + findings (never source)" .-> L[("Backend<br/>graph and findings")]
style G fill:#5b21b6,color:#fff
style I fill:#b91c1c,color:#fff
style J fill:#166534,color:#fff
style K fill:#7f1d1d,color:#fff
style L fill:#1e3a5f,color:#fff
Setup (once per repo):
sentinel initparses the full codebase locally into a persistent code graph: call edges, data-flow edges, route and middleware chains, and semantic intent per node. It pushes the graph, not the source, to the backend.sentinel auth loginauthenticates the CLI against the backend that stores the shared graph and findings.
On every diff:
sentinel sourceupdates the graph incrementally and runs SAST, SCA, and secret scanning in parallel. It exits1if findings are returned, which makes it a drop-in CI gate.sentinel scanrunssourceplus automated pentesting of each finding.
Deep investigation:
sentinel pentesttries to confirm a finding with runtime oracle evidence: sanitizer output or behavioral proof, not just the agent's judgment.sentinel planreviews a design doc for security issues before any code is written.
Managing findings:
sentinel listlists findings, filterable by status and severity.sentinel pull <id>fetches full remediation context for a finding.sentinel suppress <id>suppresses a finding, with a required reason.
| Feature | What it does |
|---|---|
| Exploitability reasoning | Findings are judged on whether attacker input actually reaches them on this diff, not on whether they match a signature. |
| Closed exploit loop | sentinel pentest boots your app and attacks it, confirming vulns with sanitizer or behavioral evidence and re-testing after a fix to prove the bug is actually gone. |
| Persistent code graph | Call edges, data-flow edges, route and middleware chains, and semantic intent per node. Built once, updated per diff. |
| Local-first privacy | Source never leaves your machine. The LLM call happens locally with your key; only pointers, labels, and findings sync. |
| Multi-model | Anthropic, OpenAI, or local Ollama. Swap providers with one config set. |
| CI-native gate | sentinel source exits non-zero on findings, and ships as a self-contained GitHub Action with SARIF upload to the Security tab. |
| Design-time review | sentinel plan reviews a design doc for security issues before a line of code exists. |
| Shared team history | One graph, one finding history, and fingerprinted suppressions that survive refactors, all without uploading a single source file. |
- Quickstart
- How it works
- Features
- Benchmarks
- How Sentinel compares
- Install the CLI
- Self-host the backend
- Running a scan
- CI integration
- GitHub Action
- Using an LLM provider
- sentinel.config.json reference
- CLI reference
- Findings lifecycle
- Troubleshooting
- Architecture overview
- Contributing
npm install -g sentineldev
pip install sentinel-workerRequires Node.js v20 or later (node --version) and Python 3.12+ for the local engine. Prebuilt, Python-free engine binaries (shipped per-platform as npm optionalDependencies) are on the way — once published, the pip install step drops and npm install -g sentineldev is all you need.
Optional — Docker + gVisor (stronger sentinel pentest isolation). Not required: pentest auto-degrades to a container-less boot without them, and SAST never needs them.
# macOS
brew install --cask docker # then launch Docker Desktop
# Linux
# Docker Engine: https://docs.docker.com/engine/install/
# gVisor (runsc): ./scripts/install-gvisor.sh # registers the runsc runtime with DockerVerify what your machine resolves to with sentinel doctor. See Sandbox isolation.
Then:
sentinel auth login # browser device-code login for the shared graph/findings backend, not for AI calls
cd your-repo && sentinel init
sentinel source # scan your diff, entirely on this machinesentinel source and sentinel scan run the whole pipeline locally. The diff is computed and read on your machine, the LLM call happens on your machine with your own key, and only the resulting code graph (file and line pointers plus short labels, never source text) and the findings sync to the backend. Bring your own model key:
sentinel config set api-key sk-ant-...The key is stored in your system keychain (or ~/.sentinel/keychain.json as a 0600 fallback) and read directly by the local engine. It is never transmitted to the backend. See Using an LLM provider.
Pin it in your project (recommended for CI):
npm install --save-dev sentineldev
pip install sentinel-worker# .github/workflows/pr.yml
- run: npx sentinel source
env:
SENTINEL_LLM_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}Or use the GitHub Action below, which needs no separate pip install step.
To install from source instead:
git clone https://github.com/angadjosan/sentinel
cd sentinel/cli
npm install && npm run build && npm linkSentinel's backend (API, database, dashboard) runs in Docker. It is a results-only store: it only ever holds the code graph (pointers plus short labels, never source text) and findings. There is no worker process — SAST and pentest both run locally on your machine, and the backend just serves reads and receives finding writes. No source code, diffs, or payloads are ever sent to it, whether you self-host it or use the hosted default. Self-hosting is about controlling where the graph and findings live, not about keeping source local. Source is already local no matter which backend you point the CLI at.
| Requirement | Version | Install |
|---|---|---|
| Docker Desktop | Latest | docs.docker.com/get-docker |
| Ollama (optional, for a local LLM) | Latest | ollama.com |
Ollama is installed and used locally, alongside the CLI. It's not part of the backend. See Using an LLM provider.
git clone https://github.com/angadjosan/sentinel
cd sentinel
# Create your env file and set the two required secrets
cp .env.example .env
# Edit POSTGRES_PASSWORD and SENTINEL_JWT_SECRET (see .env.example for instructions)
docker compose up -dWait for the API to be ready (roughly 10 to 20 seconds):
curl http://localhost:8000/health
# -> {"status":"ok"}| Service | URL | Description |
|---|---|---|
| API | http://localhost:8000 |
REST API. The CLI talks to this. |
| Dashboard | http://localhost:3000 |
Web UI for findings and run history |
| Postgres | localhost:5433 |
Database (persists across restarts) |
Linux:
docker composerequires the compose plugin. If you getcommand not found, install it:apt-get install docker-compose-plugin
ollama pull llama3.2Then tell the local engine where Ollama lives. This is read directly by the CLI's local engine process on your machine, not by anything in Docker:
sentinel config set provider local
sentinel config set model llama3.2
sentinel config set api_endpoint http://localhost:11434For a hardened production deployment (strong DB credentials, restart policies, no dev mode):
cp .env.example .env # fill in all values
docker compose -f docker-compose.prod.yml --env-file .env up -dFor TLS, put nginx or Caddy in front of the API:
server {
listen 443 ssl;
server_name api.your-domain.com;
ssl_certificate /etc/letsencrypt/live/api.your-domain.com/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/api.your-domain.com/privkey.pem;
location / {
proxy_pass http://localhost:8000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}cd /path/to/your-repo
sentinel scanThe scan diffs your git history rather than the full codebase. By default:
- If you have uncommitted changes (staged or unstaged), those are scanned.
- If the working tree is clean, the most recent commit (
HEAD~1..HEAD) is scanned.
sentinel scan # auto-detect
sentinel scan --staged # staged changes only
sentinel scan --base origin/main # everything not in main
sentinel scan --base HEAD~5 # last 5 commits
sentinel scan src/auth/ # scope to a directory
sentinel scan --no-pentest # SAST + SCA + secrets only, skip pentest
sentinel scan --dry-run # preview what files would be scannedsentinel list # list all open findings
sentinel pull <id> # full description + step-by-step fixSAST tells you a finding looks exploitable. Pentest proves it. Like everything else in Sentinel, pentest runs entirely on your machine — the local engine boots a copy of your app, generates payloads, and observes the app's behavior for a runtime oracle. There is no cloud worker: the backend only receives the confirmation outcome afterward.
sentinel pentest runs the full sandbox stack locally and pushes only the result:
sentinel pentest [id]
└─ local engine boots the target under a gVisor sandbox (runsc)
└─ token-scoped egress proxy · canary tokens · credential broker · attack-safety budget
└─ agent generates payloads (reading local source), dispatches them, checks the oracle
└─ POST /findings/{id}/confirm ───► backend (confirmation outcome + evidence only)
confirmed only on HTTP/behavioral proof, a leaked
canary, or sanitizer output — never agent judgment alone
Booting a possibly-malicious target is risky, so Sentinel prefers to run it inside a container under gVisor — the runsc OCI runtime, a user-space kernel that intercepts the target's syscalls — behind a token-scoped egress proxy. gVisor runs under Docker (docker run --runtime=runsc), which is why they're referred to together as "Docker/gVisor".
gVisor is on by default and degrades gracefully — it is not a hard requirement. The engine resolves the strongest sandbox your machine supports and logs which rung it chose:
| Rung | Needs | Isolation |
|---|---|---|
gVisor (runsc) |
Docker + gVisor | Strongest — syscall-level sandbox + egress proxy (+ iptables hard-egress with NET_ADMIN) |
Docker (runc) |
Docker | Standard container isolation + egress proxy. Used automatically when gVisor isn't registered. |
| subprocess | nothing | The target boots directly on the host — no container, no egress proxy. Used automatically when Docker is absent, so a machine with no Docker can still run pentests. |
Each downgrade is logged to your terminal, e.g. Docker/gVisor not found — running the pentest WITHOUT a container sandbox …. This means npm install + an LLM is enough to run a pentest; Docker + gVisor only add isolation strength.
Controls:
sentinel pentest --no-sandbox(orsentinel scan --no-sandbox) forces the container-less subprocess rung.SENTINEL_SANDBOX_RUNTIME—auto(default, degrades),gvisororrunc(require that runtime; error if unmet),off(same as--no-sandbox).- Run
sentinel doctorto see which rung your machine resolves to.
(SAST — init/source/scan/plan — never needs any of this.)
The engine needs to reach a running copy of your app. Configure this per repo — on the dashboard Team → Pentest Configuration, or with sentinel config set (synced to the cloud repo, which the local run reads back):
| Mode | When | Config |
|---|---|---|
local_worker (default for local boot) |
The engine boots the app itself under the gVisor sandbox on your machine. | boot, healthcheck, egress_allowlist |
staging |
The engine sends HTTP probes to an already-running deployment it can reach. | staging_base_url, healthcheck_path |
# Boot mode: let the engine boot the app under the sandbox
sentinel config set pentest_mode local_worker
sentinel config set boot "docker compose up -d"
sentinel config set healthcheck "curl -sf http://localhost:3000/health"
# Staging mode: point the engine at a reachable deployment
sentinel config set pentest_mode staging
sentinel config set staging_base_url https://staging.your-app.com
sentinel config set healthcheck_path /healthThe pentest agent uses your local LLM key — the same one SAST uses, stored only in your system keychain (or SENTINEL_LLM_API_KEY in CI). There is no separate server-side pentest credential; nothing pentest-related is uploaded to the backend.
A finding is marked confirmed only with a runtime oracle: an HTTP/behavioral proof (data exfiltrated, auth bypassed, command executed), a leaked canary token, or a sanitizer stack trace. The agent asserting "this is exploitable" is not sufficient. The local engine evaluates the oracle, then posts the confirmation and evidence to POST /findings/{id}/confirm, which writes a CONFIRMED_EXPLOIT edge; evidence text is visible in the dashboard finding detail and via sentinel pull <id>.
Source, diffs, payloads, the live target, and all secrets stay on your machine. Only evidence text and node pointers cross to the backend — no source is ever uploaded for pentest. The full run trace is written to ~/.sentinel/runs/<id>.jsonl and never leaves the machine.
Drop this into your GitHub Actions workflow. sentinel source runs the whole pipeline in the runner. The LLM call happens there, using the key you provide via env, and is never uploaded anywhere:
- name: Install Sentinel
run: |
npm install -g sentineldev
pip install sentinel-worker
- name: Scan PR diff
run: sentinel source --base ${{ github.event.pull_request.base.sha }}
env:
SENTINEL_TOKEN: ${{ secrets.SENTINEL_TOKEN }} # auth for the graph/findings backend
SENTINEL_LLM_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} # your LLM key, used only in this jobsentinel source exits 1 if findings are returned, so you can use it as a blocking gate. See examples/github-actions.yml for a full workflow, or examples/gitlab-ci.yml for GitLab.
If you'd rather not install the CLI and engine separately in CI, use the GitHub Action below. It's self-contained.
Sentinel ships a composite GitHub Action that runs the entire scan inside your
own CI runner. The pipeline (diff, then tree-sitter graph, then SCA plus secret scan plus SAST)
executes locally against an ephemeral SQLite database, so your source code never
leaves the runner. Only finding metadata is produced: a SARIF report (uploaded to
GitHub code scanning) and, optionally, findings POSTed to your Sentinel cloud via
ingest-url. No Docker image or published package is required. The action installs
the scanner straight from its own checkout.
The action uploads SARIF to GitHub code scanning, which needs security-events: write.
A GitHub Action can't grant itself permissions, so set them in your workflow:
permissions:
contents: read
security-events: write(Set upload-sarif: false if you don't want code-scanning uploads. Then only
contents: read is needed.)
name: Sentinel
on: pull_request
permissions:
contents: read
security-events: write
jobs:
sentinel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: angadjosan/sentinel@v0.1.0
with:
provider: mock # secrets + dependency (SCA) scan, no LLM
fail-on: highname: Sentinel
on: pull_request
permissions:
contents: read
security-events: write
jobs:
sentinel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: angadjosan/sentinel@v0.1.0
with:
provider: anthropic
model: claude-sonnet-4-6
api-key: ${{ secrets.ANTHROPIC_API_KEY }}
fail-on: high
# Optional: ship findings (never source) to your Sentinel cloud
# ingest-url: ${{ secrets.SENTINEL_API_URL }}
# ingest-token: ${{ secrets.SENTINEL_TOKEN }}Always check out with fetch-depth: 0 so the action can compute an accurate PR diff
against the base branch.
| Input | Default | Description |
|---|---|---|
repo-name |
${{ github.repository }} |
Logical repo name recorded with findings. |
provider |
mock |
anthropic | openai | local | mock. mock = secrets + SCA only (no LLM). |
model |
"" |
Model name; empty uses the provider default. |
api-key |
"" |
LLM API key (passed via env; never logged). |
llm-endpoint |
"" |
Custom LLM endpoint, e.g. an Ollama URL for provider: local. |
base-ref |
"" |
Base ref for the diff. Empty auto-detects: PR base sha, push before, else origin/<default-branch>. |
fail-on |
high |
Fail the job at or above this severity: info|low|medium|high|critical|none. |
sarif |
sentinel.sarif |
Path for the SARIF 2.1.0 report. |
upload-sarif |
true |
Upload SARIF to GitHub code scanning (needs security-events: write). |
ingest-url |
"" |
Sentinel cloud base URL. Findings (not source) POSTed to {url}/findings/ingest. |
ingest-token |
"" |
Bearer token for ingest-url (passed via env; never logged). |
python-version |
3.12 |
Python used to run the scanner (3.12+). |
working-directory |
. |
Path to the git checkout to scan. |
The action exits non-zero (failing the PR check) when findings reach the fail-on
threshold. The SARIF upload still runs first, so results appear in the Security tab.
See examples/github-actions.yml for a complete workflow.
Sentinel supports Anthropic, OpenAI, and local models (Ollama). The LLM call always happens locally, on the machine running the CLI, regardless of which provider you pick:
# Anthropic
sentinel config set provider anthropic
sentinel config set model claude-sonnet-4-6
sentinel config set api-key sk-ant-...
# OpenAI
sentinel config set provider openai
sentinel config set model gpt-4o
sentinel config set api-key sk-...
# Local (Ollama), see "Pull an Ollama model" above
sentinel config set provider local
sentinel config set model llama3.2provider and model are synced to the backend as metadata, so the dashboard can show what a run used. But api-key is not: it's stored only in your system keychain (or ~/.sentinel/keychain.json, mode 0600, as a fallback) and read directly by the local engine process. The server rejects any attempt to set it and never stores one. In CI, set SENTINEL_LLM_API_KEY (or the provider-specific ANTHROPIC_API_KEY / OPENAI_API_KEY) as an env var instead of running config set api-key.
You don't need to set api_endpoint for Anthropic or OpenAI, only for a custom endpoint (for example, an Ollama server not on localhost:11434).
Written by sentinel init into your repo root. Commit this file. It contains no secrets.
| Field | Type | Default | Description |
|---|---|---|---|
apiUrl |
string | hosted backend | Backend URL for the shared code graph + findings (not used for AI calls) |
repoName |
string | directory name | Display name for this repo |
provider |
string | local |
LLM provider: local (Ollama), anthropic, or openai. The call always runs on this machine. |
model |
string | (none) | Model name |
boot |
string | (none) | Command to start your app for pentesting (runs locally) |
healthcheck |
string | (none) | Command that exits 0 when app is ready |
env.from |
string | (none) | Path to env file loaded into the local pentest process |
egress_allowlist |
string[] | [] |
Hosts the local pentest sandbox may contact |
firecracker.* |
(none) | (none) | Unused. Pentest runs locally under a gVisor sandbox (runsc) now, not a Firecracker microVM. Kept for schema back-compat only. |
Example (local_worker mode — the engine boots the app under the sandbox):
{
"apiUrl": "https://sentinel-steel-xi.vercel.app",
"repoName": "my-app",
"provider": "local",
"model": "llama3.2",
"pentest_mode": "local_worker",
"boot": "docker compose up -d",
"healthcheck": "curl -sf http://localhost:3000/health"
}You can instead point the engine at an already-running deployment with staging mode:
{
"pentest_mode": "staging",
"staging_base_url": "https://staging.my-app.com",
"healthcheck_path": "/health"
}Check that everything is set up correctly. Run this first if something isn't working.
sentinel doctorChecks: git repo present, config file, backend reachable, authenticated, the local engine (sentinel_worker) installed, LLM configured (provider, model, and key resolvable locally), the pentest sandbox tier (Docker, and gVisor's runsc runtime), and the repo's pentest config. The Docker/gVisor checks are advisory — SAST never needs them, and sentinel pentest auto-degrades to a container-less boot without them (they only add isolation strength).
Initialize Sentinel for this repository. Run once from your repo root.
sentinel init [--api-url <url>] [--repo-name <name>]Writes sentinel.config.json and parses your codebase locally to build the initial code graph. Source is read from disk and never leaves this machine; only the resulting nodes and edges (file and line pointers plus short semantic labels) are pushed to the backend. The first init can take 30 to 120 seconds depending on repo size and model speed.
Authenticate the CLI. Run after init. Re-run after resetting the database.
sentinel auth loginPrints a verification URL. With SENTINEL_DEV_MODE=1 (default in docker-compose.yml) it auto-approves with no browser step. Otherwise the URL opens the dashboard's device-approval page (SENTINEL_DASHBOARD_URL on the API), where you log in (or sign up) and approve the device to finish. The issued token is long-lived (around 90 days), stored in the system keychain, and never written to disk.
Revoke the stored credential, both locally and on the server.
sentinel auth logoutShow the currently authenticated user, role, and account.
sentinel auth whoamiScan the current git diff, entirely locally. Runs SAST, SCA, and secret scanning, with the LLM call made on this machine using your configured key; only the graph delta and findings are pushed to the backend. Exits 1 if findings are found.
sentinel source [--staged] [--base <ref>] [paths...]Full scan: source plus automated pentesting of each finding, all locally.
sentinel scan [--staged] [--base <ref>] [--no-pentest] [--pentest-concurrency <n>] [paths...]--no-pentest scans locally and skips the pentest step entirely.
Confirm a finding with runtime oracle evidence. Boots your app locally under a gVisor sandbox (via boot and healthcheck in sentinel.config.json), routes its egress through a token-scoped proxy, seeds canary tokens, then the pentest agent generates payloads reading local source, runs them against it, and checks for a leaked canary, sanitizer output, or behavioral proof — all on this machine. Only the confirmation outcome and evidence text are pushed to the backend.
sentinel pentest # auto-select
sentinel pentest abc123ef-... # by finding ID
sentinel pentest "SQL injection in user login handler" # by description (resolved locally)
sentinel pentest abc123ef-... --no-sandbox # skip the container sandboxDocker/gVisor is recommended but optional — the sandbox is on by default and auto-degrades (gVisor → Docker → container-less subprocess) with a logged notice when a runtime isn't found, so the command runs even with no Docker installed. Use --no-sandbox to force the container-less rung, or SENTINEL_SANDBOX_RUNTIME=gvisor|runc to require a runtime. It also needs the repo's pentest reachability configured: boot/healthcheck for local boot (the default), or a reachable staging_base_url for staging mode. See Pentest (local). The pentest agent uses your local LLM key, the same one SAST uses.
Review a design doc or inline text for security issues before implementation, locally, the same way source does. Exits 1 if issues are found.
sentinel plan DESIGN.md
sentinel plan "users reset passwords via a magic link sent to their email"
cat plan.txt | sentinel planList findings for this repo.
sentinel list [--status open|suppressed|confirmed] [--severity critical|high|medium|low|info]Fetch full remediation context: description, step-by-step fix, and the code graph node the finding is anchored to.
sentinel pull <id> # first 8 characters of the ID are enoughsentinel suppress <id> --reason <reason> # suppress
sentinel suppress remove <id> --reason <reason> # unsuppress
sentinel suppress approve <id> --reason <reason> # approve pending suppression
sentinel suppress reject <id> --reason <reason> # reject pending suppressionSuppressions are keyed on a file + vuln_type fingerprint, so they survive refactors that shift line numbers.
sentinel runs list # list all runs
sentinel runs show <id> # trace + token breakdown
sentinel runs watch <id> # stream live events from a running scan
sentinel runs cancel <id> # cancel an in-progress runruns show <id> reads the full local trace (every prompt, every tool call) from ~/.sentinel/runs/<id>.jsonl when the run originated on this machine. That file never leaves it. If no local trace exists for the ID (for example, it came from a teammate's run or from CI), it falls back to the backend's redacted summary trace: token spend and event kinds only, never prompts or tool payloads.
sentinel config show # display current config
sentinel config set <key> <value> # update a valueKeys synced to the backend (metadata only, for the dashboard): provider, model, api_endpoint
Keys stored only in the system keychain, never sent anywhere: api-key
Local-only keys: apiUrl, repoName, boot, healthcheck
stateDiagram-v2
[*] --> open
open --> confirmed: pentest passed, oracle evidence
open --> suppressed: dismissed with a reason
suppressed --> approval_pending: if approval required
approval_pending --> approved
approval_pending --> open: rejected
confirmed --> [*]
approved --> [*]
Approved suppressions aren't re-surfaced on subsequent scans unless the file + vuln_type fingerprint changes.
Run this first. It diagnoses the common issues:
sentinel doctorDocker isn't running, or the API container is down.
docker compose up -d
curl http://localhost:8000/healthIf the API keeps crashing:
docker compose logs api --tail 50sentinel auth loginYou need to re-run this after resetting the database (docker compose down -v).
sentinel init
sentinel auth loginThe local engine (running directly on your machine, not in Docker) can't reach Ollama.
# Ollama must actually be running
ollama serve & # or: open the Ollama app
# Set the provider, model, and endpoint the local engine will use
sentinel config set provider local
sentinel config set model llama3.2 # must match `ollama list`
sentinel config set api_endpoint http://localhost:11434
# Verify
sentinel doctorsentinel config set api-key <your-key>This is stored in your system keychain and read directly by the local engine, so it's never sent to the backend. An invalid key won't show up as a server-side config problem, so re-run sentinel doctor after setting it.
- Empty diff. If the working tree is clean and
HEAD~1..HEADis also empty (a new repo with one commit), there's nothing to scan. Make some changes and re-run. - Model is too small. Models under 7B may not produce reliable findings. Try
llama3.2(3B) at minimum, orqwen3or a cloud model for better results. - Ollama connectivity. Run
sentinel doctorto verify the local engine can reach Ollama.
The database uses a named volume and persists across normal restarts. It's only wiped with:
docker compose down -v # -v removes volumes, use with cautionflowchart TB
subgraph LOCAL["On your machine (or a CI runner)"]
CLI["CLI (Node.js)"]
ENG["Local engine<br/>(Python, sentinel_worker)"]
REPO[("Your repo<br/>git diff, working tree")]
LLM["LLM provider (your account)<br/>Anthropic / OpenAI / local Ollama"]
CLI -->|spawns| ENG
ENG -->|reads| REPO
ENG -->|"your key, via keychain/env"| LLM
end
subgraph CLOUD["Backend (hosted or self-hosted)"]
API["Backend API (FastAPI)<br/>graph, findings, auth only"]
PG[("Postgres<br/>graph, findings")]
DASH["Dashboard (Next.js)"]
API -->|SQL| PG
DASH -->|"fetch findings, graph,<br/>run summaries (never source)"| API
end
ENG -->|"graph delta + findings (never source)"| API
style LOCAL fill:#0f172a,color:#fff,stroke:#334155
style CLOUD fill:#1e293b,color:#fff,stroke:#334155
style LLM fill:#5b21b6,color:#fff
style REPO fill:#166534,color:#fff
Key design decisions:
- Source never leaves your machine.
sentinel init,source,scan,plan, andpentestall run their analysis (diff parsing, graph construction, and the LLM call itself) in the local engine process. The CLI spawns it, pipes the diff over stdin, and parses one JSON result line from stdout. - The LLM call happens locally, with a key you configure (
sentinel config set api-key) that lives only in your system keychain. The backend can't see it, store it, or make a call on your behalf.PATCH /configrejects anapi_keyfield outright. - Only the code graph and findings sync to the backend. Graph nodes store pointers (
file,line_start,line_end) and short LLM-written labels, never source text.POST /graph/upsertandPOST /findings/ingestare the only write paths; there's no endpoint that accepts a diff or file contents. - Pentest runs locally too. The app boots on your machine (via
bootandhealthcheck), payloads are generated and sent by the local engine, and only the confirmation outcome (POST /findings/{id}/confirm) crosses to the backend. - Run traces stay local. The full trace (every prompt, every tool call) is written to
~/.sentinel/runs/<id>.jsonland never uploaded. The backend only ever sees a redacted summary (token spend and event kinds). - The code graph is stored in Postgres, keyed by account and repo.
sentinel initbuilds it once locally and pushes it; subsequent scans push only the delta for changed nodes. - Findings are fingerprinted on
file + vuln_typeso suppressions survive line-number shifts and minor refactors. - LLM calls enforce channel separation: instructions live in the system prompt, and analyzed code lives in the user prompt. They never mix.
- The CLI itself is stateless. There's no local database and no cache, only
sentinel.config.json(safe to commit) and the keychain entry for your LLM key.
Sentinel is open source, and we welcome contributions. New language grammars for the code graph, additional oracle types for the pentest layer, benchmark repos, and provider integrations are all high-value.
git clone https://github.com/angadjosan/sentinel
cd sentinel
docker compose up -d # backend
cd cli && npm install && npm run build && npm link # CLI from sourceRun sentinel doctor to confirm your environment, open an issue to discuss larger changes, and send a PR against main.
Sentinel. Turn tokens into security.
Benchmark methodology: 25 seeded vulnerabilities across 5 repos, with identical git worktrees and grading rubric across all runs. Sentinel figures are cumulative detection; blind-review model figures are single-shot per-trial means. Full raw data and journal retained for audit.

