# Pgweb

Pgweb is a lightweight, cross-platform desktop PostgreSQL client that gives developers and administrators a local web interface for browsing schemas, running queries, and inspecting data. It is open source and self-hosted, installable on Docker Hub.

Canonical page: https://ourlocalhost.com/app/8011/pgweb

## Description

Pgweb is a lightweight, cross-platform desktop PostgreSQL client that gives developers and administrators a local web interface for browsing schemas, running queries, and inspecting data.

## Platform availability

Available on 4 of 10 platforms: Mac, Windows, Linux, Any server.

## Desktop and other devices

Mac, Windows, Linux.

## Health score

59/100 (Fair), based on 5 of 5 factors.
- Maintained: 61 (last commit 141 days ago)
- Popular: 80 (9,560 GitHub stars)
- Easy to install: 55 (4 install platforms, install notes)
- Light to run: 100 (256 MB minimum RAM)
- Security check: 0 (7 serious findings, 2 minor, CI, tests, OpenSSF Scorecard 2.9/10)

## Security check

7 serious findings: Uses golang.org/x/crypto v0.46.0, which has a known critical vulnerability; Uses golang.org/x/crypto v0.46.0, which has a known critical vulnerability; Uses golang.org/x/crypto v0.46.0, which has a known critical vulnerability; Uses golang.org/x/crypto v0.46.0, which has a known critical vulnerability; Uses golang.org/x/crypto v0.46.0, which has a known critical vulnerability; Uses golang.org/x/crypto v0.46.0, which has a known critical vulnerability; Uses golang.org/x/crypto v0.46.0, which has a known critical vulnerability.
Automated checks on commit e4858a1, 22 Nov 2026. Not an audit.

## Links

- Official website: https://sosedoff.github.io/pgweb
- GitHub: https://github.com/sosedoff/pgweb
- desktop: https://github.com/sosedoff/pgweb/releases/latest
- Docker Hub: https://hub.docker.com/r/sosedoff/pgweb

## Common questions

### How do I set the PostgreSQL connection when starting Pgweb?

Run pgweb with connection flags for the host, user, and database. You can also pass a Postgres connection string with the url option, including a Unix socket directory.

### Can Pgweb connect to PostgreSQL when the database is remote or behind a firewall?

Yes. Pgweb supports native SSH tunnels and can work with local or remote PostgreSQL servers. You can use password or SSH key authentication for the tunnel and save server bookmarks for quick connection.

### What formats can Pgweb use to export table rows or query results?

Table data and query results can be exported to CSV, JSON, or XML.

### Can Pgweb be deployed with Docker for self-hosting?

Yes, Pgweb can be deployed on a server with Docker. A Docker guide also lets you choose the pgweb version interactively.

## Alternatives

- Adminer: Adminer is a lightweight, full-featured database management tool written in PHP that runs as a single deployable file for homelab administr…
- Postico
- cloudbeaver: CloudBeaver is a self-hosted, web-based database manager that provides a rich browser interface for connecting to and managing PostgreSQL,…
- pgAdmin: pgAdmin is a web-based administration tool for the PostgreSQL database.

---
Source: Our Local Host (https://ourlocalhost.com/app/8011/pgweb), the self-hosted and open-source app directory.
