> ## 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.

# Allow Egress • AI Agent SDK

> allow_egress: API reference for EgressGuardProtocol.allow_egress

# allow\_egress

Method

> This is a method of the [**EgressGuardProtocol**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/EgressGuardProtocol.md) class in the [**secrets**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/secrets.md) module.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def allow_egress(host: str, ref: 'SecretRef') -> bool
```

## Parameters

**host** `str` *required*

No description available.

**ref** `SecretRef` *required*

No description available.

### Returns

**Returns** `bool`

The result of the operation.

## Source

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


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