LithePG is a free, open source PostgreSQL client built in Swift for macOS. Write SQL with autocomplete, browse your schema, read query plans and export results, with AI drafting that never leaves your Mac.
Install the latest release
$ brew install --cask omarpr/tap/lithepg
The tap pins every published build by version and SHA-256.
Under 7 MB downloadSwift and SwiftUI no ElectronKeychain for saved passwordsOn-device AI no cloud calls
Features
Connect, query, inspect, export.
The work you do in a database every day, in one native Mac window that opens fast and stays out of your way.
Connections that stay organized
Find any database from a filterable sidebar, import your Neon projects with one scan and reach private hosts through an SSH tunnel. TLS to remote hosts is verified by default, passwords stay in the macOS Keychain and a dropped connection comes back with one click.
Query without friction
Autocomplete for keywords, tables and columns as you type. Run the statement under the cursor straight from a longer script, with highlighting, tabs, history and keyboard shortcuts you can make your own.
Ask locally, review always
Describe what you need in plain English and get schema-aware SQL from Apple's on-device model on Macs with Apple Intelligence. The draft never runs automatically.
See how data connects
Navigate schema metadata, inspect foreign keys and open a pan-and-zoom relationship graph.
Results built for reuse
Filter rows across every page, format JSON in the cell editor, copy cells or rows and export CSV, TSV, JSON, Markdown or SQL inserts. Big queries stop on the server at 10,000 rows instead of downloading everything.
Understand the plan
Run EXPLAIN or EXPLAIN ANALYZE and scan a readable plan tree with cost shares, timings and the costliest node highlighted.
Local means local
Your database is not training material.
LithePG does not send prompts, schemas, credentials, query history or results to a cloud AI service. Saved passwords live in Keychain. Generated SQL stays on your Mac until you decide to run it.
Yes. LithePG is free and open source under the MIT license. There is no account, no subscription and no telemetry.
Which Macs does it run on?
Macs with Apple silicon running macOS 14 Sonoma or later. Ask in English also needs macOS 26 with Apple Intelligence turned on.
Does LithePG send my data anywhere?
No. Prompts, schema details, query results and passwords stay on your Mac. LithePG connects only to the databases you add and, when you ask it to scan, runs the Neon CLI you installed.
Which PostgreSQL databases can it connect to?
Local servers and hosted ones such as Neon, over plain TCP, verified TLS or an SSH tunnel through a bastion host.
How do I update it?
Run brew upgrade --cask lithepg. Every release is listed in the changelog on GitHub.
Built in the open
Read the code. Shape what comes next.
Open an issue, suggest a feature or send a pull request.