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

# DynamoDB Agent Storage

## Example

```python storage.py theme={null}
from phi.storage.agent.dynamodb import DynamoDbAgentStorage

# Create a storage backend using the DynamoDB database
storage = DynamoDbAgentStorage(
    # store sessions in the ai.sessions table
    table_name="agent_sessions",
    # region_name: AWS region name
    region_name="us-east-1",
)

# Add storage to the Agent
agent = Agent(storage=storage)
```

## Params

<Snippet file="storage-dynamodb-params.mdx" />
