Commune is a global toolbox that allows you to connect and share any tool (module). This guide will help you install and set up Commune on your system.
- Python 3.8 - 3.12
- Docker (optional, for containerized deployment)
- npm (for certain features)
# Clone the repository
git clone https://github.com/commune-ai/commune.git
cd commune
# Run the install script
make install
# OR
./scripts/install.shThis will automatically:
- Install Python 3 and pip if not present
- Install npm if not present
- Install Docker and Docker Compose if not present
- Install the Commune Python package
# Clone the repository
git clone https://github.com/commune-ai/commune.git
cd commune
# Install as a Python package
pip install -e .# Clone the repository
git clone https://github.com/commune-ai/commune.git
cd commune
# Build and start with Docker
make build
make start
# Enter the container
make enter# Check if commune is installed
c key# Start commune
make start
# Stop commune
make stop
# Restart commune
make restart
# Enter Docker container
make enterimport commune as c
# Example usage
c.print('Hello Commune!', color='green')- Operating Systems: Linux, macOS, Windows (WSL)
- Python: 3.8, 3.9, 3.10, 3.11, or 3.12
- Memory: Minimum 4GB RAM (8GB recommended)
- Storage: At least 2GB free space
The main dependencies include:
- FastAPI for web framework
- PyTorch for machine learning
- Rich for terminal formatting
- Various cryptographic libraries
- And many more (see setup.py for full list)
If Docker fails to start:
# Install Docker manually
./scripts/install_docker.shIf Python is not found:
# Install Python manually
./scripts/install_python.shIf npm is not found:
# Install npm manually
./scripts/install_npm.shTo uninstall Commune:
./scripts/uninstall.sh- Homepage: https://communeai.org/
- Repository: https://github.com/commune-ai/commune
- Issues: https://github.com/commune-ai/commune/issues
MIT License