Open Source · GPL-3.0 · Single Binary

Inspect PostgreSQL
from your terminal.

A fast, lightweight database browser that runs in your terminal. Browse tables with pagination, run SQL with autocomplete, export data as CSV/JSON/SQL — all from a single compiled binary. Perfect for remote support, quick data checks, and engineering workflows. Built with Rust for speed.

~5 MB
Binary Size
TUI + Web
Two Interfaces
3 Formats
CSV · JSON · SQL
3 Platforms
macOS · Linux · Windows

You're opening pgAdmin just to check a few rows.

pgAdmin takes 15 seconds to open. TablePlus costs $89. DBeaver eats 1GB of RAM. DataGrip requires a JetBrains subscription. When you're SSH'd into a server or doing remote support, you just need to peek at a table — fast.

1

GUI Bloat

TablePlus, DBeaver, DataGrip — they load driver plugins, render UI frameworks, and cache schemas. Opening them feels slower than the query itself.

2

Remote Support Pain

When troubleshooting a customer's database over SSH, you can't run a GUI. You're stuck with psql and manual SELECT * queries.

3

Large Table Lag

psql prints 100k rows and your terminal scrolls forever. GUI tools page correctly but need installation and X11 forwarding on remote servers.

4

Export Hassle

Need a quick CSV of a query result? With psql it's \copy with delimiter config. With GUIs it's wizard dialogs. Both are slow when you just want the data.

Everything a database engineer needs. Nothing more.

A zero-dependency TUI that starts in milliseconds. Browse tables, run SQL, export data — all without leaving your terminal. Built-in Web UI for when you want a graphical view.

01

Table & View Browser

Sidebar navigation with row counts. Switch between Tables and Views. Filter by name with instant search. Vim-style keyboard shortcuts throughout.

02

Paginated Data View

Large tables? No problem. Built-in pagination loads 500 rows at a time with Prev/Next navigation. Real-time scrollbar shows your position. Copy TSV or JSON to clipboard.

03

SQL Query Editor

Interactive SQL editor with autocomplete for keywords, table names, and column names. Ctrl+S to run. Syntax highlighting for readability. Error messages shown inline.

04

Schema Inspector

View table schemas with column names, types, and row counts. Built-in SQL syntax highlighting for DDL statements.

05

Multi-Format Export

Download table or query results as CSV (Excel-ready), JSON (API-ready), or SQL INSERT statements. Full table or first 500 rows — you choose.

06

Horizontal Scroll

Wide tables with 30+ columns? Scroll horizontally with j/k keys in TUI mode or native scroll in Web mode. No truncated data.

07

Web UI Included

Launch with --ui flag for a full dark-theme web interface. Same features as the TUI. Use it for demos, screen sharing, or when you prefer a browser.

Terminal or Browser. Same binary.

TUI MODE

Terminal Interface

Vim-style keybindings (i/k/j/l for navigation). Paginated table view with row counts. SQL editor with autocomplete and syntax highlighting. Copy menus with TSV/JSON options. Perfect for SSH sessions and daily engineering work.

WEB UI

Dark-Theme Web Interface

Launch with --ui. Full sidebar navigation, paginated data, SQL editor with autocomplete and syntax highlighting. Export with one click. Copy TSV/JSON to clipboard. Ideal for demos and team sharing.

Three commands. That's it.

# Install in one command

sudo curl -L -o /usr/local/bin/postgrestui https://dl-postgrestui.voltrus.id/latest && sudo chmod +x /usr/local/bin/postgrestui

# Launch TUI mode (terminal interface)

postgrestui -s localhost -p 5432 -d mydb -u postgres

# Launch Web UI mode (browser on port 5000)

postgrestui -s localhost -d mydb -u postgres --ui

Pre-built binary $4.99 one-time · Build from source free on GitHub · macOS aarch64, Linux x86_64, Windows x86_64.

Built for database engineers who live in the terminal.

REMOTE

Remote Support & Troubleshooting

SSH into a server, launch postgrestui, browse data in seconds. No X11 forwarding, no GUI required. Perfect for on-call engineers debugging production issues.

DEV

Development & Testing

Quickly inspect data during development. Run ad-hoc queries, check schema, verify test data. Starts faster than any GUI tool.

AUDIT

Data Audits & Compliance

Export full table data as CSV for auditors. Query and download specific date ranges. All from the command line — scriptable and repeatable.

DEMO

Client Demos & Screen Sharing

Launch the Web UI for client-facing demos. Beautiful dark theme. Browse data, run queries, export results — all in a browser tab.

Common questions

Both. PostgresTUI is open source (GPL-3.0) — you can build it from source for free with cargo build --release. If you prefer a ready-to-use binary without compiling, it's $4.99 one-time from Polar. No subscriptions, no feature gates — just a convenience fee for the pre-built download.
Yes. PostgresTUI is a terminal app — it works perfectly over SSH. Upload the binary (or build it on the target machine) and you can browse PostgreSQL databases on remote servers without X11 forwarding.
Yes. Connect to any PostgreSQL endpoint — localhost, Docker, AWS RDS, Google Cloud SQL, Azure Database for PostgreSQL, Supabase, Neon, or any managed service. Just provide the host, port, database, user, and password.
PostgresTUI is a browser, not a backup tool. For backups use pg_dump. But you can export individual tables as SQL INSERT statements, CSV, or JSON for data migration and analysis.
The binary includes an embedded web server (Rust + axum) and a React frontend. When you launch with --ui, it starts a local HTTP server on port 5000. Open your browser and you have a full database browser. The web assets are compiled into the binary — no separate files needed.
Yes. Launch as many instances as you need. Each one connects independently. Use different --listen ports for multiple Web UIs.

Open Source · GPL-3.0

Get PostgresTUI.
Build from source or buy the binary.

Build from Source

$0

Free — forever. GPL-3.0

Clone the repo, run cargo build --release, and you're done. Modify, share, redistribute.

GitHub

Pre-built Binary

$4.99

One-time — no subscription

Ready-to-use binary for macOS, Linux, or Windows. Download and run immediately — no Rust toolchain needed.

Buy & Download