Developer documentation

Integrate, configure, and deploy DFENS.

DFENS is an application firewall for LLM traffic, the engine built in the ai-firewall repository. It inspects prompts, model responses, and tool-result content against declarative rules. Start with DFENS Cloud — sign up and get an endpoint in minutes, nothing to deploy. Running it yourself, on your own hardware or in your VPC, is also available as an Enterprise-tier deployment, covered by the rest of this section — but Cloud is the fastest path for almost everyone. Same rule engine, same request and response schemas, either way.

Private registry

The self-hosted container image is distributed through a private registry to approved Enterprise customers and design partners; it is not on any public registry yet. Request access to be issued a registry credential and an image reference; the examples below use REGISTRY/ai-firewall:<tag> as a placeholder for it.

Documentation sections

How it fits into your stack

There are two ways to put DFENS in the path of a model call, and they share one rule engine and one audit log:

Read this first

Secure the data plane on two layers. DFENS can require callers to present a client token (the X-AI-Firewall-Key header, see client authentication), and it's still meant to run on a trusted network segment (private network, or a Kubernetes NetworkPolicy). Treat these as defense-in-depth: turn on the client token and keep the listener off untrusted networks. Client auth is opt-in, so if you haven't configured a token the proxy accepts any caller that can reach it.

Start with DFENS Cloud: sign up at portal.dfens.ai and send your first blocked request in minutes, no deployment required. Need it inside your own boundary instead? That's the Enterprise path — read Deployment and Configuration to get a self-hosted instance running.