π₯ Installation Guide
Choose the installation method that works best for you!
π― Quick Comparison
| Method | Difficulty | Requirements | Best For |
|---|---|---|---|
| οΏ½οΏ½ Pre-built Binary | β Easy | None! | Linux users, quick setup |
| π§ From Source | ββ Medium | Python 3.12+ | Development, Windows/macOS |
| π³ Docker | ββ Medium | Docker | Containerized deployments |
Method 1: π¦ Pre-built Binary (Recommended)
β
Easiest option! No Python installation required. Fully static binaries with zero dependencies.
Why Pre-built Binaries?
- π Zero Dependencies - No glibc, OpenSSL, Python, or system libraries needed
- π Maximum Portability - Works on any Linux distro (kernel 3.2+)
- π¦ Self-Contained - Everything bundled in one file
- β‘ Fast - Optimized builds with musl libc
Download
Visit the Download Page to get the latest pre-built binaries for your platform.
Installation Steps
# 1. Download (example for x86_64)
wget https://github.com/CJFWeatherhead/ChatrixCD/releases/latest/download/chatrixcd-linux-x86_64.dist.tar.gz
# 2. Extract
tar -xzf chatrixcd-linux-x86_64.dist.tar.gz
cd chatrixcd-linux-x86_64.dist
# 3. Run it!
./chatrixcd
π‘ Pro Tip: Move the binary to
/usr/local/bin/chatrixcd to run it from anywhere! Method 2: π§ From Source
Perfect for development, customization, or if binaries arenβt available for your platform.
Prerequisites
- Python 3.12, 3.13, or 3.14
- pip (Python package manager)
- git
π Platform-Specific Prerequisites (Click to expand)
**Ubuntu/Debian:** ```bash sudo apt update sudo apt install python3 python3-pip python3-venv git ``` **macOS (with Homebrew):** ```bash brew install python@3.12 git ``` **Windows:** 1. Install [Python 3.12+](https://www.python.org/downloads/) 2. Install [Git for Windows](https://git-scm.com/download/win)Installation Steps
1οΈβ£
Clone the Repository
git clone https://github.com/CJFWeatherhead/ChatrixCD.git
cd ChatrixCD2οΈβ£
Create Virtual Environment
python -m venv .venv3οΈβ£
Activate Virtual Environment
# Linux/macOS:
source .venv/bin/activate
# Windows:
.venv\Scripts\activate4οΈβ£
Install Dependencies
pip install -r requirements.txt
pip install -e .5οΈβ£
Run ChatrixCD
chatrixcdMethod 3: π³ Docker
Perfect for containerized deployments and production environments.
Quick Start
# Using Docker Compose (recommended)
docker compose up -d
# Or using docker run
docker run -d \
--name chatrixcd \
-v $(pwd)/config.json:/app/config.json \
-v $(pwd)/store:/app/store \
ghcr.io/cjfweatherhead/chatrixcd:latest
Dockerfile
FROM python:3.12-alpine
WORKDIR /app
# Install dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application
COPY . .
RUN pip install -e .
# Run
CMD ["chatrixcd"]
β οΈ Remember: Mount your
config.json and store/ directory as volumes! πͺ Windows & π macOS Users
Pre-built binaries arenβt available yet for Windows and macOS. Choose one of these options:
πͺ WSL2 (Windows Only)
Linux on Windows
Use Linux binaries on Windows
View instructions
# Install WSL2
wsl --install
# In WSL terminal:
wget https://github.com/CJFWeatherhead/ChatrixCD/releases/latest/download/chatrixcd-linux-x86_64.dist.tar.gz
tar -xzf chatrixcd-linux-x86_64.dist.tar.gz
cd chatrixcd-linux-x86_64.dist
./chatrixcdβοΈ Post-Installation
After installing, you need to:
1οΈβ£ Create config.json
2οΈβ£ Run ChatrixCD
3οΈβ£ Invite to Room
π Production Deployment
For production use, consider:
- systemd Service: Auto-start on boot (Deployment Guide)
- Docker: Containerized deployment (Method 3)
- Monitoring: Set up health checks and logging
- Security: Use OIDC/SSO, restrict allowed_rooms
π Full Deployment Guide β