Session Model
Build interactive applications with per-session state.
Klix is a Python framework for building terminal-first CLI applications with a session model, command routing, middleware, lifecycle events, typed state, and a small UI layer built on top of prompt_toolkit and rich.
This documentation is written against the current implementation in this repository. It explains what Klix can do today, how the pieces fit together, and where the current boundaries are.
If you are new to Klix, use this path:
App object that owns registration and runtime flowSessionklix initKlix is not a general terminal emulator and it is not a full-screen TUI framework in the textual sense. The current implementation favors a simple interactive command loop with composable utilities over a heavy runtime model.
That matters when you read the rest of these docs:
Those details are documented explicitly in Architecture, Layout, and FAQ.