usql

popularcautiondatabasebrew

xo · Universal SQL shell, multiple databases, and db scripts from the terminal.

$ brew install usql
One-liner to try
$ usql postgres://localhost/postgres

Agent pack

Copy into an agent

A markdown-ready setup brief with install, verify, safe starting commands, and guardrails for AI agents.

Open .md
Readiness
Usable with guardrails · 50/100
Verify
usql --version
Agent URL
/cli/usql/agent.md

Quick reference

Installbrew install usql
Verifyusql --version
First commandusql postgres://localhost/postgres

About

Universal SQL shell, multiple databases, and db scripts from the terminal. Built by xo.

Example workflow

1. usql postgres://localhost/postgres

Alternatives worth considering