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

# native • AI Agent SDK

> native: Create an OS-native sandbox configuration.

# native

Method

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

Create an OS-native sandbox configuration.

Uses platform-specific sandboxing:

* macOS: Seatbelt (sandbox-exec)
* Linux: Landlock + bubblewrap
* Fallback: subprocess with restricted security policy

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def native(writable_paths: List[str], network: bool) -> 'SandboxConfig'
```

## Parameters

**writable\_paths** `List[str]`

Directories the agent may write to. Defaults to current directory only.

**network** `bool` (default: False)

Whether to allow network access. Defaults to False.

### Returns

**Returns** `'SandboxConfig'`

:

sandbox = SandboxConfig.native(
writable\_paths=\["./src", "./tests"],
network=False,
)

## Uses

* `os.getcwd`
* `abspath`
* `cls`
* `SecurityPolicy`

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/sandbox/config.py#L181)
>
> `praisonaiagents/sandbox/config.py` at line 181


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