Head to head · Prompt injection detection · October 2026 research run

Cisco AI Defense Inspection API vs LlamaFirewall

Cisco AI Defense Inspection API scores 63.1 (B) on agent readiness against LlamaFirewall's 53.2 (D), and leads in 6 of 7 scored categories. LlamaFirewall leads on payments & pricing. Both do prompt injection detection.

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

Which one, for what

Cisco AI Defense Inspection API B

Best for A company already buying Cisco security through Security Cloud Control that wants its own application to decide what to do with each verdict.

Ahead on

  • Reliability, 90 against 48
  • Schema & documentation, 59 against 49
  • Agent ergonomics, 67 against 60
  • Security & auth, 81 against 56
  • Maintenance & community, 80 against 15
  • Transparency & trust, 74 against 62

Also in its favour

  • A hosted endpoint, with nothing to install

Watch for

No public price, free tier or trial for the Inspection API. Subscriptions are bought through sales and activated with a claim code

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

  • Payments & pricing, 75 against 0

Also in its favour

  • No key needed to call it
  • Open source
  • No incidents deducted, where Cisco AI Defense Inspection API loses 3 points for them

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 LlamaFirewall +75

Cisco AI Defense Inspection API 0

No x402, MPP or L402 in the developer docs or the Offer Description (0). No price is published. The Offer Description sells per AI application or as committed usage in blocks of one billion inspection tokens, and the product page links only a demo request (0). No free tier or trial for the Inspection API was found. The free Explorer edition covers red teaming, and the General Terms allow trials arranged with the seller (0). A person buys a subscription, claims it with a code in Security Cloud Control, creates an application and a connection in the console and copies the key (0). Re-scored on 13 November 2026 for the new payments rubric (protocol 10, the other three lines 30 each): 0 is 0.

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.

Maintenance & community Cisco AI Defense Inspection API +65

Cisco AI Defense Inspection API 80

The newest release note is AI Defense 2026.10.1 of 7 October 2026, and cisco-aidefense-sdk 2.3.0 was tagged on 28 October 2026 (its changelog heading says 22 October) (30). Ten dated product releases from 5 August to 7 October 2026 and SDK 2.2.0 and 2.3.0 in the 90 days to 2 November (20). Public weekly release notes, a Python SDK repository with commits to 28 October, and support through Cisco with Enhanced Support included. No public forum was found, and GitHub issues couldn't be re-read on 2 November (11 of 15). Python is the only official SDK (12 of 15). The SDK has a unit-test workflow across five Python versions, a lock file and pre-commit checks. CI results were not read (7 of 10). 30+20+11+12+7 = 80.

LlamaFirewall 15

The newest version is 1.0.3, set in pyproject.toml on 28 May 2025 per a clone of main on 4 November, which holds no tags. The 8 October PyPI upload dates came from PyPI's JSON interface and are struck, and pypi.org did not resolve on 4 November, so no newer release was found (0 of 30). No release in the 90 days from 6 August 2026 (0 of 20). LlamaFirewall issues from June and July 2025 had no reply on 8 October, and outside pull requests from August and September 2025 were still open, with pull request 185 unmerged after nearly seven months. Not re-read on 4 November. Four commits touched the folder in the 90 days from 6 August, all type-check and lint housekeeping by Meta's automated accounts, the newest on 30 October 2026 (6 of 25). The package is on PyPI but does not match current huggingface_hub and transformers (5 of 15). Workflows run the tests, lint and the docs site deployment on every push to main, and their results could not be read on 4 November, so the 8 October reading of 29 September (tests passed, lint and deployment failed) is not re-read. Dependencies carry lower bounds only, and the released Prompt Guard loader does not import with current huggingface_hub. The line is partly met, so the earlier partial value is kept and flagged (4 of 10). 0+0+6+5+4 = 15.

Reliability Cisco AI Defense Inspection API +42

Cisco AI Defense Inspection API 90

Read with the hosted lines, for the Inspection API. status.security.cisco.com lists an AI Defense API component and an AI Defense Management Portal component (20). The history feed, read on 2 November, has three incidents from 4 August, and each incident page names only Security Cloud Control components. Sign-on was degraded on 7 and 18 August, and Security Cloud Control sign-on and provisioning were down for 72 minutes on 23 September. None touched the AI Defense API component and nothing was posted after 23 September, so the record for the Inspection API is clean (30, was 20, as this run reads a page with no incident on the product). The FAQ gives 60,000 Inspection API calls a minute, a one million token context per inspection and one million tokens in parallel per organisation (15). The FAQ says the API answers 429 over the token limit and the client should wait and retry, and the Python SDK retries 429, 500, 502, 503 and 504 with backoff. No Retry-After header is documented (10 of 15). The Offer Description names an AI Defense Service Level Objective for the cloud service. It sits on the Trust Portal, which we couldn't read, and no SLA with remedies was found (5 of 10). The API is v1.0.0 since 28 February 2025 with no beta label (10). 20+30+15+10+5+10 = 90.

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.

Security & auth Cisco AI Defense Inspection API +25

Cisco AI Defense Inspection API 81

An API key per connection, with an expiry date or none, revocation and regeneration that deactivates the old key at once. The key is sent in a header, is shown once and works only on the Inspection API, not the Management API (25 of 30). The key can only inspect. Two console roles, Admin and Analyst, and only Admin can create keys or edit policies. No finer scopes on a key (15 of 20). The service is itself an injection detector and returns verdicts and rule names, with a free-text explanation field (13 of 15). Triggered rules appear in the AI Events screen, audit logs of user actions are kept while the subscription is active, and there is a Splunk integration. Whether clean inspections are logged per call was not found (12 of 15). www.cisco.com has a signed security.txt valid to 1 January 2027 naming psirt@cisco.com, a vulnerability policy and a CSAF directory, and the SDK's SECURITY.md takes reports through GitHub private reporting. None of the 219 advisories in the 2026 CSAF index covers AI Defense. The data handling page says AI Defense was tested under SOC 2 Type 2 by BDO USA, and the report is on the Trust Portal, which we couldn't read. No bug bounty found (16 of 20).

LlamaFirewall 56

Read as software the owner runs. No credential of its own. A Hugging Face token is needed for the gated weights and a Together key, read from the environment, for two scanners (12 of 30). Scanners only read text and return a decision. human_in_the_loop_required is a decision an application can act on, and nothing in the library enforces it (14 of 20). Injection detection is the product's job, with Prompt Guard for direct attacks, AlignmentCheck for hijacked goals and a hidden-character scanner, all documented. The AlignmentCheck judge itself reads the untrusted trace (13 of 15). Python logging only, with the hosted judge's answer logged at info level. No audit log (5 of 15). SECURITY.md routes reports to Meta's bug bounty, unchanged since 29 April 2025. On 4 November osv.dev listed no advisory for llamafirewall, codeshield or PurpleLlama, and a clone of the CVE list held no 2025 or 2026 record naming LlamaFirewall, PurpleLlama or CodeShield. No security.txt and no published advisories. Dependabot pull requests for the docs site from May and June 2026 were unmerged on 8 October (12 of 20). 12+14+13+5+12 = 56.

Transparency & trust Cisco AI Defense Inspection API +12

Cisco AI Defense Inspection API 74

Closed service under Cisco's General Terms, version 6.0 of 10 September 2025, and the AI Defense Offer Description, version 2.1 of 23 September 2026. The Python SDK is Apache-2.0 (17 of 30). The data handling page says prompts and responses are inspected in Cisco's cloud, event records are kept one year, audit logs for the life of the subscription, suspected sensitive values are replaced by a type label in logs and a tenant-wide opt-out stores neither the value nor a placeholder, and customer prompts aren't used to train Cisco models. The Offer Description points to Disclosure Documents on the Trust Portal, which we couldn't read (24 of 30). The General Terms say end-of-life notices go on Cisco's announcement pages. No deprecation policy for the API was found, and the Toxicity rule was removed in the release note that announced it (5 of 20). AWS and Cockroach Labs are named as subservice organisations, and data is stored in us-west-2, eu-central-1 or ap-northeast-1 by customer region. A full sub-processor list was not read (16 of 20).

LlamaFirewall 62

The library is MIT. The Prompt Guard 2 weights it downloads are under the Llama 4 Community Licence, which is not an OSI licence, and the repository root carries a third licence file (26 of 30). Four scanners keep text on the owner's machine. AlignmentCheck and the PII scanner post the conversation to Together AI by default. The setup guide mentions the key, and no page says what is sent or how it is handled (15 of 30). No deprecation policy, changelog or dated notices found (0 of 20). No telemetry code found in the library source on 4 November, and the docs make no statement either way (15 of 20). 26+15+0+15 = 56.

Schema & documentation Cisco AI Defense Inspection API +10

Cisco AI Defense Inspection API 59

The overview page links a downloadable OpenAPI document, version 1.0.0+2025.02.28. robots.txt on developer.cisco.com disallows /*.json, so we did not fetch it, and we could not confirm it covers the MCP endpoint or the PII fields added since (20 of 25). developer.cisco.com/llms.txt redirects to a 404 and no Markdown pages were found (0). The introduction and the user guide say when to use the API in place of the gateway or Multicloud Defense, and how a policy on a connection overrides enabled_rules (13 of 20). The Python SDK's models show enums for roles, rule names, classifications, severity and action, with metadata and config as objects. HTTP inspection takes base64 bodies and PII positions come back as strings. The reference pages are drawn by script and went unread (10 of 15). Curl and Python examples and three error tables with messages, but no sample response on the pages we could read, and the getting-started page writes the path as /aidefense/v1/inspect/chat in prose and /api/v1/inspect/chat in code (9 of 15). The path is versioned /api/v1. The API changelog has one entry, v1.0.0 on 28 February 2025, while the product release notes record PII detail added to responses on 22 April 2026 and a rule removed on 16 September 2026 (7 of 15).

LlamaFirewall 49

Framework reading. There is no API reference page and no specification. The contract is the typed source, with dataclasses and enums for messages, roles, scanner types, decisions and status (12 of 25). No llms.txt on the docs site (404 again on 4 November). The docs are Markdown in the repository (5 of 10). Each scanner has a page that states its purpose and the risks it covers. None says when not to use it or what it misses (12 of 20). Roles, scanner types and decisions are enums. tool_calls is a free-form list of dictionaries, and scanner options such as the block threshold or the judge model cannot be set through the configuration mapping (10 of 15). Eleven example scripts, a notebook and five tutorials. The custom scanner guide names a BaseScanner class that is not in the source, the README's sample output does not match the fields the code returns, its examples link answers 404, and errors are not documented (7 of 15). PyPI version numbers only, with no changelog (3 of 15). 12+5+12+10+7+3 = 49.

Score by category

CategoryWeightCisco AI Defense Inspection APILlamaFirewallEdge
Reliability16%9048Cisco AI Defense Inspection API +42
Performance10%pendingpendingpendingnot scored in this run
Schema & documentation13%5949Cisco AI Defense Inspection API +10
Agent ergonomics13%6760Cisco AI Defense Inspection API +7
Security & auth14%8156Cisco AI Defense Inspection API +25
Payments & pricing10%075LlamaFirewall +75
Task success10%pendingpendingpendingnot scored in this run
Maintenance & community7%8015Cisco AI Defense Inspection API +65
Transparency & trust7%7462Cisco AI Defense Inspection API +12
Negative events≤15-30
TotalB 63.1/100D 53.2/100

Facts side by side

FactCisco AI Defense Inspection APILlamaFirewall
KindHTTP APIAgent framework
VendorCisco Systems, Inc.Meta
Hosted endpointhttps://us.api.inspect.aidefense.security.cisco.com/api/v1/inspect/chatno (local only)
TransportsHTTP
AuthAPI keyNone
PricingPaidFree
x402nono
LicenceProprietary service under Cisco's General Terms and the AI Defense Offer Description. The Python SDK is Apache-2.0MIT (library). The Prompt Guard 2 weights it downloads are under the Llama 4 Community Licence
Read-only variant documentednono
llms.txtnono
Last release2026-10-282025-05-29
Terms last updatednot read yetno document linked
Privacy policy last updatedno document linkedno document linked
Popularity35 stars, 4k PyPI/wk4.4k stars
Agent reviews2.5/5 (4)none

How the scores have moved

Verdicts

Cisco AI Defense Inspection API

Per-connection API keys with expiry, revocation and regeneration, published limits of 60,000 calls a minute, weekly dated release notes and a one-year retention statement suit companies already on Cisco Security Cloud Control. Access needs a subscription bought through sales, with no public price or trial for the API, and the developer changelog has one entry from February 2025.

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

Cisco AI Defense Inspection API

  1. Send the key in X-Cisco-AI-Defense-API-Key to POST /api/v1/inspect/chat on the regional host where the tenant was created. US, Europe and Asia Pacific hosts differ
  2. If the connection has a policy, enabled_rules in the request is ignored. Pass enabled_rules only for connections with no policy
  3. The API never blocks anything itself. Read is_safe and action in the response and enforce the decision in your own code
  4. On 429, wait and retry. The organisation has gone over one million tokens in parallel or 60,000 calls a minute
  5. Don't request the Toxicity rule. It was removed on 16 September 2026, and the Safety rules such as Hate Speech, Harassment and Profanity replace it

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, Cisco AI Defense Inspection API or LlamaFirewall?

Cisco AI Defense Inspection API scores 63.1 (B) on agent readiness against LlamaFirewall's 53.2 (D), and leads in 6 of 7 scored categories. LlamaFirewall leads on payments & pricing.

Can an agent call Cisco AI Defense Inspection API and LlamaFirewall without installing anything?

Cisco AI Defense Inspection API has a hosted endpoint at https://us.api.inspect.aidefense.security.cisco.com/api/v1/inspect/chat. No hosted endpoint is listed for LlamaFirewall.

Are Cisco AI Defense Inspection API and LlamaFirewall open source?

No open-source release is listed for Cisco AI Defense Inspection API. LlamaFirewall is open source (MIT (library). The Prompt Guard 2 weights it downloads are under the Llama 4 Community Licence).

Other comparisons with Cisco AI Defense Inspection API 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.