# pgen

A macOS PostgreSQL client with a SQL editor, data browser, query history, import/export, and an optional AI assistant.

> This is the Markdown version of the pgen page on OpenNavo, with the same facts as the web page: <https://opennavo.com/apps/pgen>

- **Latest version**: `1.21.0`
- **Developer**: Tragen
- **Homepage**: <https://pgendb.com/>
- **Categories**: [Databases](https://opennavo.com/categories/databases)
- **Install**: `brew install --cask pgen`
- **30-day installs**: 6
- **Homebrew**: Available; the app updates itself
- **Download URL**: <https://pgendb.com/download/v1.21.0/pgen.dmg>
- **SHA-256**: `55ec6df1bd635ae50811b2c41a0b3edee8dfa5ba745f9d079de0b11fc6423b45`

SHA-256 only checks that the download is complete; it is not a security certification.

## Installation and removal contents

```json
[
  {
    "declaration": {
      "app": [
        "pgen.app"
      ],
      "target": "/Applications/pgen.app"
    },
    "phase": "install",
    "sources": [
      "pgen.app"
    ],
    "target": "/Applications/pgen.app",
    "type": "app"
  },
  {
    "declaration": {
      "zap": [
        {
          "trash": [
            "~/Library/Application Support/com.tragen.pgendb",
            "~/Library/Caches/com.tragen.pgendb",
            "~/Library/HTTPStorages/com.tragen.pgendb",
            "~/Library/Preferences/com.tragen.pgendb.plist"
          ]
        }
      ]
    },
    "phase": "cleanup",
    "sources": [],
    "type": "zap"
  }
]
```

## 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](https://pgendb.com/) · [Homebrew cask](https://raw.githubusercontent.com/Homebrew/homebrew-cask/HEAD/Casks/p/pgen.rb)

## System requirements

- macOS 12 or later · Version: 1.21.0 · Intel · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pgen.rb> · Checked 2026-11-29
  - <https://pgendb.com/download/v1.21.0/pgen.dmg>
  - SHA-256: `55ec6df1bd635ae50811b2c41a0b3edee8dfa5ba745f9d079de0b11fc6423b45`
- macOS 12 or later · Version: 1.21.0 · Apple silicon · <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pgen.rb> · Checked 2026-11-29
  - <https://pgendb.com/download/v1.21.0/pgen.dmg>
  - SHA-256: `55ec6df1bd635ae50811b2c41a0b3edee8dfa5ba745f9d079de0b11fc6423b45`

## Price

- Free — Official website: <https://pgendb.com/pricing> · <https://pgendb.com/pricing> · Checked 2026-10-25

## Uninstall

- `brew uninstall --cask pgen`

A 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`.

A regular uninstall removes the app and keeps its settings and caches.

- Files and folders: `~/Library/Application Support/com.tragen.pgendb` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pgen.rb> · These entries come from the Homebrew definition, checked 2026-11-29. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Caches/com.tragen.pgendb` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pgen.rb> · These entries come from the Homebrew definition, checked 2026-11-29. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/HTTPStorages/com.tragen.pgendb` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pgen.rb> · These entries come from the Homebrew definition, checked 2026-11-29. They say what it declares, not what is on your Mac.
- Files and folders: `~/Library/Preferences/com.tragen.pgendb.plist` — <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pgen.rb> · These entries come from the Homebrew definition, checked 2026-11-29. They say what it declares, not what is on your Mac.

## Facts and sources

- <https://opennavo.com/apps/pgen>
- <https://opennavo.com/apps/pgen/versions>
- <https://github.com/homebrew/homebrew-cask/blob/HEAD/Casks/p/pgen.rb> · Checked 2026-11-29
- <https://formulae.brew.sh/cask/pgen>
- <https://pgendb.com/pricing> · Checked 2026-10-25
