How to install and use pgAdmin on a Mac

Download pgAdmin 4 from pgadmin.org, open the disk image and drag the app into Applications, or run brew install --cask pgadmin4. pgAdmin doesn't include a database, so you also need a PostgreSQL server to connect to. Right-click Servers, choose Register › Server, name it on the General tab, and fill in the host, port, user and password on the Connection tab. pgAdmin is free and open source; version 9.19 needs macOS 14 Sonoma or later.

A blue-grey clay elephant holding a mint key next to a mint toy laptop with white blocks stacked like a tree, and an open white box

pgAdmin on a Mac in four steps

  1. Download

    The disk image for Apple silicon or Intel from pgadmin.org, or brew install --cask pgadmin4.

  2. Install

    Drag pgAdmin 4 into Applications and open it.

  3. Register

    Right-click Servers, choose Register › Server and give it a name on the General tab.

  4. Connect

    Host, port, database, user and password on the Connection tab. Then Save.

Install pgAdmin 4

  1. Open the macOS download page on pgadmin.org and pick the newest version (9.19, released 29 October 2026). There's one disk image for Apple silicon and one for Intel. Apple menu › About This Mac shows which chip you have.
  2. Open the disk image and drag pgAdmin 4 into Applications. The images are signed and notarised by Apple, so macOS lets the app open.
  3. Or use Homebrew: brew install --cask pgadmin4.

The first launch takes a moment. pgAdmin is a web app, and on the Mac it comes wrapped in Electron together with the Python server it runs on. That's also why it looks like a website in a window rather than a Mac app.

You still need a server

pgAdmin looks after PostgreSQL servers; it doesn't come with one. If the database runs on a server at work or with a cloud host, you have what you need. If you want one on the Mac itself, Postgres.app is the easiest option. How to install psql on a Mac covers it, and EDB's installer too.

Register your first server

In pgAdmin a saved connection is called a server.

  1. In the tree on the left, right-click Servers and choose Register › Server. The menu bar has the same command under Object › Register › Server.
  2. On the General tab, type a Name. It's only the label in the tree.
  3. On the Connection tab, fill in Host name/address, Port (5432 unless your server uses another), Maintenance database (usually postgres), Username and Password.
  4. Switch on Save password? if you don't want to type it each time, and click Save.

The Connection tab, filled in

Field names as in pgAdmin 9.19 and its documentation. The values are examples.

The server shows up in the tree. Expand it, then Databases, your database, Schemas, public and Tables. To run SQL, select the database and choose Tools › Query Tool.

The password and the Keychain

Since version 7.2, the desktop app keeps saved passwords in the operating system's password store, which on a Mac is the Keychain. So pgAdmin no longer asks you for a master password.

pgAdmin only falls back to a master password if the password store isn't available.

Through an SSH tunnel

Many production databases only accept connections from inside their own network, so you go through a server you can reach with SSH. Open the SSH Tunnel tab in the same dialog:

  1. Switch on Use SSH tunneling.
  2. Fill in Tunnel host (the SSH server), Tunnel port (usually 22) and Username.
  3. Under Authentication, choose Password or Identity file. For Identity file, pick your private key, such as ~/.ssh/id_ed25519.

On the Connection tab, Host name/address is now the database's address as seen from the SSH server, often localhost.

When pgAdmin is more than you need

pgAdmin is made for looking after servers: roles, backups, settings and query plans. If you mostly look at tables and run the odd query, that's a lot of app. Tabel, the Mac client I make for PostgreSQL and SQLite, opens with your connections in a list. The SSH tunnel is part of the connection form, and every connection gets an environment colour, with red for production. Tabel costs $4.99, once.

Tabel's start window: buttons for a new connection, a SQLite file, TablePlus import and pasting a connection URL, next to the saved connections, one of them through SSH1Paste a connection URL to connect2The SSH tunnel is part of the connection
Tabel with a customers table open and the row inspector alongside3Each connection's environment, in colour4Every table, with row counts
  1. Paste a connection URL to connect
  2. The SSH tunnel is part of the connection
  3. Each connection's environment, in colour
  4. Every table, with row counts
Tabel's start window and a PostgreSQL table.

For all the options side by side, see PostgreSQL GUI clients for Mac.