sqlit CLI

The SQL client combines terminal database browsing with batch queries for agents using named connections and JSON results.

  • 4,970 ★ on the repository
  • Last commit
  • MIT
CLI

Extended access

Why this level

  • The client executes SQL with database-user privileges and can read or modify data; read-only permissions must be set in the database.
All reasons and checks

maxteabag/sqlit

Install

In your terminal, with SkillFoxx CLI

npx skillfoxx add cli/sqlit

Detects the agents on your machine, shows the access level and pins the version.

Other ways to install

Access and checks

How we review

Extended accessThe tool runs code or makes network calls and only reads external data.

  • The client executes SQL with database-user privileges and can read or modify data; read-only permissions must be set in the database.

This is third-party code. Review the repository files before installing.

What it does

sqlit connects to multiple database types through one terminal UI. Users select a connection, browse tables and write SQL with schema-aware completion. Query history and result views support agent-assisted investigation. Its batch CLI executes agreed SQL from a string or file and returns CSV or JSON. Named connections and driver setup simplify reuse, while mock data allows interface exploration without a real database.

Who it is for. Analysts switching among database systems and giving agents bounded SQL query results.

Good fit when

  • A test schema needs inspection without a large GUI client.
  • An agent-prepared read query needs JSON output.
  • Several databases need named saved connections.
  • The interface should be explored with demo data before a real connection.

Not a fit when

  • The selected connection’s permissions must not be granted.
  • You expect the client to make arbitrary SQL read-only automatically.
  • Query results contain data forbidden from reaching the model.

Example request

Use sqlit to run the approved SELECT against a test database with a read-only role and return a bounded JSON result.

Limitations

The package requires Python 3.10 or later and may need an additional driver for the selected database. SQL runs with connection permissions, so use a read-only account for agent analysis. Passwords use the OS keyring when available while other connection details are saved in configuration; inspect behavior on your platform. Query history and exports may hold confidential data, so limit result size and storage scope.

How to disable. Exit sqlit and remove unused saved connections. Revoke dedicated database credentials separately; exported results remain on disk.

FAQ

How do I try it without a database?

Run `sqlit --mock=sqlite-demo`.

How do I choose a saved connection?

Use `sqlit -c "MyConnection"` with its name.

Can SQL come from a file?

Yes. Query mode supports `-f` and output-format selection.

What if a driver is missing?

The wizard shows the appropriate package and installation method for the environment.

Is SSH tunneling supported?

Yes, with optional SSH dependencies documented separately.

Discussion

No questions or reviews yet.

CLI tools

The CLI imports CSV and JSON into SQLite, runs SQL and reshapes tables for agent-assisted local data preparation.

CLIExtended access2.2KRepository stars

The CLI runs SQL over CSV, JSON and other tabular files so agents can join exports and select output formats.

CLIExtended access2.2KRepository stars

dblab is a terminal SQL client with saved connection profiles and optional password storage in the operating system keyring.

CLIExtended access3.2KRepository stars

vi-sql is a terminal SQL client with a built-in MCP server: the agent sees the schema and drafts queries straight in your editor

MCP serverExtended access210Repository stars
Russian stack

A tiny 1C extension with an HTTP service plus a skill, so an agent writes 1C queries itself and gets database data as TSV

SkillExtended access56Repository stars

pgcli is a terminal PostgreSQL client with SQL-aware suggestions: tables after FROM and columns after WHERE.

CLIExtended access13.4KRepository stars

Comparison with similar tools

Cards that share the main search query, and how they differ.

ToolOfficialAuthenticationRepository starsMain difference
sqlit (this card)no4,970
MCP Toolbox for Databasesyesnot required16,812exposes databases through MCP and configured toolsets
Harlequinno6,512Harlequin provides a terminal SQL editor, while its bundled hsql runs queries and explores database structure for agents.
VisiDatano9,446VisiData opens multiple table formats in a terminal and helps explore, arrange and compare data through keyboard controls.

README in short

The client can discover database containers and use cloud-provider CLIs for connections, with their own required credentials.

README badge

Report a problem

Foxx AIsqlit
Foxx AI

I am Foxx AI and I have already vetted this tool. Ask about install, setup or anything else, and I will keep it simple.