claimable-postgres
Original:🇺🇸 English
Translated
Provision instant temporary Postgres databases via Claimable Postgres by Neon (pg.new) with no login, signup, or credit card. Use when users ask for a quick Postgres environment, a throwaway DATABASE_URL for prototyping/tests, or "just give me a DB now". Triggers include: "quick postgres", "temporary postgres", "no signup database", "no credit card database", "instant DATABASE_URL".
2installs
Added on
NPX Install
npx skill4agent add neondatabase/agent-skills claimable-postgresTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →Claimable Postgres
Create an instant Postgres database with Claimable Postgres by Neon () for fast local development, demos, prototyping, and test environments.
pg.newDatabases are temporary by default (typically 72 hours) and can be claimed later to a Neon account for permanent use.
Quick Start
Run:
bash
npx get-dbThis provisions a database and writes to .
DATABASE_URL.envWhen to Use Which Method
CLI (npx get-db
)
npx get-dbUse this by default for most users who want a fast setup in an existing project.
bash
npx get-dbCommon flags:
- : skip prompts
-y, --yes - : choose env file path
-e, --env <path> - : customize env var key (default
-k, --key <name>)DATABASE_URL - : run SQL seed file
-s, --seed <path> - : enable logical replication
-L, --logical-replication - : set source/referrer id
-r, --ref <id>
SDK (get-db/sdk
)
get-db/sdkUse this for scripts and programmatic provisioning flows.
typescript
import { instantPostgres } from "get-db/sdk";
const db = await instantPostgres();
console.log(db.connectionString);REST API
Use this for non-Node environments or custom integrations.
bash
curl -X POST https://pg.new/api/v1/database \
-H "Content-Type: application/json" \
-d '{"ref":"my-app"}'Agent Workflow
- Confirm user wants a temporary, no-signup database.
- Ask whether they want CLI, SDK, or API (default to CLI).
- If CLI, run in the project root.
npx get-db - Verify was added to the intended env file.
DATABASE_URL - Offer a quick connection test () in their stack.
SELECT 1 - Explain expiry and how to keep it via claim URL.
Output to Provide to the User
Always return:
- where the connection string was written (for example )
.env - which variable key was used (or custom key)
DATABASE_URL - whether a is present
PUBLIC_CLAIM_URL - a reminder that unclaimed DBs are temporary
Safety and UX Notes
- Do not overwrite existing env files; update in place.
- Ask before destructive seed SQL (,
DROP, massTRUNCATE).DELETE - For production workloads, recommend standard Neon provisioning instead of temporary claimable DBs.
- If users need long-term persistence, instruct them to open the claim URL immediately.