Edge AI Guardrail
Stateless Edge AI Firewall • Cost Control Plane • Zero Prompt Retention

Deterministic Cost Circuit Breakers and Zero-Log DLP for Production LLM Traffic

Built for engineering teams, multi-tenant B2B SaaS, and autonomous AI agents running on OpenAI, Anthropic, and Google Gemini. Enforce hard pre-flight budget caps, halt runaway agent loops, and redact credentials and PII in memory at the Cloudflare Edge—with 0% token markup.

Explore Use Cases Interactive Policy Sandbox
< 15 ms
p95 In-Isolate Edge Overhead
50 ms
Fail-Open SLA Design Target
0 Bytes
Prompts or Completions Stored
> 5 / 10s
Canonical Near-Loop Breaker
Why Every API Key Needs an External Fuse

Chat Subscriptions Cap Your Bill at $20. Raw API Keys Have No Instant Brake.

Whether you are building with Cursor, Claude Code, n8n, Make, Replit, or shipping a custom chatbot, connecting an OpenAI, Anthropic, or Gemini API key wires your credit card directly to a meter with 10-to-60-minute billing alert delays. Most builders discover these three failure modes only after receiving a four-figure invoice.

REAL EXPOSURE: $600 – $6,000+ OVERNIGHT

1. Silent Retry Loops While You Sleep

A React re-render bug, a stuck n8n/Make webhook, or two AI agents politely retrying a failed tool call can fire thousands of compound-context requests before morning—with zero syntax errors.

Edge Fix: Halts identical or near-identical loops on call #6 within 10 seconds and enforces hard hourly USD caps.
REAL EXPOSURE: $1,000 – $80,000+ / WEEKEND

2. Leaked Keys & Public Chatbot Bot-Floods

An accidentally committed key or an unprotected customer chat widget targeted by automated scripts can drain tens of thousands of dollars over a single weekend before provider dashboards react.

Edge Fix: Enforces per-minute RPM ceilings and strict daily/monthly USD limits with instant Slack/Discord alerts.
REAL EXPOSURE: CREDENTIAL & PRIVACY BREACH

3. Unintentional Secret & Customer Data Leaks

AI coding assistants reading .env files or staff pasting customer emails, phone numbers, and credit card digits into prompts transmit sensitive secrets straight to third-party servers.

Edge Fix: Scrubs API keys, Luhn payment cards, and PII in RAM (<1ms) before the request ever leaves Cloudflare Edge.
Solutions by Workload

Who Uses Edge AI Guardrail—and Why

Select your operational profile to inspect the exact failure modes we prevent at the network edge.

Prevent Unattended Agent Loops and Credential Exfiltration

Autonomous coding and tool-use agents routinely retry failed tool calls hundreds of times overnight or ingest local .env files containing live AWS, Stripe, or database credentials.

Failure Mode Without Guardrail
$400–$2,000+ burned in minutes before provider billing alerts fire; production keys sent to external model context.
Edge Enforcement
Canonical SHA-256 Near-Loop detection trips HTTP 429 on call #6 (ignoring changing timestamps/UUIDs) + instant secret redaction + native Remote MCP.
// Recommended Policy: Pro ($79/mo) + Native Streamable HTTP MCP
{
  "endpoint": "https://guardrail.fyi/mcp",
  "hourlyCapUsd": 50,
  "loopThreshold": "5 / 10s",
  "redactSecrets": true
}
Why Edge AI Guardrail

How We Differ From Existing AI Gateways

Purpose-built as a stateless financial and security firewall—not a prompt-logging data warehouse or token reseller.

Capability Edge AI Guardrail Observability Gateways (Helicone / Portkey) Model Aggregators (OpenRouter) Self-Hosted Proxies (LiteLLM)
Prompt & Response Privacy Zero-Log (In-Memory Only) Prompts logged to cloud databases by default Routed through shared marketplace Requires managing your own Postgres/S3
Cost & Loop Cutoff Timing Pre-Flight Synchronous (<15ms) Primarily post-hoc dashboards & alerts Prepaid balance depletion only Requires Redis cluster tuning
Token Pricing Markup 0% Markup (Pure BYOK Flat Fee) Log-volume & per-seat enterprise tiers ~5.5% credit recharge fee $150–$500+/mo cloud hosting + DevOps
Outage Resilience Cloudflare Edge + Fail-Open SLA Gateway dependency Single routing dependency Container crash drops production traffic
Native AI Agent Protocol HTTP Proxy + Remote MCP Built-In HTTP API / SDK focus OpenAI REST API only Manual configuration required
Request Lifecycle

Three-Step Integration Without Changing Your SDK

Deploy across your stack in under two minutes while keeping your direct OpenAI, Anthropic, and Google Cloud credentials.

STEP 01 // PROVISION POLICY KEY

Issue an Isolated Guard Key

Generate a free sandbox key above or subscribe to a production tier. Configure hourly/daily ceilings, PII rules, and webhook alerts from the self-serve console.

STEP 02 // EDGE IN-MEMORY ENFORCEMENT

Swap Base URL or Connect MCP

Point your SDK to https://guardrail.fyi/v1 with header x-guard-key. Secrets and Luhn-verified card numbers are masked in V8 isolate RAM, and loop/budget rules are checked pre-flight.

STEP 03 // ZERO-BUFFER STREAMING

Direct Upstream Forwarding & Metering

Clean requests stream directly from OpenAI, Anthropic, or Gemini via TransformStream with 0ms buffering, while token costs update asynchronously out-of-band.

Live 15-Second Sandbox

Interactive Edge Policy Verification

Inspect real-time payload sanitization and circuit-breaker behavior against our live edge worker (POST /demo/simulate) without authenticating.

EDGE INSPECTION RESULT
STATUS: READY
Select a verification scenario above or submit a custom payload on the left.
Developer & Agent Integration

Drop-In SDK & Remote MCP Configuration

Compatible with official OpenAI, Anthropic, and Google Gemini clients, plus Streamable HTTP MCP for autonomous coding environments.

import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.OPENAI_API_KEY,
  baseURL: "https://guardrail.fyi/v1",
  defaultHeaders: { "x-guard-key": "YOUR_GUARD_KEY" },
});
Predictable Flat-Rate Pricing

Zero Token Markup. Pure BYOK Economics.

Validate integration free in sandbox, then select the monthly protection ceiling aligned with your production LLM volume.

Developer Sandbox

$0
  • Up to $5/month tracked LLM spend
  • $2/hour circuit breaker • 20 RPM
  • Secret redaction & loop protection
  • Instant self-serve key (no card)

Starter

$29 / mo
  • Up to $500/month LLM spend cap
  • $50/hour circuit breaker • 120 RPM
  • Slack & Discord real-time alerts
  • Self-serve console & key rotation
Subscribe to Starter

Scale

$199 / mo
  • Up to $10,000/month LLM spend cap
  • $1,000/hour circuit breaker • 1,000 RPM
  • Strict Fail-Closed compliance mode
  • High-concurrency agent fleets
Subscribe to Scale
Technical & Billing FAQ

Frequently Asked Questions

Direct answers on provider billing delays, zero-log privacy guarantees, Fail-Open resilience, and BYOK pricing.

Why can I not rely solely on OpenAI, Anthropic, or Google Cloud billing limits?

Upstream LLM provider billing pipelines aggregate token usage asynchronously, often with 10-to-60-minute reporting delays. An autonomous agent loop, n8n workflow bug, or abused API key can burn hundreds or thousands of dollars before native billing alerts trigger. Edge AI Guardrail enforces synchronous pre-flight hourly, daily, and monthly spend ceilings plus 10-second loop detection before requests reach the provider.

Does Edge AI Guardrail log or store my prompts, completions, or LLM API keys?

No. Edge AI Guardrail is architected as a stateless zero-log firewall on Cloudflare Workers. Prompts are inspected and redacted strictly in ephemeral V8 isolate RAM, and responses stream through with zero disk retention. Only numeric spend counters, SHA-256 loop hashes, and key policy settings are persisted.

Do I need to install a heavy SDK or rewrite my application code?

No SDK installation is required. Keep your official OpenAI, Anthropic, or Google Gemini SDK (or no-code tool such as n8n, Make, Cursor, or Claude Desktop) and swap only the Base URL to our gateway while passing your x-guard-key header alongside your own provider key.

What happens to my production traffic if the guardrail state store experiences latency?

By default, Edge AI Guardrail operates in Fail-Open mode: if state verification times out or encounters an error, your request is immediately forwarded upstream so your production application never goes down. Regulated workloads can optionally switch to strict Fail-Closed mode (HTTP 503) in the console.

Do you charge a percentage markup on LLM tokens?

Zero markup (0%). Edge AI Guardrail uses a pure Bring-Your-Own-Key (BYOK) flat-rate subscription ($0 Sandbox, $29 Starter, $79 Pro, $199 Scale). You pay OpenAI, Anthropic, and Google directly at their native token prices and keep your own enterprise rate limits and cloud credits.