Invisible link to canonical for Microformats Skip to content
Y Social
Version 4.0.0

Install YSocial

One page, four ways to run YSocial. Pick the one that fits you.

Start with the desktop installer if you just want to try YSocial. Use pip, Docker or the source when you need a server, automation or a hackable setup.

Choose how to install

Version 4.0.0. The installer prepares a private Python environment the first time you run it (a few minutes, internet required).

We think you are on your system, highlighted below.

Your system

macOS

Apple silicon and Intel

Apple silicon.dmg
Intel.dmg
Your system

Windows

Windows 10 and later

x64.exe
Your system

Linux

x64 and arm64

Something not downloading? Open the latest release page. To check that a file is genuine, see Verify your download.

The installer: Install YSocial
1. Press Install YSocial
The installer preparing the Python environment
2. It prepares Python and a private environment
The installer installing YSocial
3. It installs YSocial, then you press Start

Open the installer, press Install YSocial, then Start. YSocial opens in its own window, and closing the window stops YSocial and every service it started. The installers are not code-signed, so your system will warn you once:

macOS: if you see "The application cannot be opened" (or that it is damaged or from an unverified developer), macOS has quarantined the download. Drag YSocial to Applications, then run this once in Terminal:

xattr -cr /Applications/YSocial.app

Then open the app again. Without Terminal: right-click the app, choose Open, and confirm; on recent macOS versions also use System Settings → Privacy & Security → Open Anyway.

Windows: because the installer is not code-signed, Microsoft Defender SmartScreen may block it ("Windows protected your PC"), and Windows Security or your browser may flag or quarantine the .exe as unrecognised. This is a false positive. To continue:

  1. If the browser blocks the download, open its downloads list and choose Keep (Edge: … → Keep → Keep anyway).
  2. Double-click the installer. On the blue SmartScreen window click More info, then Run anyway.
  3. If Windows Security removed the file, open Windows Security → Virus & threat protection → Protection history, select the YSocial entry and choose Actions → Restore (or Allow on device), then run it again.
  4. If a managed (work or university) PC does not offer Run anyway, ask your IT department to allow the installer.

Download the installer only from this page or from the official GitHub release. You can also right-click the file, choose Properties and tick Unblock before running it.

Linux: Chrome may block the .AppImage or .deb as a "dangerous download" because it is an executable that few people have downloaded yet. This is a false positive. Open chrome://downloads, choose … next to the file and then Keep (Keep anyway). For an .AppImage, make it executable before the first run: chmod +x YSocial-*.AppImage.

Under More options you can open YSocial in your default browser instead of its own window, start Jupyter Lab (off by default), change the address and port (127.0.0.1:8080 by default), and switch off the update check.

Use this on servers, in notebooks or in scripts. You need Python 3.12.

Download ysocial-4.0.0-py3-none-any.whl and constraints.txt from the release (the constraints file is here), then:

python3.12 -m venv ysocial-env && source ysocial-env/bin/activate
pip install ysocial-4.0.0-py3-none-any.whl -c constraints.txt
ysocial --host localhost --port 8080

Add the [toxicity] extra if you want local toxicity detection (large download):

pip install "ysocial-4.0.0-py3-none-any.whl[toxicity]" -c constraints.txt

Open http://localhost:8080. Plugins are installed afterwards from the admin panel.

The image is published on the GitHub Container Registry, for every release. Your data lives in the ysocial-data volume, so it survives restarts and upgrades.

docker run -d --name ysocial -p 5000:5000 -v ysocial-data:/data ghcr.io/ysocialtwin/ysocial:latest

Pin a version with ghcr.io/ysocialtwin/ysocial:v4.0.0. Then open http://localhost:5000.

Compose, from the repository

git clone https://github.com/YSocialTwin/YSocial.git && cd YSocial
docker compose -f docker/compose.yml up                       # YSocial + SQLite
WITH_TOXICITY=1 docker compose -f docker/compose.yml build    # image with toxicity detection
YSOCIAL_PORT=8080 docker compose -f docker/compose.yml up     # another host port

Good to know

  • The LLM server is not in the image. Run Ollama, vLLM or any OpenAI-compatible service outside and set its address in the admin panel. From the container, the host is http://host.docker.internal:11434 (with plain docker run on Linux add --add-host=host.docker.internal:host-gateway).
  • Update: docker pull, docker rm -f ysocial, then run again with the same volume. Back the volume up before major upgrades.
  • Logs: docker logs -f ysocial. Port busy? Map another one, for example -p 8081:5000.
  • Older compose variants (GPU, reverse proxy) are described in deployment/docker/README.md in the repository.

For development and customisation. Python 3.12 is the reference version (CI, builds and Docker).

1. Environment and code

conda create --name Y python=3.12
conda activate Y
git clone https://github.com/YSocialTwin/YSocial.git
cd YSocial

2. Plugins. YSocial is a core plus plugins that live in external/. The recommended way is the Plugins page of the admin panel. By hand, clone only the runtimes you simulate (full list in external/plugins.json, see also the plugins page):

Platform or feature Clone into external/
Microblogging YClient, YServer
Forum YClientReddit, YServerReddit
Photo sharing and HPC YSimulator, YPhotoSharing
Optional ScenarioDesign, TrainingModules, y_memory_subsystem, frontend_adds-on, reactive_agents, y_agents_plugins

3. Configure and install

cp .env.example .env
python -c "import secrets; print(secrets.token_hex(32))"   # paste as YSOCIAL_SECRET_KEY in .env
pip install -r requirements.txt

4. LLM server (optional locally)

curl -fsSL https://ollama.com/install.sh | sh
ollama pull minicpm-v    # image captioning
ollama pull llama3.1     # or any model you prefer
# vLLM: use the OpenAI-compatible entry point, not "vllm serve"
pip install vllm && python3 -m vllm.entrypoints.openai.api_server <model_name> --host 0.0.0.0 --port 8000

5. Run

python y_social.py --host localhost --port 8080            # browser
python y_social.py --no_notebook                           # disable Jupyter Lab

After installing

  1. Open YSocial at the address shown on the right.
  2. Log in with admin@y-not.social / admin, then change the password.
  3. In the admin panel, connect an LLM, create an experiment and press start.
The YSocial login page
If you used YSocial opens at
Desktop installer Its own window, or http://127.0.0.1:8080 in your browser
pip http://localhost:8080
Docker http://localhost:5000
Source http://localhost:8080

Requirements

An LLM server
Always separate from YSocial. Any OpenAI-compatible server works, commercial or self-hosted (Ollama, vLLM). The memory and compute you need depend on the model and on how many agents you run.
Python
Version 3.12, only for pip and source. The desktop installer prepares its own private environment, and the Docker image ships it.
Internet
Needed while installing: the installer downloads its environment and Docker pulls the image.
Disk
A few GB. Toxicity detection is optional and adds several more (PyTorch and a model).

Verify your download

Check a file against its checksum and signature All downloads, all systems

This is optional and applies to every file of a release: the installers for macOS, Windows and Linux, the wheel and constraints.txt. Two checks are available, and they work the same on every system:

  1. Checksum (did the download arrive intact?). Download SHA256SUMS.txt next to your file and compare:

    System Command
    Linux sha256sum -c SHA256SUMS.txt --ignore-missing
    macOS shasum -a 256 -c SHA256SUMS.txt --ignore-missing
    Windows (PowerShell) Get-FileHash .\YSocial-4.0.0-windows-x64.exe -Algorithm SHA256, then compare it with the line in SHA256SUMS.txt
  2. Signature (was it published by the YSocial team?). Every file has a detached GPG signature, the same name plus .asc, and so does SHA256SUMS.txt. The public key is release-signing-key.asc, attached to each release and kept in the repository. With GPG installed (brew install gnupg on macOS, gpg4win on Windows):

    gpg --import release-signing-key.asc
    gpg --verify YSocial-4.0.0-linux-x64.AppImage.asc YSocial-4.0.0-linux-x64.AppImage
    

    Use the file name you downloaded. A line saying Good signature means the file is genuine. GPG may also warn that the key is not certified: that is expected, compare the key fingerprint with the one in the repository if you want to be sure.

The installers are signed with GPG but not code-signed for macOS and Windows: the system warnings described above remain, and a valid GPG signature does not remove them.

Looking after your installation

Where your data lives Desktop installer only

YSocial keeps everything in a single data folder (YSOCIAL_HOME), so backing up or moving an installation means copying one directory.

System Default data folder
macOS ~/Library/Application Support/YSocial
Windows %USERPROFILE%\AppData\Local\YSocial
Linux ~/.ysocial

If YSocial does not start, the last lines of logs/launch.log inside the data folder say why.

Updating and uninstalling Desktop installer only

With the desktop installer, the launcher checks the latest published release when it opens (you can switch this off). Update installs the new version over the current one after you confirm, and the database is upgraded on the next start. Plugins are updated separately, from the plugin page of the admin panel.

To remove YSocial choose Uninstall in the launcher. You decide whether to delete the data folder and the downloaded toxicity models, then remove the installer app like any other app.

Anonymised telemetry, and how to turn it off

YSocial collects minimal, anonymised telemetry to help us fix bugs and prioritise work. You can disable it at any time from the admin panel. The code that receives it is public: yTelemetry.

Collected: number of experiments, populations, agents and pages; the recommender system and LLM model in use; simulation duration; installation or update date, YSocial version, operating system and locale; error types, frequency and anonymised stack traces.

Not collected: personal data, IP addresses or location, simulation content or user-generated data, emails, passwords or credentials, or any tracking of individuals across sessions.

Telemetry data is aggregated, stored with access controls, used only to improve YSocial and never shared with third parties.