Short answer
Redis, Neon, and MongoDB Atlas are the three to open first: Redis for short-lived agent state, Neon for a Postgres database that can scale to zero between runs, and Atlas for document logs of tool calls. Supabase, Turso, and Upstash cover hosted Postgres, many small databases, and per-command Redis. Every price below is as of December 2026 from the vendor page.
Last verified against the sources listed below.
Key takeaways
- Redis Cloud's free plan is $0 and lists up to 30 MB for a single database.
- Neon's free plan is $0 for up to 100 projects, and Launch compute is $0.106 per CU-hour with no monthly minimum.
- MongoDB Atlas lists a free cluster at $0 per hour with 512 MB of storage.
- Supabase's free projects pause after 1 week of inactivity. Neon's free projects do not.
- This list is for agent state and memory, not a ranking of vector indexes.
Top database software for AI agent workflows is the store that keeps conversation state, memory, and tool logs between steps. A similarity index is a different purchase. Relational databases still hold most of the durable rows.
Vector database versus NoSQL is the comparison to read when the job is embeddings. This list does not repeat that ranking.
Quick comparison
Prices are as of December 2026, from each vendor’s pricing page.
| Tool | Best for | Starting price | Free plan or trial | Standout feature |
|---|---|---|---|---|
| Redis Cloud | Short-lived agent state | Free, $0, up to 30 MB | Free plan | Essentials totals $5/month |
| Neon | Postgres that sleeps between runs | Free, $0 | Free plan, up to 100 projects | Scale to zero, no monthly minimum on paid plans |
| MongoDB Atlas | Document logs of tool calls | Free cluster, $0/hour | Free, 512 MB | Atlas Infinite from $0.09/hour on M10+ |
| Supabase | Postgres plus auth in one project | Free, $0/month | Free, 500 MB, 2 projects | Pro from $25/month |
| Turso | Many small databases | Free, $0/month | 100 databases and 5 GB | Developer from $4.99/month |
| Upstash Redis | Spiky, per-command state | Free, $0 | 250 MB and 500K commands | Pay as you go, $0.20 per 100K commands |
Redis Cloud
Redis Cloud is Redis’s managed service. The pricing page frames it for fast apps, and the free tier is a single small database on shared infrastructure.
Best for: hot keys the agent reads on every turn, such as a session or a short memory with a TTL.
- Free is $0, up to 30 MB, one database, best-effort SLA, community support.
- Essentials starts at $0.007 per hour and shows a total of $5 per month.
- Essentials lists 250 MB to 100 GB, one database, on shared infrastructure.
- Pro starts at $0.014 per hour with a minimum of $200 per month, on dedicated infrastructure.
Pricing, as of December 2026: Free is $0 up to 30 MB, and Essentials is from $0.007 per hour with a $5 monthly total, on Redis pricing.
Pros
- A $0 plan exists for a prototype session store.
- Essentials prints both an hourly rate and a $5 monthly total.
Cons
- 30 MB is a small cap for tool logs.
- Pro’s published minimum is $200 per month.
Neon
Neon is managed Postgres. The pricing page says every project can scale to zero, including on Free, and that there is no per-project fee. An Agent Plan is listed for app-generation platforms, at custom rates.
Best for: one Postgres database per agent or per tenant, idle most of the time.
- Free allows up to 100 projects, each with 100 CU-hours and 1 GB of storage.
- Launch compute is $0.106 per CU-hour. Scale is $0.222 per CU-hour.
- Paid plans have no monthly minimum. Idle compute is not billed. Storage still is.
- The page says free projects are not paused for inactivity. Compute scales to zero after 5 minutes.
Pricing, as of December 2026: Free is $0, and Launch is $0.106 per CU-hour with no monthly minimum, on Neon pricing. The Agent Plan is custom pricing, see vendor.
Pros
- A database per agent does not add a platform fee.
- Free projects stay available when idle, unlike a host that pauses them.
Cons
- Paid storage is metered, at $0.35 per GB-month for database storage on the page.
- History storage for instant restore is a separate $0.20 per GB-month on paid plans.
MongoDB Atlas
MongoDB Atlas is the managed document database. The pricing page puts a free cluster next to Flex and Dedicated, and it describes Atlas Infinite as built for agentic workloads.
Best for: tool-call logs and memories whose fields change from one tool to the next.
- The free cluster is $0 per hour, with 512 MB of storage and shared RAM.
- Flex is $0.011 per hour, with 5 GB of storage.
- Dedicated starts at $0.08 per hour, and the page also says it starts at $56.94 per month.
- Atlas Infinite is $0.09 per hour and is available on M10 and higher dedicated clusters.
Pricing, as of December 2026: the free cluster is $0 per hour, and Flex is $0.011 per hour, on MongoDB pricing.
Pros
- A free 512 MB cluster is enough to log early runs.
- Infinite is documented for agentic workloads, on dedicated clusters.
Cons
- The dedicated card shows both $0.08 per hour and $56.94 per month, so quote the unit you will be billed in.
- Infinite is not the free tier. It requires an M10 or higher cluster.
Supabase
Supabase is hosted Postgres with optional auth, storage, and realtime. The pricing page says a project can be used as a standalone Postgres database, and unused products cost nothing.
Best for: an agent that should share a Postgres database with the app’s auth users.
- Free is $0 per month, with 500 MB of database size and a limit of 2 active projects.
- Free projects are paused after 1 week of inactivity.
- Pro is from $25 per month, with 8 GB of disk per project and $10 of compute credits.
- Team is from $599 per month. Enterprise is custom pricing, see vendor.
Pricing, as of December 2026: Free is $0 per month and Pro is from $25 per month, on Supabase pricing.
Pros
- One project can hold the database and the auth users.
- The page says you can self-host with Docker or the CLI.
Cons
- A free project that sits idle for a week is paused.
- Pro’s $25 plan price does not include a second project’s compute. The page’s example with two Micro projects is $35 per month.
Turso
Turso is a hosted database the pricing page describes as light enough that creating one costs almost nothing. The page meta description says the free tier includes 100 databases and 5 GB of storage, and that Developer plans start at $4.99 per month with unlimited databases.
Best for: a large set of small databases, one per agent or per user.
- Free is $0 per month.
- The free card lists 100 databases and 5 GB, then 500 million, 10 million, 3 GB, and 1 day of point-in-time restore in the table order.
- Developer is $4.99 per month. Scaler is $24.92 per month. Pro is $416.58 per month.
- The page says idle databases cost only storage.
Pricing, as of December 2026: Free is $0 per month and Developer is from $4.99 per month, on Turso pricing.
Pros
- 100 free databases matches a one-database-per-agent prototype.
- Developer removes the database-count cap, per the meta description.
Cons
- The pricing table is dense, so confirm which allowance is reads versus writes before you budget overages.
- Pro, at $416.58 per month, is a different budget from the $4.99 plan.
Upstash Redis
Upstash Redis is serverless Redis with a per-command price and fixed-size plans. The pricing page says the free tier is for prototypes.
Best for: agent state that spikes, where you would rather pay per command than for an always-on node.
- Free is $0, with 250 MB, 10 GB of monthly bandwidth, and 500,000 commands.
- Pay as you go is $0.20 per 100,000 commands, plus $0.25 per GB of storage.
- Fixed 250 MB is $10 per month, plus $5 per read region.
- Prod Pack is an extra $200 per month per database. Enterprise is custom pricing, see vendor.
Pricing, as of December 2026: Free is $0 and pay as you go is $0.20 per 100,000 commands, on Upstash pricing.
Pros
- The free command cap is published, not hidden behind a sales form.
- A budget cap exists on pay as you go, and the page says spend will not pass the cap you set.
Cons
- A free account can have 1 database. Extra paid databases past the first 10 cost $0.50 per month.
- Prod Pack’s $200 add-on is a large jump if you only needed the free tier’s limits.
How to choose a database for agent state
Match the store to the lifetime of the data. A key that expires and a row you must query next month are not the same product.
- Use Redis Cloud or Upstash when the agent needs a short-lived key and a published free cap.
- Use Neon when each agent should have Postgres that can scale to zero without a per-database fee.
- Use Supabase when the agent and the app should share one Postgres project, and remember that free projects pause.
- Use MongoDB Atlas when tool logs are documents, and move to Dedicated only when you need the hourly dedicated rate.
- Use Turso when you want many small databases and the free tier’s 100-database cap is the point.
- Count the text you store. A word counter is enough to see whether a memory field is a sentence or a transcript.
How we picked these tools
Each price comes from the vendor’s pricing page, opened in December 2026. The list is limited to databases used for agent state, memory, and tool logs.
A product stayed in when the page showed a free tier or a dollar rate for that job. Vector indexes are a different category, so they are not the first three names here. The order runs from a small in-memory store to per-command Redis, not from a single vendor’s catalog.
Frequently asked questions
What should an agent database store?
Store the working set the next step needs: the conversation so far, a short memory the agent will read again, and a log of tool calls. Redis and Upstash fit keys that expire. Neon, Supabase, and Turso fit rows you query with SQL. MongoDB Atlas fits documents whose shape changes between tools. A vector index answers a different question, similarity over embeddings, and it is not the top pick on this list.
Why is a vector database not the top pick here?
An agent workflow still needs a place for state even when nobody is searching embeddings. Session keys, run logs, and user memory are ordinary reads and writes. The vector comparison guide covers similarity search as its own choice. Putting that index first would hide the store that has to survive between turns. You can add similarity later. You cannot skip the state store.
Which of these can scale to zero between runs?
Neon's pricing page says compute scales to zero when idle, including on the Free plan, and that free projects are not paused for inactivity. Idle compute scales down after 5 minutes and starts on the next query. Supabase says free projects are paused after 1 week of inactivity, while paid projects are not paused. Upstash bills pay-as-you-go databases for commands and storage you actually use. A paused free project is a poor place for an agent that must answer overnight.
Is there a free way to start?
Yes, on every product in this list. Redis Cloud lists a $0 plan up to 30 MB. Neon lists a free plan with up to 100 projects. Atlas lists a free cluster at $0 per hour with 512 MB. Supabase lists Free at $0 per month with 500 MB. Turso's meta description lists a free tier with 100 databases and 5 GB. Upstash lists Free at $0 with 250 MB and 500,000 commands a month. Those caps are the published ones, as of December 2026.
Sources
- Redis pricing · Redis, 2026
- Neon pricing · Neon, 2026
- MongoDB pricing · MongoDB, 2026
- Supabase pricing · Supabase, 2026
- Turso pricing · Turso, 2026
- Upstash Redis pricing · Upstash, 2026