APort Agent Guardrails: Deterministic Pre-Action Authorization for AI Agents

This repository profile is provided by osrepos.com, an open source repository discovery platform.

APort Agent Guardrails: Deterministic Pre-Action Authorization for AI Agents

Summary

APort Agent Guardrails provides deterministic pre-action authorization for AI agents, running security checks before any tool execution. This crucial mechanism prevents prompt injection from bypassing policy, ensuring robust and auditable protection for AI-driven operations.

Repository Information

Analyzed by OSRepos on September 19, 2026

Topics

Click on any tag to explore related repositories

Use at your own risk

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of code from these repositories is the user's own responsibility. Always review the repository, source code, dependencies, licenses, and security implications before running or installing anything. OSRepos is not responsible for issues, damages, or losses resulting from third-party repositories.

Introduction

APort Agent Guardrails is an open-source repository providing deterministic pre-action authorization for AI agents. It ensures that security guardrails are executed before any tool, command, or action is performed by an AI agent. This crucial design prevents prompt injection attacks from bypassing established policy checks, offering a robust layer of security for AI-driven systems.

Why Use and Benefits

Securing AI agents is paramount, and APort Agent Guardrails offers several compelling advantages for developers and teams:

  • Deterministic Enforcement: Guardrails operate via runtime hooks, not just prompt instructions, ensuring actions are verified before execution.
  • Fail-Closed Defaults: Verification failures automatically block risky actions, providing a secure-by-default posture.
  • Explicit Rollout Mode: Use --enforcement=warn to record deny decisions while allowing actions during policy tuning, enabling safe rollout.
  • Auditable Decisions: Every allow or deny decision is logged with context, providing a clear audit trail.
  • Open Standard Artifacts: Utilizes Open Agent Passport (OAP) v1.0 passport and decision formats for transparency.
  • Research-Backed Outcomes: Proven effectiveness in adversarial testbeds, demonstrating 0% successful breaches under restrictive OAP policy against top-tier attempts.
  • Low Latency at Production Scale: Cloud API verification boasts p50 ~53ms at N=1,000, ensuring minimal performance impact.
  • Comprehensive Security Documentation: Detailed SECURITY.md and SECURITY_MODEL.md provide insights into the project's security posture.

Installation

Getting started with APort Agent Guardrails is straightforward, whether you're protecting a GitHub repository or integrating runtime guardrails into your AI agent framework.

Protect a GitHub Repository:
To protect your GitHub repository in 60 seconds, run:


npx @aporthq/aport-agent-guardrails github

For blocking hosted enforcement on protected branches, use:


npx @aporthq/aport-agent-guardrails github --mode hosted --branches main,staging

Install Runtime Guardrails:
For runtime hooks, you can use the interactive installer or specify your framework:


npx @aporthq/aport-agent-guardrails
# or for a specific framework, e.g., Claude Code
npx @aporthq/aport-agent-guardrails claude-code

For Python users (e.g., LangChain, CrewAI, DeerFlow), first run the Node CLI for setup, then install the Python package:


uvx --from aport-agent-guardrails aport setup --framework=langchain
# or
pip install aport-agent-guardrails
aport setup --framework=langchain

Follow the printed instructions to install framework-specific Python packages and wire the provider/callback.

Examples

After installation, APort Agent Guardrails automatically runs when your agent uses tools. You can also test policy decisions directly from the command line.

Test Policy from CLI (Node):


aport-guardrail system.command.execute '{"command":"ls"}'      # ALLOW (safe)
aport-guardrail system.command.execute '{"command":"rm -rf /"}'  # DENY (blocked pattern)

The exit code indicates the decision: 0 for ALLOW, 1 for DENY.

Check Passport Status and Audit:

  • Passport & Audit: Stored in your APort framework state directory (e.g., ~/.cursor/aport/, ~/.aport/langchain/aport/).
  • Audit Log: config_dir/aport/audit.log contains one line per decision.
  • Last Decision: config_dir/aport/decision.json holds the latest OAP v1.0 format decision.

Links

For more detailed information, documentation, and community engagement, refer to the following official links:

Related repositories

Similar repositories that may be relevant next.

aport-spec: The Open Agent Passport (OAP) Specification for AI Agent Trust

aport-spec: The Open Agent Passport (OAP) Specification for AI Agent Trust

September 18, 2026

The aport-spec repository introduces the Open Agent Passport (OAP) specification, a critical framework for establishing trust in AI agents. It defines a lightweight, cryptographically verifiable credential, enabling real-time, pre-action authorization for AI agents across various platforms. OAP provides the essential runtime trust layer for secure and scalable agentic commerce.

aiaiagentauthorization
Atlas: Source Control for AI Coding Agents

Atlas: Source Control for AI Coding Agents

September 17, 2026

Atlas is an innovative source control system designed specifically for AI coding agents. It allows developers to manage multiple agents, track their changes, and query their activities in a unified environment. Built in Rust, Atlas ensures that every agent's commit is linked to its session, providing full context including prompts and tool calls.

aicoding-agentsgit
Goon: Autonomous AI Worker for Software Development and Custom Workflows

Goon: Autonomous AI Worker for Software Development and Custom Workflows

September 15, 2026

Goon is a self-hosted, autonomous AI worker designed to streamline software development and automate custom workflows. Built with Go and having zero dependencies, it operates as a daemon, capable of tasks from writing code and opening PRs to summarizing emails and monitoring logs. It learns from your context and asks for human approval before acting, ensuring controlled and intelligent automation.

aiautonomous-agentsgolang
cc-polymath: Context-Efficient Skills for Claude Code Development

cc-polymath: Context-Efficient Skills for Claude Code Development

September 10, 2026

cc-polymath is an innovative GitHub repository offering a vast collection of atomic skills and workflows specifically designed for Claude Code. It addresses the challenge of providing comprehensive development knowledge without overwhelming the AI's context window. By employing a progressive discovery system, cc-polymath ensures context efficiency and high-quality skill access across a wide range of technical domains.

aiclaude-codeskills

Source repository

Open the original repository on GitHub.

View on GitHub
OS
OSRepos

Analysis and discovery of open source repositories. Find interesting projects and follow their updates.

Monitor your website with YourWebsiteScore

OSRepos shares public repositories for knowledge and discovery only. Any installation, execution, configuration, or use of third-party repository code is at your own risk. Always review source code, dependencies, licenses, and security implications before running anything.

© 2025 OSRepos. Built with Nuxt 3 and lots of ❤️