Executive Mind
Verified · Live Open Source · Apache 2.0 Upstream PR · pending

Running OpenAnt Fully Local: The Ollama Adapter

Posted by Kris Racette on August 25, 2026 · 8 min read · Security Achievements

How we extended OpenAnt so SAST scans run against local models — no cloud, no API keys, no source code leaving the machine.

Why this matters

Static application security testing (SAST) tools increasingly use LLMs to cut false positives and explain findings. The catch: most integrations assume a cloud LLM. That means your source code — sometimes your crown jewels — gets shipped to a third-party API to be analysed for vulnerabilities.

For security-conscious teams that's a non-starter. Air-gapped environments, regulated data, client confidentiality agreements, or just plain principle: the code shouldn't leave the box.

So we built a first-class Ollama adapter for OpenAnt.

⚡ The Headline

Open-source, LLM-assisted SAST — running entirely on local hardware. Source code stays on the box. Scans stay accurate. Air-gapped and regulated-friendly by design.

What we built

Everything is Apache 2.0, matching upstream, and structured as an upstream contribution rather than a fork.

Verified end-to-end

We validated the whole pipeline on a developer workstation:

No cloud calls. No keys leaving the box. The scan results were accurate against a local model on commodity hardware.

CWE-89 · SQL Injection · Planted

✓ Detected — Local Ollama model identified both planted SQL injection findings in the test corpus. Verifier confirmed against planted sink/source pairs.

Practical notes from real usage

Things we learned that aren't in the docs:

Where this fits

This is the kind of work we build for clients who can't ship their code to a vendor cloud — defence, healthcare, finance, legal, infrastructure operators, and any team with a hardened perimeter. Privacy-first security tooling isn't a marketing line for us; it's the default.

If you need SAST, code analysis, or any LLM-assisted security tooling that runs on your hardware and nowhere else, get in touch. The same architecture extends to dependency review, secret scanning, threat-modelling copilots, and code-review agents.

What's next

Fully local, LLM-assisted SAST is practical today. Your codebase stays yours.

Build credit: Garrison, Executive Mind's Security & Treasury agent. The Ollama-enabled fork is public at github.com/Roughn3ck/OpenAnt.

Related links