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

# capsule • AI Agent SDK

> capsule: Create a Capsule sandbox configuration.

# capsule

<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 a Capsule sandbox configuration.

Requires a plugin that registers `capsule` under the
`praisonai.sandbox` entry-point group (e.g. praisonai-plugins\[capsule]).

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def capsule() -> 'SandboxConfig'
```

### Returns

<ResponseField name="Returns" type="'SandboxConfig'">
  The result of the operation.
</ResponseField>

## Uses

* `cls`
* `SecurityPolicy.strict`

## Source

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