// agents · guardrails-ai/guardrails

guardrails

guardrailsは、guardrails-aiが公開しているオープンソースのAIエージェントプロジェクトです(GitHub: guardrails-ai/guardrails)。GitHubスターは7,496、フォークは715で、Apache-2.0ライセンスの下で公開されています。GitHubでの最終更新は2026年10月6日です。

Put guardrails on LLMs: validate outputs before they reach users.

★ 7.5k スター⑂ 715 フォークApache-2.0更新 2026年10月
▦ ビジュアル — このプロジェクトのREADMEには埋め込み可能なスクリーンショットがないため、
ここではプレースホルダーを表示しています。下のガイド自体は完全な内容です。
// プロジェクトの基本情報

プロジェクト基本情報

GitHubスター
7,496
フォーク
715
ライセンス
Apache-2.0
GitHubでの最終更新
2026年10月6日
掲載タイプ
完全なインストールガイド
公式サイト
Official site
// 仕組み

仕組み

  1. Scope the task

    Write down the outcome you want in one sentence.

  2. Fetch the repo

    Clone it locally and check the README.

  3. Install prerequisites

    Get dependencies and tooling in place per the docs.

  4. Run the quickstart

    Follow the minimal example, then adapt it to your needs.

// 機能

選ばれる理由

Output validation

Check LLM output against your rules.

Rule definitions

Express constraints declaratively.

Retry logic

Re-ask when the model strays.

Structured outputs

Enforce schemas, not hopes.

Safety checks

Catch disallowed content pre-send.

Python-native

Fits the standard LLM stack.

Advertisement
// 自分で実行

自分で実行してみる

  1. Step 1 — Clone the repo

    Download the source and move into the project folder.

    git clone https://github.com/guardrails-ai/guardrails.git
    cd guardrails
  2. Step 2 — Create a venv and install

    Isolate dependencies, then install requirements.

    python -m venv .venv && source .venv/bin/activate
    pip install -r requirements.txt
  3. Step 3 — Run it

    Launch using the entry point shown in the README.

    python -m guardrails  # check README for the exact command
// 活用例

作れるもの

Advertisement
// よくある質問

よくある質問

Who maintains guardrails?

It is an open-source project at guardrails-ai/guardrails with 715 forks. Check the contributors tab and recent commits to judge how active maintenance is.

Is guardrails free to use?

Yes — Apache 2.0 allows commercial use and modification. Keep the license and notice files, and note it includes a patent grant.

How do guardrails work?

You define rules for LLM outputs; the framework validates and retries or corrects when outputs break them.

Does it slow responses?

Validation adds some latency — the trade-off for safer outputs. Measure it for your use case.

How do I get started?

Clone the repo and follow the README quickstart — the docs at https://www.guardrailsai.com/docs walk through setup.

// さらに探索

似ているツール

AIエージェント

deepeval

Unit tests for LLMs — evaluate before you ship.

★ 18.7k スターApache-2.0
ガイドを見る →
AIエージェント

tirith

Terminal security that stops malicious prompts, URLs, and payloads before they run.

★ 2.8k スターAGPL-3.0
ガイドを見る →
AIエージェント

vigil-llm

Detect prompt injections and jailbreaks before they hit your LLM.

★ 504 スターApache-2.0
ガイドを見る →
AIエージェント

Guardrails

Programmable guardrails to keep LLM systems safe and on rails.

★ 7.3k スターNOASSERTION
ガイドを見る →
AIエージェント

autoevals

Fast, best-practice evaluations for AI model outputs.

★ 1.1k スターMIT
ガイドを見る →
AIエージェント

modelscan

Scan AI models for serialization attacks before you load them.

★ 781 スターApache-2.0
ガイドを見る →
// 代替候補

代替候補: AIエージェント

LibreAIカタログに掲載されたAIエージェントプロジェクトの中で最もスターの多いもの — guardrailsが合わなかった場合に検討したい、現実的な候補リストです。

// さらに見る agents

さらに見る: AIエージェント

カタログの中でguardrailsとスター数が近いAIエージェントプロジェクト — 前後の棚もそのまま見て回れます。

guardrailsを入手する

無料でオープン — ソースコードを入手して、リポジトリにスターを付け、作り始めましょう。