Ship fast and safe.
No secrets leave your Mac.
A local pre-commit gate for teams shipping with AI coding tools. Catches secrets, vulnerabilities, and bad patterns before git does — entirely on your machine.
macOS 14+ · Apple Silicon · MIT License · Zero cloud
How the 3-layer pipeline works
Every commit passes three gates in under 10 seconds — entirely on-device.
git commit
Staged diff
Layer 1
Rust Regex
< 1ms · BLOCKS
Layer 2
CoreML / ANE
~200ms · BLOCKS
Layer 3
Qwen LLM
~5-8s · ADVISORY
Report
Terminal + App
26 patterns
across 13 providers — AWS, GCP, Azure, Stripe, GitHub, Anthropic…
0.754 F1
CoreML trained on 297 samples across 11 languages on Apple Neural Engine
< 10s total
full 3-layer pipeline, entirely offline, no cloud required
Layer 1 · Rust Regex
Blocks secrets before they ship.
26 patterns across 13 providers, compiled once at boot and matched in under 1ms. The fastest gate in the pipeline — no LLM needed to catch an exposed AWS key.
- AWS, GCP, Azure, Stripe, GitHub tokens
- SSH private keys, Anthropic & OpenAI keys
- Hard blocks the commit — no bypass
Layer 3 · Qwen2.5-Coder
Semantic review by a local LLM.
SQL injection, XSS, command injection, dead functions, and logic bugs — reviewed across 11 languages by Qwen2.5-Coder running locally via MLX. Advisory only, never blocks.
- SQL injection, XSS, command injection
- Dead code, unhandled errors, logic flaws
- 11 languages — Python, Rust, TS, Go, Java…
Native App
A live window into every commit.
The SwiftUI app streams real-time scan events from every protected repo. Monitor tab shows each layer result as it runs. Repos tab manages hook status across all projects with one-click upgrades.
- Live stream from ~/.localforge/hook.log
- Multi-repo management — Active / Outdated / Missing
- Scan Folder discovers all git repos automatically
Installation
Install once. Protect every commit.
`localforge --install` wires the pre-commit hook, copies the binary to PATH, and auto-detects your Qwen model in HuggingFace cache — all in one command.
- Sets up ~/.localforge/ and installs hook (v4)
- Auto-detects Qwen from HuggingFace cache
- Works per-repo: localforge --install /path/to/repo
Team Setup
Ship security culture with --install-org.
Generates a turnkey shell script your team runs once. Drop it in your setup docs or Makefile — every engineer is protected without any per-user configuration.
- Generates a shareable install script
- Paste into dev setup docs or Makefile
- Auto PATH setup — no manual steps
MCP Server
Connect your IDE via MCP.
A JSON-RPC 2.0 server lets Cursor, VS Code, and any MCP-compatible tool query LocalForge directly. Integrate scan results into your editor workflow.
- JSON-RPC 2.0 · MCP-compliant
- Works with Cursor, VS Code, any MCP client
- Query scan results from your editor
MCP-compliant · JSON-RPC 2.0
What LocalForge catches
Seven categories of issues caught across three layers — from regex patterns to semantic LLM review.
AWS, GCP, Stripe, GitHub, Anthropic keys caught before they reach git history.
Raw string interpolation in queries flagged with parameterised query suggestions.
Unescaped user input inserted into DOM contexts identified across JS/TS.
Unsanitised variables passed to shell commands — blocked before commit.
Unreachable and unused code detected across 11 languages to keep the diff clean.
Missing try/except, unchecked Results, and swallowed panics surfaced before merge.
Off-by-one, incorrect conditionals, and edge-case gaps caught by Qwen semantic review.
See it in action
A live walkthrough of LocalForge intercepting a commit, running all three layers, and blocking a hardcoded secret — entirely on-device.
What developers say
Real reviews from engineers using LocalForge.
No reviews for now.
Be the first to leave one.
Start protecting your commits today.
Install in one command. Runs entirely on your Mac. Free and open source.
macOS 14+ · Apple Silicon · MIT License · v2.1.1