nxm-tui — Terminal Chat Client Architecture

nxm-tui — Terminal Chat Client Architecture An architecture diagram generated by Archify. User · keyboard + chat · Architecture component User keyboard + chat LLM Server · OpenAI-compatible SSE · Architecture component LLM Server OpenAI-compatible SSE KeyStore · env / keychain / encrypted file · nxm-tui process › secret boundary KeyStore env / keychain / encrypted file nxm-tui TUI · ratatui + crossterm · nxm-tui process nxm-tui TUI ratatui + crossterm Agent Runtime · bounded loop + breaker · nxm-tui process Agent Runtime bounded loop + breaker MCP Host · stdio child + sampling · nxm-tui process MCP Host stdio child + sampling Tool Registry · nexum-tools actuators · nxm-tui process Tool Registry nexum-tools actuators Markdown V3 · parse → render → wrap · nxm-tui process Markdown V3 parse → render → wrap Config + Session · ~/.nexum/tui.toml · nxm-tui process Config + Session ~/.nexum/tui.toml keys / slash commands spawn Agent, stream parts chat/completions SSE resolve tool_calls web fetch / search resolve provider key spawn stdio server sampling/createMessage render markdown load / save TOML nxm-tui process secret boundary Legend TUI surface Agent / render core Config / session store Remote LLM endpoint Key / secret handling MCP host bridge User / outside actor