PyChat4
Python socket chatroom
Install / Use
/learn @PuffinDev/PyChat4README
PyChat4
PyChat is a feature rich, lightweight and customisable chatroom software written in python.
<img src="screenshots/pychat4.png" width="60%" height="60%">Features
- Easy to set up and customise server
- Official server running 24/7
- Hackable codebase - make your own bots, clients and more!
- Direct messages and user accounts
- Many /commands to try out
- Ping members and roles
- Administration tools such as /ban and /kick
- Customisable client themes
Get started
Run the following commands to get started and connect to the official server:
git clone https://github.com/PuffinDev/PyChat4/
cd PyChat4
python3 -m pip install -r requirements.txt
python3 client.py
Choose a username and password, and click connect.
For info on commands, type /help into the chat
Run the following commands to run your own server:
git clone https://github.com/PuffinDev/PyChat4 && cd PyChat4 (only run if you don't yet have pychat downloaded!)
python3 server.py
If you want to connect to your server from outside your local network, forward port 8888 on your router.
Customise
Theming
Themes are stored in client/config.py in the THEMES list. To add a theme, just add a python dict containing your chosen hex colors.
Example:
"void": {
"bg": "#000000",
"bg2": "#000000",
"fg": "#57B1FF",
"fg_highlight": "#87B5E4"
},
Bots
Creating a PyChat bot is extremely simple, thanks to https://github.com/PuffinDev/PyChatBot - a library for writing pychat bots. Bots have access to all the functionality that normal clients have access to such as DMs, roles, administration etc. Check out the documentation for more info.
Custom servers
The pychat protocol is designed to be hackable, so the official server code can easily be edited to behave however you want. You can add features such as auto-moderation and nicknames just my changing how information is handled on the server.
Contributing
Any contributions are greatly appreciated, whether it's a simple UI change, or a huge protocol overhaul. Feel free to make a pull request!
Community
If you want to get involved with developing or testing pychat, I highly recommend you join the discord: https://discord.gg/RVba4BkQ5K
Related Skills
node-connect
350.8kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
110.4kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
110.4kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
350.8kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
