# Lazysql

> Use this skill when the user wants a terminal UI to browse databases, run SQL, and edit records — connect to MySQL, PostgreSQL, SQLite, MSSQL, or MongoDB without a GUI client.

- Skill: `javimosch/lazysql` (Agent Skill)
- Install (CLI): `npx skillmds@latest add javimosch/lazysql`
- Raw SKILL.md: https://api.skillmd.com/api/skills/javimosch/lazysql/raw
- Safety review: PASS (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Data & Analytics
- Author: javimosch (https://skillmd.com/u/javimosch)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/javimosch/lazysql

---


# lazysql Plugin

Cross-platform TUI database client. Browse schemas, run queries, edit rows, and switch connections — works over SSH with no desktop app required.

## Installation

```bash
brew install lazysql
# or
go install github.com/jorgerojas26/lazysql@latest
```

## Basic Usage

```bash
# Open TUI (configure connections interactively)
lazysql

# Connect directly via URL
lazysql postgres://user:pass@localhost/mydb
lazysql mysql://root@localhost:3306/app

# Read-only mode (no edits)
lazysql --read-only postgres://user@localhost/db
```

## Supported Databases

- PostgreSQL
- MySQL / MariaDB
- SQLite
- Microsoft SQL Server
- MongoDB

## Key Bindings (in TUI)

- Navigate tables and schemas with arrow keys
- Run SQL in the query pane
- Edit cells inline where supported
- `q` — Quit

## Usage Examples

- "Browse my local Postgres database in the terminal"
- "Run a quick SQL query without installing DBeaver"
- "Connect to production DB in read-only mode"

## SuperCLI

```bash
sc lazysql connection open postgres://user@localhost/db
sc plugins learn lazysql
```

