Skip to content

Database

PostgreSQL DocumentDB

DocumentDB is an open source document database engine built as PostgreSQL extensions that add a BSON data type and a DocumentDB API for working with document collections. From SQL you can create collections, insert and query BSON documents, update and delete records, manage indexes (including TTL), and run aggregation pipelines and lookups for more complex workloads. With Eyevinn Open Source Cloud (OSC), you get DocumentDB as a managed service instead of building Docker images, compiling extensions, installing them into Postgres, and wiring up the runtime yourself. Provision a ready-to-use endpoint quickly, skip the day-2 work of keeping the service running, and focus on using the DocumentDB API to build features. Because it runs on PostgreSQL, DocumentDB fits naturally into developer workflows that already use Postgres while adding document-oriented capabilities on top. Consuming it through OSC means you can standardize how you deploy and operate open source services across environments, with DocumentDB available alongside the rest of your OSC services without you having to manage the underlying infrastructure.

Deploy PostgreSQL DocumentDB on Open Source Cloud

  1. Web console: press Launch above, sign in, name the instance and create it.
  2. Command line: with your personal access token in OSC_ACCESS_TOKEN, run npx -y @osaas/cli@latest create ferretdb-documentdb myinstance. Add -o Key=Value for any required settings.
  3. Your AI agent: connect it to the OSC MCP server at https://mcp.osaas.io/mcp and ask: “Create an instance of PostgreSQL DocumentDB on Open Source Cloud and give me its URL.” How to connect

What it costs

One running PostgreSQL DocumentDB instance uses 10 tokens a day. The free Basic plan's 100 one-time tokens run it for about 10 days. On Personal (40 tokens a day) one instance runs continuously.

See plans and token allowances

Open source, no lock-in

PostgreSQL DocumentDB is built from the open source project at github.com/FerretDB/documentdb. You can run the same project on your own infrastructure or another cloud whenever you want, and take your data with you.

Questions about PostgreSQL DocumentDB

How much does PostgreSQL DocumentDB cost on Open Source Cloud?

One running PostgreSQL DocumentDB instance uses 10 tokens a day. The free Basic plan's 100 one-time tokens run it for about 10 days. On Personal (40 tokens a day) one instance runs continuously. Prices and allowances are on https://www.osaas.io/pricing.

How do I deploy PostgreSQL DocumentDB?

Three ways: press Launch to create it in the web console; run npx -y @osaas/cli@latest create ferretdb-documentdb myinstance with OSC_ACCESS_TOKEN set (add -o Key=Value for any required settings); or connect your AI agent to the OSC MCP server at https://mcp.osaas.io/mcp and ask it to "Create an instance of PostgreSQL DocumentDB on Open Source Cloud and give me its URL."

Can I move PostgreSQL DocumentDB off Open Source Cloud later?

Yes. PostgreSQL DocumentDB is open source, built from https://github.com/FerretDB/documentdb, so you can run the same project on your own infrastructure or another cloud and take your data with you.