How It Works
Quick Start
1
Get Neon Credentials
- Create account at neon.tech
- Create a new project
- Copy connection string from dashboard
2
Create Agent with Neon
3
Test Persistence
Installation
- pip
- Environment Variables
Configuration Options
Usage Patterns
Using Convenience Class
Manual Configuration
Full Lifecycle Example
Neon-Specific Features
Database Branching
Create development branches of your agent’s data:Point-in-Time Recovery
Restore agent conversations to any point in time:Connection Pooling
Neon automatically pools connections, but you can tune for your workload:Best Practices
Optimize for Cold Starts
Optimize for Cold Starts
Neon databases auto-suspend after 5 minutes of inactivity. The first connection takes ~500ms-2s:
Use SSL Connections
Use SSL Connections
Neon requires SSL for all connections. PraisonAI auto-adds
sslmode=require:Monitor Usage
Monitor Usage
Track your database usage in the Neon dashboard:
- Compute time: Billed per second of activity
- Storage: Grows with conversation history
- Data transfer: Minimal for typical agent workloads
Handle Network Issues
Handle Network Issues
PraisonAI automatically handles transient connection failures:
Environment Variables
Troubleshooting
Cold Start Timeouts
If you see connection timeouts on first request:SSL Certificate Issues
Ensure your Neon URL includes SSL mode:Connection Pool Exhaustion
For high-concurrency agents, increase pool size:Related
Cloud Databases Overview
Compare all cloud database providers
Local PostgreSQL
Development setup with local PostgreSQL

