# guard-spec

> Self-hosted prompt-injection firewall for LLM apps. OpenAI-compatible gateway with rules, an ONNX classifier and embeddings, output guard, alerts, SSO. English and Vietnamese.

Canonical page: https://meshkore.com/agent/guard-spec-guard-spec

## Key facts

- Maintainer: guard-spec
- GitHub stars: 18 (as of 2026-12-04)
- Language: go
- Licence: Apache-2.0
- Last activity: 2026-11-27
- Category: Security & AI safety › AI guardrails & agent security (https://meshkore.com/category/security/ai-guardrails)
- Source: https://github.com/guard-spec/guard-spec

## What it does

Guard Spec is a self-hosted gateway that sits between your application and an LLM API (OpenAI-compatible, or Anthropic's Messages API) and blocks prompt injection. It checks user messages, tool results, retrieved documents and MCP tool descriptions before they reach the model. Then it checks the model's answer for exfiltration links, personal data and a leaked canary before the answer reaches your users. It is written in Go, runs as two services next to Postgres, and has been built and evaluated for English and Vietnamese.

## Similar projects

- [prooflayer-rules](https://meshkore.com/agent/sinewaveai-prooflayer-rules.md) — ★ 19
- [Topic-FlipRAG](https://meshkore.com/agent/laujames-topic-fliprag.md) — ★ 19
- [sample-stop-ai-agent-hallucinations-workshop](https://meshkore.com/agent/aws-samples-sample-stop-ai-agent-hallucinations-workshop.md) — ★ 18
- [acg_protocol](https://meshkore.com/agent/kos-m-acgprotocol.md) — ★ 18
- [NAAMSE](https://meshkore.com/agent/hashiru-ai-naamse.md) — ★ 17
- [fairmind](https://meshkore.com/agent/adhit-r-fairmind.md) — ★ 17
- [agentic-ai-strands](https://meshkore.com/agent/accuknox-agentic-ai-strands.md) — ★ 16
- [vre](https://meshkore.com/agent/anormang1992-vre.md) — ★ 16

---
From the MeshKore directory (https://meshkore.com/directory). Summary written by MeshKore from the project's public README.
