qmetrics.net

Guardrails

Python framework for LLM input and output guards

Guardrails helps Python applications validate and shape large language model inputs and outputs. It combines risk validators with utilities to produce structured data from model responses.

Overview

Guardrails is a Python framework for building more dependable AI features on top of large language models. It runs input and output guards that detect, measure, and mitigate specific risk categories, using validators from the Guardrails Hub catalog. Multiple validators can be chained into guards that intercept prompts and model replies before they reach users or downstream systems.

The same toolkit supports structured generation: you define a Pydantic model for the shape you expect, attach it to a Guard, and call the model so responses conform to that schema. For models with function-calling support it uses native function call syntax; for others it augments prompts with the expected schema so outputs stay structured.

Day-to-day setup uses the Guardrails Hub CLI to install validators, compose guards in Python, and run validation around LLM calls. Developers can author custom validators and publish them to the hub. Documentation describes using proprietary and open models, and JavaScript integration is mentioned for teams that need cross-language clients.

For deployments that want a network boundary, Guardrails can run as a standalone Flask service started via the guardrails CLI, exposing a REST API; production notes recommend Docker with Gunicorn. The primary integration path remains embedding guards in application code rather than operating a mandatory hosted SaaS control plane.

Key features

  • Input and output LLM guards
  • Hub catalog of risk validators
  • Structured output via Pydantic models
  • Function calling and prompt-based formatting
  • Composable multi-validator guards
  • Custom validator authoring
  • Python and JavaScript client support
  • Optional standalone REST server

Use cases

  • Screening LLM prompts and responses for policy risks
  • Forcing typed JSON-like outputs from models
  • Combining multiple validators on one call path
  • Publishing organization-specific validators
  • Serving guards behind an internal HTTP API

Does the same job as

Guardrails doesn't name these products itself, but its own description shows it does the same job.

Tags

Similar software

Shannon

Autonomous AI penetration tester for web apps and APIs

Shannon analyzes web application source code, plans attack paths, and runs real exploits against staging targets. Only vulnerabilities confirmed with a working proof of concept appear in reports.

  • Exploit-backed findings only in reports
  • Source code and runtime attack path analysis
  • Authenticated and configurable scan sessions
TypeScriptDocker, CLIDetails →
★ 52.7k⟳ 2 days agoAGPL-3.0
AI Security & PrivacyDesktop/CLI app
Open Source Alternative to:XBOW

SkillSpector

Security scanner for AI agent skills

SkillSpector scans agent skills for vulnerabilities, malicious patterns, and policy risks before you install them in tools like Claude Code or MCP setups.

  • Multi-format skill input
  • Static pattern analyzers
  • Optional LLM semantic analysis
PythonDocker, CLIDetails →
★ 28.8k⟳ todayApache-2.0
AI Security & PrivacyDesktop/CLI app

NeMo Guardrails

Programmable safety controls for LLM and agent apps

NeMo Guardrails is an open-source Python library that applies configurable input, output, and tool-call checks to conversational apps, RAG pipelines, and agents.

  • YAML and Colang policy configuration
  • Input and output content safety rails
  • Tool-call and tool-result validation
PythonDetails →
★ 7.6k⟳ 2 days agoApache-2.0

Giskard Oss

Python evaluation and red-teaming for AI agents

Giskard is an open-source Python library for testing and evaluating agentic systems, with modular packages for scenario checks, vulnerability scanning, and RAG quality evaluation.

  • Scenario and suite evaluation API
  • LLM-as-judge checks
  • Multi-turn agent testing
PythonDetails →
★ 6k⟳ 4 days agoApache-2.0

nono

Kernel-enforced sandbox for AI agents

nono wraps coding agents in policy-driven sandboxes with per-tool isolation, credential brokering, and tamper-evident audit. A single unprivileged binary runs on macOS, Linux, and Windows via WSL2.

  • Per-tool ephemeral sandboxes
  • Proxy-based credential injection
  • HTTP domain and path filtering
RustLinux, macOS, Windows, CLIDetails →
★ 5.2k⟳ yesterdayApache-2.0
AI Security & PrivacyDesktop/CLI app
Open Source Alternative to:Lakera Guard

Skill Scanner

Security scanner for AI agent skill bundles

Skill Scanner analyzes agent skill folders for prompt injection, data exfiltration, malicious code, and related risks using layered static and optional LLM checks.

  • Multi-engine static and behavioral analysis
  • Optional LLM semantic judge
  • SARIF output for CI and GitHub scanning
PythonLinux, macOS, Windows, CLIDetails →
★ 2.8k⟳ yesterdayApache-2.0
AI Security & PrivacyDesktop/CLI app