cloctui
Terminal UI for CLOC code analysis tool that displays line counts and statistics in an interactive table
CLOCTUI is a terminal user interface (TUI) wrapper for the CLOC (Count Lines of Code) tool that transforms CLOC's text output into an interactive table format. Built with the Textual framework, it executes CLOC commands internally and presents the results through a navigable interface that improves readability for large codebases.
The tool supports CLOC's core grouping modes - by language, directory, or individual files - while adding interactive sorting capabilities through clickable column headers and keyboard shortcuts. Users can operate in inline mode by default or switch to fullscreen mode using the -f flag. The interface allows real-time manipulation of code statistics without requiring multiple CLOC command executions.
CLOCTUI requires Python 3.10+ and an existing CLOC installation on the system. It's designed for developers and project managers who frequently analyze codebase metrics and prefer interactive exploration of line count data over static terminal output. The tool accepts directory paths as arguments and can analyze current directories using dot notation.
Installation
# via UV
uv tool install cloctui
# via PipX
pipx install cloctui
# via UV (test)
uvx cloctui .

Alternatives & related tools
dotenvhub
TUI application for centralized management and deployment of .env files across projects
lazycelery
Terminal UI for monitoring and managing Celery workers, queues, and tasks with real-time updates and keyboard navigation.
arduino-cli-interactive
Interactive TUI wrapper for arduino-cli providing menu-driven Arduino development workflows
cargo-selector
Cargo subcommand that provides an interactive TUI for selecting and executing binary or example targets in Rust projects
act3
CLI tool that displays the status of the last 3 GitHub Actions workflow runs for repositories
add a badge to your README
Maintain cloctui? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/cloctui?utm_source=badge)<a href="https://www.trmn.sh/tools/cloctui?utm_source=badge"><img src="https://www.trmn.sh/badge/cloctui.svg" alt="Featured on trmn" height="20"></a>