How it's built

Defense in depth, on your own hardware

Indexed search, file reads and chat run through the same gate. The scanner sits between your code and the index, so a detected credential or injected instruction is caught before it can be embedded or returned in a search result. Exact-string grep is the exception: it returns live lines as they are, except private keys.

Your disk
Your code

Repositories stay on hardware you own. Nothing is uploaded to index it.

Parse
AST-aware chunking

Functions and classes split on real boundaries across 16 languages.

Gate
Security scanner

Reads every chunk before it goes anywhere. Secrets and PII are redacted; injected instructions are flagged. Run it in tag-only dry-run or hard blocking mode.

[REDACTED:rule_id] flagged quarantine allowlist
Local
Embedder + index

A code-specialist model and your LanceDB index, both on your disk. The embedder sees redacted text; the index keeps the original beside it, so protect it like your source.

Access
MCP access gate

Bearer-token auth, a startup exposure guard, and tiered /health disclosure stand in front of the server.

Answer
Your agent

Claude Code, Antigravity, or any MCP client gets ranked chunks with file:line citations.

Opt into a cloud LLM and it receives the same ranked chunks, never whole files. Zero telemetry from CodeNavi either way.

What it does

Built to be self-hosted in a trusted network

Secrets and PII redacted at chunk time

Detection rules span AWS, GitHub, Slack, Stripe, GCP, OpenAI, JWTs, database DSNs, PEM/private keys, Firebase, and generic credential patterns, plus PII on by default: payment card numbers (Luhn-validated) and IBANs (mod-97-validated), with an opt-in extended set (SSN, email, phone, public IP). A match becomes [REDACTED:rule_id] before the chunk is embedded, and in every search result and chat context, so a leaked key or card number never reaches the embedder, your agent's results, or a model. The exception is exact-string grep_search, which reads your live files as they are.

Prompt & prose injection scanning

Instructions hidden in code comments, string literals, or documentation (a hostile README or PDF telling an agent to exfiltrate) are matched by dedicated rules plus prose heuristics. Flagged chunks are kept out of search results. The rules are pattern-based, so a new phrasing can slip through.

Quarantine & allowlist

Flagged chunks are indexed and tagged, and the retrieval gate keeps them out of search results. Review each one in the Security screen, and allowlist a false positive there. With dry-run off, files with critical or high findings are quarantined and never indexed.

Local-first, zero telemetry

Embedding, indexing, search, and reranking all run locally in a container you host, on your NVIDIA or AMD fleet, including Instinct MI300, with identical index quality on either. There is no usage beacon and no account. The only network calls are ones you can see and switch off: a once-a-day update check (version number and update token, never code; off with CODENAVI_UPDATE_CHECK=off) that also fetches a renewed licence, and what you configure yourself: a cloud LLM, the crawler or webhooks.

Signed & verifiable supply chain

Images are cosign-signed, shipped with a CycloneDX SBOM, and built on pinned model revisions with no remote model-code execution. You verify the signing-key fingerprint out of band (over this page, a different channel than the package) before you install.

Access control at the door

The MCP server takes bearer-token auth, and a startup exposure guard refuses to bind wide open by accident. The /health endpoint discloses in tiers, so an unauthenticated probe learns liveness, not internals.

Cloud LLMs stay optional and see chunks, not files

CodeNavi works fully offline. Enable Claude, OpenAI, or OpenRouter for chat and the model receives ranked chunks with citations, never whole source files, and the choice is yours to make, per install.

Inspect and control it

A dedicated Security screen in the web UI shows scanner status, lets you flip dry-run to blocking, browse every flagged chunk, manage quarantine and allowlist, and run a scan tester against arbitrary text. The policy is yours to see and set.

Framework fit, GDPR to FedRAMP

Self-hosted with no CodeNavi cloud in the path keeps the hard questionnaire rows short: CodeNavi adds no third-party recipient (GDPR), no code flows to the vendor (SOC 2, ISO 27001), no PHI reaches the vendor (HIPAA), and there is no cloud service to authorize (FedRAMP). A coding agent on a hosted model is a separate recipient, so assess it separately. The framework-by-framework mapping →

OWASP compliance gap analysis

The bundled Claude Code plugin adds /codenavi:compliance: an evidence-linked review of your indexed code against OWASP ASVS 5.0 core (30 rules) or the OWASP Top 10 2025. Every verdict cites file:line, "not applicable" and "cannot check from code" are stated honestly. Audit preparation, not a certification.

For developers who'd rather verify than trust

Security you can't inspect is just a marketing claim. CodeNavi is built so you can check the work: the whole architecture, threat model, and disclosure policy ship as SECURITY.md in every package.

  • Read the rules The detection ruleset is data you can open, extend, and diff, not a black box.
  • Run the scan tester Paste any snippet into the Security screen and watch exactly what would be redacted or flagged.
  • Check the signature Compare the shipped cosign.pub against the fingerprints published here, on a separate channel, before installing.
  • Choose the posture Fresh installs run tag-only dry-run so you see hits without breakage; flip to blocking when you're ready.
Self-hosted · Local-first · Signed & verifiable

Run it inside your own network.

Signed 30-day trial license, self-hosted on your infrastructure. No telemetry: CodeNavi sends your code to no one, and you can check that with egress monitoring.

Start your 30-day trial