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

# Persistence Overview

> Understanding agent state persistence

# Persistence Overview

Persist agent state to resume sessions and maintain context across runs.

## What Gets Persisted

* **Memory**: Conversation history and context
* **Session State**: Current task progress
* **Checkpoints**: Intermediate results
* **Configuration**: Agent settings

## Quick Start

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
from praisonaiagents import Agent, Session

# Create session with persistence
session = Session(
    session_id="my-session",
    persistence="sqlite"
)

agent = Agent(
    name="Assistant",
    session=session
)

# Run agent
agent.start("Hello!")

# Later, resume the same session
session = Session(session_id="my-session", persistence="sqlite")
agent = Agent(name="Assistant", session=session)
agent.start("What did we talk about?")  # Remembers previous context
```

## Persistence Backends

| Backend    | Use Case          | Setup                      |
| ---------- | ----------------- | -------------------------- |
| SQLite     | Local development | `persistence="sqlite"`     |
| PostgreSQL | Production        | `persistence="postgresql"` |
| Redis      | High-performance  | `persistence="redis"`      |
| MongoDB    | Document storage  | `persistence="mongodb"`    |

## Related

* [Database Setup](/docs/guides/persistence/databases) - Configure backends
* [Session Resume](/docs/guides/persistence/session-resume) - Resume sessions
* [Session Module](/docs/sdk/praisonaiagents/session) - Full API reference
