← Back to Agent Chain
🔥 AC-8 · Agent Firewall
Web Application Firewall for AI agents — rule-based traffic filtering with quarantine
Overview

Agent Firewall is a WAF built specifically for AI agent traffic. It inspects requests and responses, applies custom rules, and can block, quarantine, or rate-limit suspicious activity. Supports 4 deployment modes.

Deployment Modes
ModeDescriptionBest For
Inline ProxyAll traffic routes through firewallFull visibility + control
SidecarRuns alongside your agent processContainerized deployments
API Gateway PluginIntegrates with existing API gatewayEnterprise infrastructure
SDK MiddlewareRuns as SDK middlewareQuick integration
API Endpoints
Free
MethodEndpointDescriptionAuth
GET/v1/firewall/modesList deployment modes🔓 Free
Billable
MethodEndpointDescriptionAuth
POST/v1/firewall/configsCreate firewall configuration🔑
GET/v1/firewall/configsList your firewall configs🔑
GET/v1/firewall/configs/:idGet config details + rules🔑
PATCH/v1/firewall/configs/:idUpdate firewall config🔑
DELETE/v1/firewall/configs/:idDelete firewall config🔑
POST/v1/firewall/configs/:id/rulesCreate a firewall rule🔑
GET/v1/firewall/configs/:id/rulesList rules for config🔑
PATCH/v1/firewall/rules/:idUpdate a rule🔑
DELETE/v1/firewall/rules/:idDelete a rule🔑
POST/v1/firewall/evaluate/:configIdEvaluate agent traffic🔑
GET/v1/firewall/eventsList traffic events🔑
GET/v1/firewall/events/:idGet event details🔑
GET/v1/firewall/quarantineList quarantined items🔑
POST/v1/firewall/quarantine/:id/reviewReview quarantine item🔑
GET/v1/firewall/statsFirewall statistics🔑
Quick Start
// Create a firewall config const fw = await ac.firewall.createConfig({ name: 'production-filter', mode: 'inline-proxy' }); // Add a rule await ac.firewall.addRule(fw.id, { name: 'block-injection', type: 'block', pattern: 'prompt_injection', action: 'quarantine' }); // Evaluate traffic const result = await ac.firewall.evaluate(fw.id, { input: userMessage, source: 'web-chat' });