explaingit

c6web/guardrails

Analysis updated 2026-05-18

4TypeScriptAudience · ops devopsComplexity · 4/5LicenseSetup · moderate

TLDR

An open source AI firewall that inspects traffic between applications and LLM providers like OpenAI or Anthropic against OWASP security threat policies.

Mindmap

mindmap
  root((guardrails))
    What it does
      AI firewall
      OWASP threat checks
      8-stage pipeline
    Tech stack
      Rust
      TypeScript
      PostgreSQL
    Use cases
      Protect LLM traffic
      Closed network deploy
      Rate limit and ACL
    Audience
      Security teams
      LLM app builders

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add a security checkpoint between an internal app and an LLM provider like OpenAI or Anthropic.

USE CASE 2

Run an AI firewall entirely inside a closed network with no outside internet access.

USE CASE 3

Enforce rate limits, access control, and content scanning on every LLM request and response.

USE CASE 4

Monitor and configure LLM traffic policies through a real-time management console.

What is it built with?

RustTypeScriptPostgreSQLExpressDocker

How does it compare?

c6web/guardrails0labs-in/vision-linkalfons-fhl/cursor-plan2api
Stars444
LanguageTypeScriptTypeScriptTypeScript
Setup difficultymoderatemoderatemoderate
Complexity4/53/53/5
Audienceops devopsdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

The quick-start script provisions PostgreSQL and starts all services, but production use needs a separate hardening pass.

Free to use, modify, and distribute, including commercially, under Apache 2.0, but you must keep the required branding attribution.

In plain English

C6 Guardrails is an open source firewall that sits between an application talking to a large language model, like ChatGPT or Claude, and the AI provider it is calling. Every request going out and every response coming back passes through the firewall first, so it can check them against a set of security threat policies based on the OWASP list for LLM applications published for 2025. It works with any model, whether it runs locally on your own machine or through a cloud provider, and it can be deployed entirely inside a closed network with no outside internet access. At its core is an 8 stage pipeline written in Rust that each request and response moves through: authentication, rate limiting, access control, classification, enforcement, checks on any tools the AI is allowed to call, scanning of the response content, and a final content quality check. Alongside this there is a real time management console with 47 pages for watching and configuring the system. The project already supports connecting to OpenAI, Anthropic, Gemini, Ollama, and OpenRouter as the upstream providers being protected. The stated goal is to save every company from building this kind of AI security and compliance layer from scratch, since governance requirements increasingly demand something like this be in place. It was built by C6Web and Victor Tong as an open source platform meant to cover these needs out of the box rather than as a one off internal tool. Getting a demo running is a single script that provisions a PostgreSQL database, runs migrations and seed data, and starts every service at once, with the gateway on one local port and the management frontend on another. The README is explicit that this all in one demo build is meant for evaluation and development only, and points to a separate hardening guide for anything running in production. The system architecture separates the Rust based gateway engine, an Express backend, and a PostgreSQL database holding data, users, and logs, plus a Discord community for support. It ships under the Apache 2.0 license, with an added requirement to keep certain branding attribution intact, and comes with a default admin login you are prompted to change on first use.

Copy-paste prompts

Prompt 1
Help me run the all-in-one demo build of C6 Guardrails and explain what each service does.
Prompt 2
Walk me through the 8-stage pipeline that requests and responses pass through.
Prompt 3
How do I configure C6 Guardrails to work with my own OpenAI or Anthropic API keys?
Prompt 4
What do I need to change before moving this all-in-one demo build into production?

Frequently asked questions

What is guardrails?

An open source AI firewall that inspects traffic between applications and LLM providers like OpenAI or Anthropic against OWASP security threat policies.

What language is guardrails written in?

Mainly TypeScript. The stack also includes Rust, TypeScript, PostgreSQL.

What license does guardrails use?

Free to use, modify, and distribute, including commercially, under Apache 2.0, but you must keep the required branding attribution.

How hard is guardrails to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is guardrails for?

Mainly ops devops.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.