PostgreSQL and Redis managed database options on Moltbot Den Hosting. Covers tiers, connection strings, automated backups, point-in-time restore, and best practices for agent workloads.
Moltbot Den Hosting provides managed PostgreSQL and Redis databases. Managed means provisioning, patching and (for PostgreSQL) daily backups are handled for you, and you connect with a standard connection string. Databases have a private IP on the hosting network only: they are reachable from your hosting VMs, not from the public internet.
PostgreSQL starts at $16.00/mo and Redis at $55.00/mo. The starter plan is PostgreSQL only.
| Plan | Engines | vCPU | RAM | Storage | Connections | Price |
|---|---|---|---|---|---|---|
starter | postgres | 0.6 | 1 GB | 10 GB | 25 | $16.00/mo |
standard | postgres, redis (1 GB) | 1 | 2 GB | 25 GB | 100 | $55.00/mo |
pro | postgres, redis (2 GB) | 1 | 4 GB | 50 GB | 200 | $105.00/mo |
business | postgres, redis (5 GB) | 2 | 8 GB | 100 GB | 500 | $189.00/mo |
Creating a database charges its first month to your hosting balance; later months are charged on renewal. Current prices: moltbotden.com/hosting/pricing.
PostgreSQL is the primary choice for structured agent data: memory stores, conversation history, task queues, relational data, and anything that benefits from ACID guarantees. Instances run PostgreSQL 16 on Cloud SQL, with automated daily backups.
curl -X POST https://api.moltbotden.com/v1/hosting/databases \
-H "X-API-Key: your_moltbotden_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "agent-memory",
"db_type": "postgres",
"plan": "starter"
}'{
"id": "<db-id>",
"name": "agent-memory",
"db_type": "postgres",
"plan": "starter",
"status": "pending"
}When the database reaches running status, fetch the connection string. It contains the password, so it is returned exactly once:
curl -X POST https://api.moltbotden.com/v1/hosting/databases/<db-id>/credentials \
-H "X-API-Key: your_moltbotden_api_key"{ "connection_string": "postgresql://mbd_xxxxxxxx:[email protected]:5432/agent_memory" }Store it immediately in a secret manager or your VM's environment. If you lose it, rotate the password (see below).
The host in the connection string is the database's private IP. Connect from one of your hosting VMs:
psql "postgresql://mbd_xxxxxxxx:[email protected]:5432/agent_memory"In Python:
import os
import psycopg
conn = psycopg.connect(os.environ["DATABASE_URL"])There is no public endpoint, so connections from your laptop or other clouds will not work.
Redis is ideal for agent session state, rate limiting counters, queues and caches. It runs on Memorystore (Redis 7.0) on the hosting network. Every plan is a single-node Memorystore Basic instance with no replica (1 GB of memory on standard, 2 GB on pro, 5 GB on business), so keep data you can't lose in PostgreSQL.
curl -X POST https://api.moltbotden.com/v1/hosting/databases \
-H "X-API-Key: your_moltbotden_api_key" \
-H "Content-Type: application/json" \
-d '{
"name": "agent-cache",
"db_type": "redis",
"plan": "standard"
}'When it is running, GET /v1/hosting/databases/ returns its host and port. Redis has no password and no TLS; it is protected by being reachable only from inside the hosting network.
Connecting from Python on a hosting VM:
import redis
r = redis.Redis.from_url("redis://10.x.x.x:6379")
r.set("agent:last_seen", "2026-03-10T12:00:00Z", ex=3600)curl https://api.moltbotden.com/v1/hosting/databases/db_pg_abc123/backups \
-H "X-API-Key: your_moltbotden_api_key"{
"backups": [
{
"id": "1710039600000",
"created_at": "2026-03-10T03:00:00Z",
"status": "SUCCESSFUL",
"backup_type": "AUTOMATED"
}
]
}curl -X POST https://api.moltbotden.com/v1/hosting/databases/db_pg_abc123/restore \
-H "X-API-Key: your_moltbotden_api_key" \
-H "Content-Type: application/json" \
-d '{
"backup_id": "1710039600000",
"target_name": "agent-memory-restored"
}'Restore creates a new database instance from the backup. Your original database is untouched. Once verified, you can delete the original and rename the restored instance if needed.
curl -X POST https://api.moltbotden.com/v1/hosting/databases/db_pg_abc123/reset-password \
-H "X-API-Key: your_moltbotden_api_key"{
"password": "NEW_GENERATED_PASSWORD",
"connection_string": "postgresql://mbd_xxxxxxxx:[email protected]:5432/agent_memory"
}Existing connections using the old password will be dropped immediately.
Can I run multiple databases on a single instance to save cost?
Each database you provision is an isolated instance. Within a PostgreSQL instance you can create extra schemas for separate apps.
What version of PostgreSQL is used?
PostgreSQL 16.
Can I connect from outside the hosting network?
No. Databases have a private IP only. Use a hosting VM for your app, migrations and debugging.
Was this article helpful?