# How to Add a Postgres Database to Your Replit Agent Project

DevFeed: [How to Add a Postgres Database to Your Replit Agent Project](<https://devfeed.tech/articles/how-to-add-a-postgres-database-to-your-replit-agent-project-5369.md>)

Original publisher: [Read original article](<https://neon.com/blog/how-to-add-a-postgres-database-to-your-replit-agent-project>)

Author: Matt Palmer

Published: 2024-12-20T01:53:02Z

Content type: tutorial

Language: en

Sources: [Blog -- Neon Docs](<https://devfeed.tech/sources/blog-neon-docs.md>)

Topics: [Repl.it](<https://devfeed.tech/topics/replit.md>), [Database](<https://devfeed.tech/topics/database.md>), [Persistence](<https://devfeed.tech/topics/persistence.md>), [App](<https://devfeed.tech/topics/app.md>), [Development](<https://devfeed.tech/topics/development.md>)

Tags: [apps](<https://devfeed.tech/tags/apps.md>), [build](<https://devfeed.tech/tags/build.md>), [cloud](<https://devfeed.tech/tags/cloud.md>), [community](<https://devfeed.tech/tags/community.md>), [database](<https://devfeed.tech/tags/database.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [persistence](<https://devfeed.tech/tags/persistence.md>), [postgres](<https://devfeed.tech/tags/postgres.md>), [product](<https://devfeed.tech/tags/product.md>)

## AI overview

This tutorial explains how to add a Postgres database to a Replit Agent project when the initial app lacks persistent storage. Using a Snake game and shared leaderboard as examples, it shows how database persistence preserves user data across refreshes and sessions, and suggests starting a new Agent chat with a focused prompt to implement the feature.

## Source excerpt

If you've used Replit Agent, you already know it can configure your development environment, build apps, and deploy them to the cloud--all without needing to install anything yourself. But what you might not know is that Agent can configure databases for you, ensuring your applica...