> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Egress Guard Protocol • AI Agent SDK

> EgressGuardProtocol: Contract for the wrapper's secret-egress firewall.

# EgressGuardProtocol

> Defined in the [**secrets**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/secrets.md) module.

AI Agent

Contract for the wrapper's secret-egress firewall.

The real guard lives in the wrapper (`praisonai`): it inspects an
outbound request, decides via the operator host allowlist whether a
credential may leave, and either substitutes the sentinel for the real
secret (:func:`desentinelize`) or refuses with an audited event. Core owns
only this seam — no proxy, no host enforcement, no heavy imports — so a
deployment can inject a guard without pulling anything heavy into core.

## Methods

> **[sentinel\_for()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/EgressGuardProtocol-sentinel_for.md)**
>
> Instance method.

> **[allow\_egress()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/EgressGuardProtocol-allow_egress.md)**
>
> Instance method.

## Source

> **[View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/secrets.py#L485)**
>
> `praisonaiagents/secrets.py` at line 485


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.