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

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**SandboxConfig**](../classes/SandboxConfig) class in the [**config**](../modules/config) 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

<ParamField query="writable_paths" type="List[str]" required={false}>
  Directories the agent may write to. Defaults to current directory only.
</ParamField>

<ParamField query="network" type="bool" required={false} default="False">
  Whether to allow network access. Defaults to False.
</ParamField>

### Returns

<ResponseField name="Returns" type="'SandboxConfig'">
  :

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

## Uses

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/sandbox/config.py#L177">
  `praisonaiagents/sandbox/config.py` at line 177
</Card>
