pgcli is an interactive PostgreSQL CLI with context-aware autocompletion, syntax highlighting, and multi-line query editing. Part of the dbcli project with 13k+ GitHub stars, it makes database exploration and query writing dramatically more productive.
36 stars
0 votes
0 copies
2 views
Added June 8, 2026
ai-agentspythongosqlgitdatabasesecurity
Works with
cli
Security analysis
A92/100
mediumInstalls packages at runtime which could introduce malicious dependencies
Installs into .claude/skills of the current project.
Are you the author of Pgcli Interactive Postgresql Client?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-pgcli-interactive-postgresql-client)
---
name: "pgcli Interactive PostgreSQL Client with Autocompletion"
slug: "pgcli-interactive-postgresql-client"
description: "pgcli is an interactive PostgreSQL CLI with context-aware autocompletion, syntax highlighting, and multi-line query editing. Part of the dbcli project with 13k+ GitHub stars, it makes database exploration and query writing dramatically more productive."
github_stars: 13092
verification: "security_reviewed"
source: "https://github.com/dbcli/pgcli"
category: "Developer Tools"
framework: "OpenClaw"
tool_ecosystem:
github_repo: "dbcli/pgcli"
github_stars: 13092
---
# pgcli Interactive PostgreSQL Client with Autocompletion
pgcli is an interactive PostgreSQL CLI with context-aware autocompletion, syntax highlighting, and multi-line query editing. Part of the dbcli project with 13k+ GitHub stars, it makes database exploration and query writing dramatically more productive.
## Installation
Use the upstream install or setup path that matches your environment:
- $ pip install -U pgcli
- $ brew install pgcli # Only on macOS
- $ brew install pgcli
- $ pip install pgcli
Requirements and caveats from upstream:
- If you already know how to install python packages, then you can simply do:
- If you don't know how to install python packages, please check the
- .. _prompt_toolkit: https://github.com/jonathanslenders/python-prompt-toolkit
Basic usage or getting-started notes:
- -----------
- ::
- or
- Source: https://github.com/dbcli/pgcli
- Extracted from upstream docs: https://raw.githubusercontent.com/dbcli/pgcli/HEAD/README.rst
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/pgcli-interactive-postgresql-client/)