AI Chatbot/Agent for Windows XP+
SimpleLLMChat is a lightweight C# CLI and GUI application that makes LLMs accessible on both legacy and modern Windows systems. The software is designed to work with OpenAI-compatible endpoints and can be extended via a tool system.
-
Customizable GUI - The GUI's colors and fonts can be customized.
-
GUI/CLI Modes - The software can be used either via its REPL CLI or a GUI wrapper.
-
Image Support - Images can be passed to supported models via both the CLI and GUI.
-
Markdown Rendering - The GUI can render Markdown formatting for easier reading.
-
OpenAI-Compatible Endpoint Support - In addition to OpenAI, any service/server offering the OpenAI v1 chat endpoint can be used, includingllama.cpp andLM Studio .
-
Retrieval Augmented Generation (RAG) - Retrieve information from documents via a local knowledge folder (seeRAG ).
-
Script-Friendly - Output without tool calls, tool outputs, and reasoning can be piped out of the CLI using the
-oor--output-onlyflag.Note : Tool calls requiring manual approval will automatically be denied. -
Streaming Responses - Responses are streamed from the LLM server in real-time.
-
Tools - A modular, extensible tool system is available. For information about the included tools, seeTools .
-
Access to the OpenAI API or a compatible LLM server
- Note : If your server or endpoint requires modern TLS that the OS does not support, a
curl.exeandcurl-ca-bundle.crtcan be placed in the same folder as the application executable as a fallback (already included in the XP release build).
- Note : If your server or endpoint requires modern TLS that the OS does not support, a
-
Windows XP (SP3 recommended) or later
To use the application, download and extract the appropriate build for your system from the Releases page (builds ending in -XP are recommended for Windows XP systems).
On first launch of SimpleLLMChatGUI.exe, if LLMSettings.ini does not exist next to the executable, a setup wizard walks through all available settings. Settings can also be changed later via Options.
Once configured, the software can be used via the SimpleLLMChatCLI.exe or SimpleLLMChatGUI.exe executables.
The project can be built via the included build.bat script (Visual Studio/Visual Studio Build Tools/MSBuild required).
Alternatively, the project can be built using the SimpleLLMChat.sln file directly in Visual Studio.
Both methods require the .NET 4.0 Targeting Pack to be installed.
Note: Builds generated using these methods include only the core executables by default. Optional binaries (7za.exe, grep.exe and its DLLs, curl.exe, curl-ca-bundle.crt, yt-dlp.exe) are packaged when present under deps\ or can be manually placed beside the matching tool's executable. Optional binaries are specified in Tools. Third-party license texts placed under THIRD_PARTY_LICENSES\ (gitignored; keep the folder via .gitkeep) are copied into the release folder as THIRD_PARTY_LICENSES\ when present.
Test projects live under Tests\ and are not included in release builds. To build and run tests, from the repo root, run:
build-tests.bat
run-tests.bat
build-tests.bat builds the product and test suites. run-tests.bat runs every suite (or one suite when a name is passed, e.g. run-tests.bat FileTools) and writes logs under Tests\logs\.
Note: For cases that need external executables (7za, grep, cURL, YT-DLP), either put them in deps\ before build-tests.bat, or place them beside the matching tool executable before run-tests.bat.
On first use, if LLMSettings.ini does not exist, the GUI setup wizard creates it. Settings can be changed later via Options or by editing the INI manually. The options available within the INI file are as follows:
Appearance
assistantname: Display name for assistant responses (defaultLLM)codeblockfontfamily: Font used for rendering code blocks in the GUIcustomfontfamily: Font used for all non-code block text in the GUIfontsize: Font size for chat and input textmarkdownparsing: Enables/disables Markdown rendering in the GUI (1or0)showchatstatus: Shows a status message when context is retrieved from previous chats (1or0, default on)showdocstatus: Shows a status message when context is retrieved from RAG documents (1or0, default on)showjevconfidence: Show/Hide automatic tool approval confidence level (1or0, default1)thinkingdisplay: Model reasoning appearance (shown,collapsed, orhidden; defaultcollapsed). Hidden shows a short[thought for N seconds]stub instead of the full reasoning.toolcalldisplay: Model tool call appearance (shown,collapsed, orhidden; defaultcollapsed). Hidden shows an expanded tool-call header with the tool name only (no arguments).tooloutputdisplay: Tool result appearance (shown,collapsed, orhidden; defaultshown). Hidden shows[tool output]with the exit code only.
RAG
ragchathistory: Enables retrieving context from previous chat sessions within the current directory (1or0, default off).ragenabled: Enables RAG (1or0, default off)ragallowedextensions: Comma-separated file extensions to index (blank = built-in defaults, provided below)- Allowed formats:
.md,.markdown,.txt,.rst,.csv,.json,.xml,.yaml,.yml,.toml,.ini,.html,.htm,.css,.cs,.py,.js,.ts,.tsx,.jsx,.java,.go,.rs,.c,.h,.cpp,.hpp,.rb,.php,.sql,.sh,.ps1,.bat
- Allowed formats:
- Allowed formats:
indexchunkoverlap: Chunk overlap in lines (default10)indexchunklines: Chunk size in lines (default60)embeddingsapikey: Embeddings API key (apikeyif blank)embeddingsendpoint: Embeddings API base URL (llmserverif blank)embeddingsmodel: Embeddings model name (required)ragknowledgepath: Knowledge folder path (knowledgefolder next to EXE by default)ragmaxsnippetlength: Max characters per chunk for embedding/injection (default2000)ragmaxresults: Number of chunks to retrieve per search. Applies per category (ragmaxresultsdocument chunks andragmaxresultsprevious chat chunks, if enabled) (default5)ragretrievemode: When to retrieve information from knowledge (everyturnornewchat) (default:newchat)
System
apikey: API key (if required by model provider)chathistorylimit: Number of previous chat sessions to keep (per working directory); oldest chats deleted first; stored inchatsnext to application.contextWindowSize: If known, can be set here to enable automatic context summarization when context fills (default0; off)chattitlesbymodel: If enabled, titles are generated by your LLM. Otherwise, titles are generated by your first message. (1or0, default on)llmserver: Base URL of the OpenAI-compatible endpoint (e.ghttp://127.0.0.1:8080/v1)model: Model name to use for text generation (if supported by the endpoint)sysprompt: System prompt for the LLM
Tools
autoapprovaltools: Comma-separated list of tools that request approval from a Jev-compatible endpoint before runningjevapikey: API key if required for your Jev-compatible serverjevbaseurl: Full URL for a Jev-compatible server (e.g.http://127.0.0.1:8080/v1/systemoneif you're using llama.cpp)jevmodel: Model to use (if supported by your endpoint)maxconsecutivefailedtoolcalls: Maximum number of tool calls that can fail in a row before a session is halted (default10;0= off)tools: Comma-separated list of tools the AI is allowed to usetoolsrequiringapproval: Comma-separated list of tools that require manual approval for the AI to use.tooltimeout.<toolname>: Timeout for that tool call, in seconds;0means no timeout.
Tool-specific configuration options for the included tools are available in the Tools section.
GUI: To launch the GUI interface, open SimpleLLMChatGUI.exe.
- To adjust application settings, select
Options. - To attach an image, press the image attachment button (camera icon) and choose a file using the file picker.
- To start a new chat, press
New Chat. - To open a previous chat, press the history button icon in the upper left and select a chat in the sidebar.
- To manage history, open the sidebar with the history button. Chats can be exported or deleted via the context menu. In the same context menu, chats can be imported.
- To set a working directory, create a shortcut to
SimpleLLMChatGUI.exeand set its "Start in" directory to that folder. - To send a message, type it into the input box and press
EnterorSend. To create multi-line messages, pressShift+Enter. - To cancel the currently generating response, press
Stop(shown while generating).
CLI: To run the CLI in interactive/REPL mode, open SimpleLLMChatCLI.exe directly or from a terminal.
Interactive mode provides the following commands:
/buildindex: Reconciles the knowledge index (adds/updates/removes changed files)/clear: Clears chat context/clearindex: Clears the on-disk knowledge index/compact: Compacts the conversation to reduce context usage./exit: Exits the application/image: Sends an image to the model alongside the next message, used as/image "path" prompt/import <path>: Loads a chat, copying it into your current working directory./load <path>: Loads a chat, changing your working directory to its working directory./reasoning: Sets reasoning effort for supported models (none,minimal,low,medium,high,xhigh);/reasoningalone uses the API default/reload: Reloads configuration in place (doesn't clear chat)/save <path>: Saves the chat as JSONCtrl+C- Stop the currently generating response
The application can also be used in a non-interactive mode.
For a single prompt, use SimpleLLMChatCLI.exe <prompt>.
To pass in an image alongside a prompt, use SimpleLLMChatCLI.exe --image <path> <prompt>.
CLI mode provides the following additional flags:
--no-banners: Suppresses instructional prompts-o,--output-only: Outputs only the model's response text (no thinking, tool-call, or tool-output UI). Tools that do not require approval still run silently. If the model calls a tool that requires approval, the session ends withError: Model called <tool> which requires approval.--reasoning-effort: Sets initial reasoning effort for supported models (none,minimal,low,medium,high,xhigh)
SimpleLLMChat includes the following 7 tool packages:
Context injectors run once when a chat starts (and again after it is cleared, loaded, compacted, or its enabled tools change), so the system prompt stays the same between turns and the server's prompt cache is reused.
- File Tools
- Tools
copy_file: Copies a file from one location to anotherdelete_file: Deletes a file from the file systemedit_file: Replaces exact text in an existing file via one or more old_string/new_string editsextract_file: Extracts an archive to a destination directorygrep_search: Recursively searches files for a regex patternlist_directory: Lists all files and subdirectories in a given directorymove_file: Moves a file from one location to anotherread_file: Reads the contents of a local filewrite_file: Writes contents to a local file
- Configuration Options
maxReadLines: Max number of lines that the AI can read from a file at a time (default:500)maxFileContentLength: Maximum number of characters to read from a file or return fromgrep_search(default:10000)
- Dependencies
7za.exe: used to extract archivesgrep.exe(+libiconv2.dll,libintl3.dll,pcre3.dll,regex2.dll): used bygrep_search(GnuWin32 GNU grep)
- Tools
- Tools
- Memory Tools
- Tools
delete_memory: Deletes a saved memory entrylist_memories: Lists the names of all saved memory entriesrecall_memory: Reads a saved memory entrysave_memory: Saves or updates a memory entrysearch_memories: Searches all memory entries by keyword
- Configuration Options
memoriesDirectory: Directory for memory.mdfiles (default:memoriesfolder next toMemoryTools.exe)maxContentLength: Maximum length of a memory entry (in characters) (default:2000)maxMemories: Maximum number of memories to store (default:50)
- Context Injector
get_memory_context: Creates a summary of saved memories to be injected into the system prompt
- Tools
- Tools
- Python Tools
- Tools
run_python_script: Creates and executes a Python script
- Dependencies
- Python must be installed and available on PATH.
- Tools
- Tools
- Shell Tools
- Tools
run_shell_command: Executes a shell command
- Tools
- Tools
- Desktop Tools
- Tools
list_windows: Lists visible top-level windows; optionalwindow_titlefilter. Use for browsing or disambiguation — other tools acceptwindow_titledirectly.list_controls: Lists controls with element indices (#N), roles and capture-relative rects (@x,ysame space as a window screenshot)navigate: Pointer/focus —click,double_click,scroll,focus(target viaelement,hwnd, orx/y);dragwith start (elementorx/y) and end (to_elementorto_x/to_y); optionalmodifiers(ctrl/shift/alt/win) on click/drag.x/yuse the same pixel space asscreenshotfor that scope (window image ifhwnd/window_titleis set; desktop image if not).set_control_text: Sets text in a control (target viaelementorhwnd)send_keys: Sends text or keystrokes to the foreground windowscreenshot: Capture a window or the virtual desktop as JPEG; click withnavigateusing imagex/yand the same scope
- Configuration Options
maxTreeDepth: Maximum depth when listing control trees (default:8)maxControls: Maximum number of controls returned per query (default:80)
- Context Injector
get_desktop_context: Injects a one-line summary of open windows (up to 5 titles, then "and N more")
- Tools
- Tools
- Skill Tools
- Tools
create_skill: Creates a new agent skilledit_skill: Updates an existing agent skill (description and/or instructions; omitted fields unchanged)edit_skill_file: Creates or overwrites a supporting file under an existing skill (e.g. scripts, references)remove_skill: Deletes an agent skillview_skill: Loads a skill's fullSKILL.md, absolute path to the skill folder, and relative paths for linked files (optionalrelative_pathloads one relative file)
- Configuration Options
skillsDirectory: Directory to scan recursively for skill folders (folders containing 'SKILL.md') (default:skillsfolder next toSkillTools.exe)selfImprovement: Enables/disables automatic skill creation/updates for non-trivial procedures (default:1)
- Context Injector
get_skills_context: Injects the skills directory path, skill names and descriptions, and instructions to load matching skills viaview_skill, run scripts as shell commands under the skill root, and author skills withcreate_skill/edit_skill/edit_skill_file/remove_skill. When self-improvement is enabled, instructions are injected to tell the agent to create/update skills when non-trivial procedures are completed successfully.
- Tools
- Tools
- Web Tools
- Tools
download_file: Downloads a file using cURLdownload_video: Downloads an online video using YT-DLP and saves it to an optionaldirectory(defaults to the user's desktop)read_website: Reads a webpage as Title/Description, body text (image alt+src kept), and a Links section with a configurable caprun_web_search: Searches the web using SearXNG, with Firecrawl, DDG, and Wiby as fallbacks
- Configuration Options
maxSearchResults: Maximum number of search results to retrieve (default:20)maxWebContentLength: Maximum number of characters to return when reading a webpage (default:10000;0= no limit)maxLinks: Maximum number of unique links to include at the end of a webpage read (default:40)FirecrawlEndpoint: Firecrawl API base URL (e.g.http://localhost:3002). If set,read_websitewill attempt to use it to view page content. (default: none)FirecrawlApiKey: Firecrawl API key (optional) (default: none)SearXNGInstance: SearXNG instance to use for running web searches (must support JSON API) (default: none)userAgent: User agent to use when making web requests (default:Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/151.0.0.0 Safari/537.36)
- Dependencies
curl-ca-bundle.crt: used for cURLcurl.exe: used to download web contentyt-dlp.exe: used to download online videos
- Tools
- Tools
Note: Dependencies should be placed alongside tool executables. The release builds already include these dependencies, with the exclusion of Python.
Third-party tools can be installed by extracting them into the tools folder. For more information on developing/distributing custom tools, see SimpleLLMChat-Tool-SDK
Thank you to the following for all of their contributions:
- LoRd_MuldeR for the cURL builds for XP
- myamano4 for the icon
- nicolaasjan for the YT-DLP builds for XP