Lightweight, non-intrusive terminal chat client connecting to an online chat server with real-time text, images, and AI assistant.
pip install termchat-client==0.2.9 Copy PIP instructions
termchat-client is a lightweight, non-intrusive terminal chat client packaged for Python. It connects directly to an online chat server (running on Render or any cloud host), allowing you to chat seamlessly between your terminal and an online HTML web page viewed by others, plus a built-in free fast AI assistant (supporting Kilo Code, Groq, OpenRouter, and Ollama) that answers coding and general questions directly!
┌─────────────────────────────────────────────────────────────┐ │ Online Server on Render │ │ (FastAPI + WebSockets + Image Upload API) │ │ https://my-chat.onrender.com │ └──────────────▲───────────────────────────────▲──────────────┘ │ │ WebSocket │ WebSocket │ + HTTP Web UI Connection │ Connection │ (HTML5 / CSS / JS) │ │ ┌─────────────┴──────────┐ ┌─────────────┴─────────────┐ │ termchat-client (CLI) │ │ Web Client (HTML) │ │ • Linux / Raspberry Pi│ │ • Desktop Browsers │ │ • Windows CMD / PS │ │ • Mobile Browsers (iOS) │ │ • macOS Terminal │ │ • Paste Images (Ctrl+V) │ │ (Just text in & out) │ │ • Drag & Drop Images │ └────────────────────────┘ └───────────────────────────┘ 📦 Installation Install the client package on any machine:
pip install termchat-client 🚀 Quickstart (Zero-Config) The client comes pre-configured with the live custom domain (https://termchat.cliy.me/) and automatic failover fallback to the Singapore Render server (https://termchat-live.onrender.com), so you can chat immediately:
pip install --upgrade termchat-client termchat Or ask the free AI assistant right away:
termchat ai "What is the difference between a process and a thread?" 🚀 Terminal Client Usage 1. Run via CLI termchat --name Alice Or specify a custom server if self-hosting:
termchat --server https://termchat.cliy.me --name Alice Or via Python module:
python -m termchat --name Alice 2. Save Your Preferences Once Save your online server URL or default name so you never need to type them again:
termchat --set-server https://termchat.cliy.me termchat --set-name Alice Once saved, simply run:
python -m termchat 3. What It Looks Like in Your Terminal: --- termchat connected --- User: Alice Server: https://my-chat.onrender.com Web UI: https://my-chat.onrender.com Commands: /help, /open (view last image), /quit --------------------------- Connected! Start typing text below (Press Enter to send): > Hello from my Raspberry Pi terminal! [🌐 Web] Bob: Hey Alice! Check out this screenshot: [🌐 Web] Bob 📷 Sent an image: dashboard.png URL: https://my-chat.onrender.com/uploads/dashboard.png Saved locally: C:\projects\terminal-chat\downloads\dashboard.png [ANSI Image Thumbnail rendered here] > In-Terminal Commands: /open — Opens the last received image in your OS default image viewer (Photos, Preview, or xdg-open). /web — Prints the Web UI link. /help — Lists available commands. /quit (or Ctrl+C) — Safely exits. Optional Flags: --open: Automatically opens any received image in your OS default image viewer. --no-thumb: Disables terminal ANSI thumbnail previews (prints URL and saved path only). 🌐 Deploying the Server to Render (Free) The server code lives in the server/ directory and can be deployed to Render in 2 minutes for free.
The package is packaged using modern PEP 517 / PEP 621 (pyproject.toml).
python -m build Verify with Twine: twine check dist/* Upload to PyPI: twine upload dist/* (Or run the included interactive helper: python publish.py) See PUBLISHING.md for step-by-step instructions.
python -m pytest -v 📄 License MIT License. See LICENSE for details.
chat terminal cli websocket raspberry-pi linux windows render image-chat
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
None of the files in this release were uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




