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

# Neon

> Neon serverless PostgreSQL

# Neon

Serverless PostgreSQL for conversation persistence.

## Setup

1. Create a Neon project at [neon.tech](https://neon.tech)
2. Get your connection string

## Quick Start

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

agent = Agent(
    name="Assistant",
    instructions="You are a helpful assistant.",
    memory={
        "db": "postgresql://user:password@ep-xyz.us-east-1.aws.neon.tech/neondb",
        "session_id": "my-session"
    }
)

response = agent.start("Hello!")
print(response)
```

## Environment Variables

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
export PRAISON_CONVERSATION_URL="postgresql://user:password@ep-xyz.us-east-1.aws.neon.tech/neondb"
```

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

agent = Agent(
    name="Assistant",
    memory={"db": os.getenv("PRAISON_CONVERSATION_URL")}
)
```

## Features

* **Serverless**: Auto-scales to zero
* **Branching**: Create database branches for testing
* **PostgreSQL compatible**: Full Postgres feature set
