Head to head · Policy enforcement · October 2026 research run

AgentGate vs LlamaFirewall

LlamaFirewall scores 53.2 (D) on agent readiness against AgentGate's 51.3 (D), and leads in 6 of 7 scored categories. AgentGate leads on payments & pricing. Both do policy enforcement.

Best guardrails and safety filters for AI agents · All 176 guardrails comparisons

Which one, for what

AgentGate D

Best for A team that wants a self-hosted check between an agent and its shell, database or webhook tools, with a human approval queue.

Ahead on

  • Payments & pricing, 90 against 75

Also in its favour

  • Runs on your own machine
  • Free to start without a card

Watch for

Agent endpoints need no key unless AG_AGENT_KEY is set, the proxy binds 0.0.0.0:8080, and the dashboard key defaults to dev-key-123 outside production mode

LlamaFirewall D

Best for A Python agent team that wants injection, hidden-character and generated-code checks in process, is willing to pin dependencies or install from main, and can get the gated weights.

Ahead on

  • Reliability, 48 against 39
  • Agent ergonomics, 60 against 53

Watch for

No release found after 1.0.3 of May 2025, and no changelog, tags or deprecation notes were found

Why the edge

Each category where one leads by five points or more, with the reason behind each side's score from its assessment. The numbers are in the table below; this is what they stand for.

Payments & pricing AgentGate +15

AgentGate 90

Self-hosted rule. Free under MIT with nothing to buy (20). No card or account (20). Clone and run with no signup, and the model weights on Hugging Face are not gated (20). No payment protocol (0). 20 + 20 + 20 + 0 = 60. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 60 is 90.

LlamaFirewall 75

Self-hosted rule, with one departure. MIT-licensed, with nothing to buy from Meta (20). Free to run with no card (20). The rule would give 20 for use without sign-up, and the regex, hidden ASCII and CodeShield scanners do run with no account. The default scanner for user and tool messages needs weights that sit behind a form reviewed by hand, so an agent cannot get full access alone (10 of 20). No payment protocol (0). Together AI charges for the two scanners that call it. 20+20+10+0 = 50. Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 50 is 75.

Reliability LlamaFirewall +9

AgentGate 39

Read as local software, since the owner runs it. No package on npm, PyPI or a container registry. Install is a git clone and docker compose up, with Python 3.11+, Node 22+ and Docker Compose v2 stated (10 of 20). A public CI workflow runs make lint, make build and make test (ESLint, Ruff, Vitest and Pytest) on every push to main, and the Docker job only validates the compose file. On 15 October 2026 the last six runs on main had passed. Run results for the 31 October commits could not be read on 4 November 2026, so the line takes 15 for public CI that runs the tests with an unread result (15 of 25). No outside issues at the 15 October check. The maintainer filed 20 issues as a self-audit and six stayed open. Issues were not re-read on 4 November (12 of 25, per the 15 October check). No tags, and CHANGELOG.md still holds one Unreleased line (2 of 15). Version 0.1.0 (0 of 15). 10 + 15 + 12 + 2 + 0 = 39.

LlamaFirewall 48

Scored on the local-software lines, since the owner runs the library. It installs from PyPI as llamafirewall, and the README states Python 3.10 or later, but the package metadata carries no Python requirement and every dependency has a lower bound only. The 1.0.3 wheel imports HfFolder from huggingface_hub, which 2.2.0 no longer exports, so by our reading of the source a fresh install cannot load the Prompt Guard scanner without older pins. Main replaced that import in the loader on 26 March 2026, in no release. We did not run it (10 of 20). A public tests workflow runs the LlamaFirewall unit tests on Python 3.10 and 3.12 on every push to main. Its result on main could not be read on 4 November, since GitHub's pages and API answered 403, so the settled value for CI that runs the tests with an unreadable result applies (15 of 25). Issues 114, 116 and 117 from June and July 2025 and issue 219 from April 2026 had no reply on 8 October, and pull request 185, which fixes the import error, had been open since 13 March 2026. Not re-read on 4 November (8 of 25). Version numbers follow semver in form, but there is no changelog, and a clone of main on 4 November held no tags (3 of 15). Version 1.0.3, with two of six scanners under scanners/experimental (12 of 15). 10+15+8+3+12 = 48.

Agent ergonomics LlamaFirewall +7

AgentGate 53

The assess response is small, a verdict, reason codes, four head probabilities, versions and latency (20 of 25). /v1/decisions has limit, a keyset cursor and a status filter, behind the dashboard key (12 of 20). Reason codes such as untrusted_prompt_influence and model_error tell an agent why. Since commit 74d78e0 (15 October 2026) the MCP wrapper forwards allow_with_checkpoint calls instead of returning an error. On ask the agent gets a decision_id but cannot read the outcome without the dashboard key, and HTTP error bodies vary in shape. The line is still partly met, so it keeps its earlier 8 of 20 (this run's rule for in-between values on fixed lines). No idempotency key. A repeated assess writes a new decision and a new approval request (6 of 20). Two required fields per call and fail-closed defaults. No SDK, only snippets in Python and TypeScript and the MCP wrapper (7 of 15). 20 + 12 + 8 + 6 + 7 = 53.

LlamaFirewall 60

Read as a classifier an agent calls in process. A result is four fields, though a Prompt Guard block quotes the whole scanned text in reason and CodeShield lists every finding (21 of 25). Scanners are chosen per role and two preset use cases exist. Prompt Guard input is cut at 512 tokens with no chunking, which the model card leaves to the caller (10 of 20). A status field and a clear message for a missing key exist. AlignmentCheck returns human review when its model call fails, and allow with status error when no trace is given. scan() wraps asyncio.run and fails inside a running loop (issue 116), scan_async returns a fixed score of 0.0 on allow, and none of this is documented (8 of 20). Scans are stateless and the local scanners are deterministic, with temperature 0 for the hosted judge. Each scan builds a new scanner, which reloads the model from disk (14 of 20). Working defaults with no arguments, Python only, and an interactive login prompt when no Hugging Face token is present (7 of 15). 21+10+8+14+7 = 60.

Score by category

CategoryWeightAgentGateLlamaFirewallEdge
Reliability16%3948LlamaFirewall +9
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%4749LlamaFirewall +2
Agent ergonomics13%5360LlamaFirewall +7
Security & auth14%5556LlamaFirewall +1
Payments & pricing10%9075AgentGate +15
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%1315LlamaFirewall +2
Transparency & trust7%6062LlamaFirewall +2
Negative events≤1500
TotalD 51.3/100D 53.2/100

Facts side by side

FactAgentGateLlamaFirewall
KindHTTP APIAgent framework
VendorMohit Singh (mohitdebian)Meta
Hosted endpointno (local only)no (local only)
TransportsHTTP, stdio
AuthNoneNone
PricingFreeFree
x402nono
LicenceMITMIT (library). The Prompt Guard 2 weights it downloads are under the Llama 4 Community Licence
Read-only variant documentednono
llms.txtnono
Last releasenone2025-05-29
Terms last updatedno document linkedno document linked
Privacy policy last updatedno document linkedno document linked
Popularity0 stars4.4k stars

How the scores have moved

Verdicts

AgentGate

An agent or its host can send each tool call to one REST endpoint, or wrap an MCP server, and get allow, deny or ask from a local classifier and a YAML policy, with an audit log and approval queue. There is no tagged release, agent endpoints are open by default, and no detection accuracy is published.

LlamaFirewall

One scan() call runs several checks on the owner's machine and returns a short typed result. The newest version, 1.0.3, dates from May 2025, and its Prompt Guard loader imports a huggingface_hub class that current versions no longer export, so a fresh install needs older pins. The classifier weights also need Meta's manual approval.

Before you call either

AgentGate

  1. Create a session with the user's real goal first. The goal-alignment head scores every later call against it
  2. Pass earlier tool results in history_override with untrusted: true for web or email content, or the injection head sees only the action
  3. On ask, stop and tell the user the decision_id. Polling /v1/decisions/:id needs the dashboard key
  4. Treat allow_with_checkpoint as allow and keep the checkpoint_id for an undo, which needs the dashboard key
  5. Expect HTTP 404 with not_found for an unknown session and 401 when the owner has set an agent key

LlamaFirewall

  1. Pin huggingface_hub below 1.0 and a matching transformers 4.x before importing the Prompt Guard scanner from the 1.0.3 wheel, or install from main
  2. Get access to meta-llama/Llama-Prompt-Guard-2-86M and set a Hugging Face token first. Without one the loader prompts for a login and a headless run stalls
  3. Call scan_async inside a running event loop. scan() wraps asyncio.run and fails there. scan_async returns score 0.0 and reason default on every allow
  4. Split text longer than 512 tokens yourself before a Prompt Guard scan. The library truncates and does not chunk
  5. Do not feed a block reason back to the model. The Prompt Guard reason quotes the full scanned text, and the hidden ASCII reason decodes the hidden payload

Questions

Which is better for AI agents, AgentGate or LlamaFirewall?

LlamaFirewall scores 53.2 (D) on agent readiness against AgentGate's 51.3 (D), and leads in 6 of 7 scored categories. AgentGate leads on payments & pricing.

Can an agent call AgentGate and LlamaFirewall without installing anything?

AgentGate runs on your own machine, with no hosted endpoint listed. No hosted endpoint is listed for LlamaFirewall.

Are AgentGate and LlamaFirewall open source?

Yes. AgentGate is open source (MIT). LlamaFirewall is open source (MIT (library). The Prompt Guard 2 weights it downloads are under the Llama 4 Community Licence).

Other comparisons with AgentGate or LlamaFirewall

Machine-readable

For companies

Do agents find, use and choose your tools?

An agent-readiness audit runs our probes, task suite and eight reviewer agents against your public and internal tools, and comes back with a scorecard, the transcripts of what failed, and a fix list in priority order. From $2,500, re-run included. We never take payment to move a rank. We do help companies earn one.