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 .mdJSON
Readiness
Usable with guardrails · 50/100
Verify
usql --version
Agent URL
/cli/usql/agent.md

Quick reference

Install
brew install usql
Verify
usql --version
First command
usql postgres://localhost/postgres
Machine JSON
/cli/usql.json

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