litecli
$ litecli Community Med Risklitecli brings prompt-toolkit auto-completion, multi-line editing, and syntax highlighting to local SQLite databases. While it supports -e one-shot SQL execution and --csv output, it is designed primarily for human terminal sessions rather than headless agent loops.
brew install litecli Local SQLite inspection runs directly against the workspace file via CLI without MCP overhead, though agents should generally prefer sqlite3 -json or sqlite-utils over litecli.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Interactive prompt-toolkit REPL first; offers -e and --csv for batch queries, but lacks a native --json output flag.
- Interactive REPL primary; supports
-eand--csvflags
Operates strictly on local SQLite files with no remote billing risk, though it lacks a CLI --read-only or --dry-run guard.
- Local file scope only; no native
--read-onlyCLI flag
Available via Homebrew, PyPI, and uvx across macOS, Linux, and Windows.
- Published on Homebrew and PyPI (
dbcli/litecli)
Great interactive SQLite ergonomics for humans, though sqlite3 or sqlite-utils is faster and cleaner for agents.
- Human-focused SQLite autocomplete and table formatting
Maintained under the dbcli umbrella (dbcli/litecli) with BSD-3-Clause licensing.
- Part of the established
dbcliCLI family
Clear configuration and flag documentation at litecli.com and --help.
- Official docs at litecli.com
Security, Auth & Guardrails
Operates on local SQLite files without network credentials; reads UI preferences from ~/.config/litecli/config.
100% free and BSD-3-Clause open-source.
# litecli Agent Rules - Prefer `sqlite3 -json` or `sqlite-utils` over `litecli` in automated agent workflows. - Never invoke `litecli` without `-e "<sql>"` or the interactive REPL will block. - Avoid `DROP`, `DELETE`, or `UPDATE` statements without inspecting `sqlite_master` first.
Agent-Ready Command Recipes
Safe Read-Only Queries
litecli litecli app.db -e "SELECT name FROM sqlite_master WHERE type='table';" --csv
Executes a single read-only SQLite query and prints CSV output without entering the REPL.
Strengths for Agents
- + Clean SQLite table/schema autocomplete and syntax highlighting for human terminal debugging.
- + Supports
-eone-shot execution and--csvoutput when scripted.
Caveats & Pitfalls
- ! Interactive-first Python REPL;
sqlite3 -jsonandsqlite-utilsare much faster and better structured for agents. - ! No native
--jsonor--read-onlyCLI flag.