pgen
Tragen · A macOS PostgreSQL client with a SQL editor, data browser, query history, import/export, and an optional AI assistant.
brew install --cask pgen- 30-day installs
- 6
- #2317 in App
- 1-year installs
- 155
- Last 365 days
- Latest version
- 1.21.0
- Download size
- 33MB
- dmg
- Release cadence
- Weekly
- 1 release in 30 days
About
pgen is a macOS client for working with PostgreSQL databases. Its SQL editor uses live schema information for autocomplete, and its data browser displays table contents in a paged grid with in-place cell editing.
- Write and run SQL, inspect query plans, and search recent query history, which is kept per connection on your machine.
- Browse and edit table data; the product describes each inline edit as a single transaction.
- Import data with column mapping, type inference, and insert-conflict handling. Export to CSV, JSON, SQL, or Excel, with optional filtering.
- Optionally use an AI assistant with a provider you choose, including Anthropic, OpenAI, Google, Ollama, or an OpenAI-compatible endpoint. You supply the provider credentials; the assistant is not required to use the client.
- The product describes safeguards including read-only mode, approvals for mutations on tagged production connections, and a 1,000-row cap for a bare
SELECT.
Install with brew install --cask pgen, then open pgen and connect to a PostgreSQL database. The official site lists macOS 11 or later and Apple Silicon or Intel, and describes support for PostgreSQL 12 or later. AI assistance requires a provider key unless using a local Ollama model.
Sources: Official pgen site · Homebrew cask
At a glance
- Price
- Free
- System
- macOS 12 or later
- Chip
- Apple silicon · Intel
- Auto-updates
- Yes
- Developer
- Tragen
- Homebrew
- Available; the app updates itself
- Homepage
- pgendb.com
- Token
- pgen
Checked
How to install pgen on Mac
Homebrew installs the app in your Applications folder.
Install without Homebrew
Download the same file Homebrew uses: Install Details
Uninstall pgen and optional data cleanup
brew uninstall --cask pgenA regular uninstall removes the app and keeps its settings and caches.
Deep clean (optional)
brew uninstall --zap --cask pgen--zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap.
Questions about pgen
Is pgen safe?
pgen is in Homebrew’s official catalog and has not been disabled. Since September 2026, Homebrew disables apps that fail macOS Gatekeeper checks. When installing, Homebrew checks the download from pgendb.com against its SHA-256 checksum. It was installed 6 times through Homebrew in the last 30 days.
Is pgen free?
Yes, pgen is free to use. Source: pgendb.com/pricing, checked Oct 25, 2026.
How do I completely uninstall pgen on a Mac?
Run brew uninstall --cask pgen. To delete its settings and caches as well, run brew uninstall --zap --cask pgen. --zap also deletes the settings, caches and other files listed in the Homebrew definition. They can include data shared with other apps and cannot be restored, and it does not guarantee that nothing is left. Back up any data you need first. To keep settings and caches, leave out --zap. That also deletes 4 files and folders, including ~/.
Does pgen run on Apple silicon (M1 and later) Macs?
Homebrew installs it on both Apple silicon and Intel Macs, from the same download. It needs macOS 12 or later.
Where does pgen store its settings and data?
Its settings are in ~/. Its data is in ~/. These locations come from Homebrew’s clean-up list.
What is the latest version of pgen?
The latest version is 1.21.0, added to Homebrew on Nov 7, 2026. pgen updates itself; to update it with Homebrew, run brew upgrade --cask --greedy pgen.
Similar Apps
- Apache CouchDBA multi-master syncing database that uses HTTP and JSON and supports replication across servers and other environments.
- HackoladeDesktop software for designing, reverse-engineering, and forward-engineering data models across databases, APIs, and data-exchange formats.
- MongrelA macOS database workbench that brings database connections, terminals, file transfer, containers, Kubernetes, and API tools into one desktop app.
- SQLPro for PostgresA macOS PostgreSQL client for creating tables, writing queries, and viewing results from multiple queries.