Introduction
vibepg is a local PostgreSQL CLI that runs Postgres in Docker containers. Instead of installing Postgres and psql on your machine, you create named instances on demand and let vibepg manage their lifecycle, credentials, and data.
What vibepg does
- Container lifecycle. Create, start, stop, restart, and remove Postgres containers with friendly names —
vibepg new demo,vibepg up demo,vibepg rm demo. - SQL execution. Run a single statement (
exec), one or more SQL files (run), or drop into an interactivepsqlREPL. - CSV import. Stream CSV/TSV into a table with
\copy FROM STDINand full control over schema, columns, and delimiter. - Backups. Wrap
pg_dumpandpg_restorewith sensible defaults; restore auto-detects plain SQL vs archive formats. - Credential management. Auto-generate strong passwords, store them in the OS keychain (Keychain Services / Secret Service / Credential Manager), and rotate them on demand.
Why vibepg
- No local Postgres. You only need Docker. No Homebrew tap, no
apt install postgresql-client, no version conflicts. - Secure by default. Passwords never live on disk in plaintext. Each instance gets its own keychain entry.
- Ephemeral or persistent. Default instances back onto a Docker volume that survives restarts. Pass
--ephemeralfor throwaway test databases that disappear with the container. - Per-project isolation. Spin up a fresh instance for each project, with its own port, database, and credentials.
Requirements
- Docker Desktop or Docker Engine, installed and running
- macOS (Intel or Apple Silicon), Linux (x86_64 or arm64), or Windows (x86_64)
- That's it — no Rust toolchain unless you build from source
What vibepg is not
- Not a managed cloud database. vibepg is local-only. For production, use a managed Postgres provider.
- Not a replacement for Postgres itself. vibepg orchestrates the official
postgresDocker image; it doesn't reimplement Postgres or modify its behavior. - Not a migration tool.
runwill execute SQL files, but vibepg has no opinions about migration ordering, schema versioning, or rollbacks. Use your existing migration tool of choice.
Next steps
- Install vibepg
- Quickstart — zero to a query in 60 seconds
- Concepts — instances, registry, persistence