Skip to content
APort Agent Guardrails logo

APort Agent Guardrails

Verified

Deterministic guardrails that authorize AI agent actions before execution.

Autonomous AgentsAgent Frameworks 22Open source
View on GitHub
Updated 2026-06-15
APort Agent Guardrails GitHub repository

What is APort Agent Guardrails?

APort Agent Guardrails is an open-source authorization layer that enforces deterministic checks on AI agent actions prior to any tool execution. It prevents prompt-based attacks from overriding security policies by operating as a runtime hook rather than relying on instructions in the model prompt.

The tool integrates with popular agent frameworks through simple configuration hooks and uses standardized Open Agent Passport artifacts to manage agent identity and permissions. Decisions are logged with context, and the system defaults to blocking actions when verification fails.

It is designed for developers and teams building production agents who need reliable security controls, auditable logs, and compatibility with both cloud-hosted and offline deployments.

Capabilities

pre-action authorization
block 40+ harmful patterns
beforetoolcall plugin
local or api mode
agent framework integration

What you can build with APort Agent Guardrails

Block prompt injection attempts

Run guardrails before tool calls to stop injected instructions from triggering unauthorized actions in live agents.

Audit agent decisions at scale

Capture every allow or deny outcome with full context for compliance reviews and security analysis.

Secure multi-framework deployments

Apply consistent policy enforcement across LangChain, CrewAI, Claude Code, and similar environments.

Install APort Agent Guardrails

Install
npx @aporthq/aport-agent-guardrails
Quick start
npx @aporthq/aport-agent-guardrails
  1. 1Run the npx install command and select your target framework such as claude-code or langchain.
  2. 2Choose to create a new hosted passport, use an existing agent ID, or generate a local passport file.
  3. 3Allow the installer to write the required configuration hooks for your chosen framework.
  4. 4Provide an email for quick hosted setup if using the non-interactive mode with environment variables.
  5. 5Test the integration by running your agent and reviewing the logged authorization decisions.

Works with

OpenClaw

APort Agent Guardrails: pros & cons

Pros

  • +Zero successful breaches recorded in adversarial CTF testing under restrictive policies
  • +Works with multiple established agent frameworks through dedicated plugins
  • +Fail-closed behavior and detailed decision logging for reliable security
  • +Low-latency verification suitable for production workloads

Cons

  • Requires initial passport and framework configuration steps
  • Hosted option depends on external API calls for verification
  • Primarily focused on pre-action checks rather than post-execution monitoring
Did you find this helpful?

Frequently asked questions

It performs authorization through a deterministic runtime hook before any tool executes, independent of model instructions.

User reviews

Verified reviews from the community shape this listing's rating.

Loading reviews…

Sign in to review

Promote APort Agent Guardrails

Add this badge to your website, or share the tool.

DFeatured on DhanasviAPort Agent Guardrails 0