A k9s-style terminal UI for PostgreSQL. Split-panel browsing with live preview, detail tabs, and a built-in SQL query editor — right from your CLI.
pgbrowser davymca@localhost:5432/pgbrowser_test ┌─ Tables ────────────┐┌─ ecommerce.orders ────────────────────────┐ │ TABLE EST ││ Columns | Indexes | Data │ │ customers 30 ││ id bigint NOT NULL │ │ orders 60 ││ user_id integer NOT NULL │ │ order_items 120 ││ total numeric NOT NULL │ │ products 50 ││ status varchar NOT NULL │ │ categories 12 ││ created_at timestamp NOT NULL │ │ reviews 89 │├──────────────────────────────────────────┤ │ ││ Query │ │ ││ SELECT * FROM orders LIMIT 10 │ │ ││ ID USER_ID TOTAL STATUS │ │ ││ 1 42 29.99 shipped │ │ ││ 2 17 149.00 pending │ │ ││ 3 8 74.50 delivered │ └──────────────────────┘└──────────────────────────────────────────┘ Databases > pgbrowser_test > ecommerce > Tables <Tab> Panel <Ctrl+E> Run <[/]> Tab </> Filter <Esc> Back <q> Quit
Left panel lists items, right panel shows a live preview that updates as you move the cursor. See table structures, indexes, and data without pressing Enter.
Write and execute SQL queries right inside pgbrowser. The query panel auto-fills with a useful default, and results appear inline. Press Ctrl+E to run.
Press / and start typing to instantly narrow any list. Filtering applies to whichever panel has focus. Find that table among hundreds without scrolling.
Tab through Columns, Indexes, and Sample Data (first 50 rows) for any table. See types, nullability, defaults, and index definitions without writing SQL.
Row counts use PostgreSQL planner statistics — no full table scans. Get instant estimates even on tables with billions of rows.
Vim-style j/k navigation, Tab to cycle panels, command mode with :, and context-sensitive key hints. No mouse needed.
Whether you're debugging a production issue at 2am or onboarding onto a new codebase, pgbrowser gets you the answers you need without leaving your terminal.
brew tap zagware/tap
brew install pgbrowser
Recommended for most users. Auto-updates via brew upgrade.
Visit github.com/zagware/pgbrowser-dist
Download the latest release for your OS
Pre-built binaries for macOS (Intel + Apple Silicon), Linux, and Windows.
pgbrowser --url "postgres://user@host/db"
Pass your connection string and start browsing immediately.
| Key | Action |
|---|---|
| j / k / arrows | Move up/down in lists |
| Enter | Drill into selected item |
| Esc | Go back one level |
| Tab | Cycle focus between panels |
| / | Live fuzzy filter (focused panel) |
| : | Command mode |
| [ / ] | Switch tabs in table detail |
| Ctrl+E | Execute SQL in query panel |
| q | Quit |
pgbrowser is free to download. Grab the latest release and point it at any PostgreSQL database.
Download from GitHub