Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

litecli

$ litecli Community Med Risk
dbcli · Database & Data · BSD-3-Clause · macos / linux / windows

litecli 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.

FCRS-1.0 Score
73 /100
Usable w/ Caveats
Medium Confidence
Zero-Friction Install
brew install litecli
CLI vs MCP Decision CLI Preferred vs MCP

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

— JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 14 / 25

Interactive prompt-toolkit REPL first; offers -e and --csv for batch queries, but lacks a native --json output flag.

  • Interactive REPL primary; supports -e and --csv flags
Trust & Safety 18 / 25

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-only CLI flag
Setup & Portability 12 / 15

Available via Homebrew, PyPI, and uvx across macOS, Linux, and Windows.

  • Published on Homebrew and PyPI (dbcli/litecli)
Utility & Efficiency 13 / 15

Great interactive SQLite ergonomics for humans, though sqlite3 or sqlite-utils is faster and cleaner for agents.

  • Human-focused SQLite autocomplete and table formatting
Maintenance & Lineage 8 / 10

Maintained under the dbcli umbrella (dbcli/litecli) with BSD-3-Clause licensing.

  • Part of the established dbcli CLI family
Docs & Verifiability 8 / 10

Clear configuration and flag documentation at litecli.com and --help.

  • Official docs at litecli.com

Security, Auth & Guardrails

Auth Modes
No Auth Config File
Credential Storage

Operates on local SQLite files without network credentials; reads UI preferences from ~/.config/litecli/config.

Side Effects
Read-Only Local Write Destructive
Cost & Quotas

100% free and BSD-3-Clause open-source.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Run a one-shot CSV query via 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 -e one-shot execution and --csv output when scripted.

Caveats & Pitfalls

  • ! Interactive-first Python REPL; sqlite3 -json and sqlite-utils are much faster and better structured for agents.
  • ! No native --json or --read-only CLI flag.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI