Skip to content

thdelmas/OSmosis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

207 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OSmosis logo

OSmosis

Install any OS on any device. CLI and web UI.

OSmosis gives you real ownership of your hardware. Your device, your choice of operating system. Whether you're installing a privacy OS on a phone, reviving an old tablet, or escaping a locked-down ecosystem — OSmosis handles the flashing, you make the choices.

Quick start

git clone https://github.com/thdelmas/OSmosis.git ~/OSmosis || true \
  && cd ~/OSmosis \
  && git pull --recurse-submodules \
  && make install \
  && make serve

Plug in your device via USB. OSmosis detects it and walks you through the rest.

Requirements: Python 3.10+, Node.js, a USB data cable. Linux recommended, macOS works, Windows via WSL2. See detailed requirements below.

What can I flash?

OSmosis supports phones, tablets, SBCs, scooters, routers, microcontrollers, and more. Here are the most common:

Device What you can install Status
Samsung Galaxy LineageOS, /e/OS, LETHE, CalyxOS Supported
Google Pixel GrapheneOS, CalyxOS, LineageOS, LETHE Supported
OnePlus / Xiaomi / Fairphone / Motorola / Sony / Nothing LineageOS, /e/OS, LETHE Supported
PinePhone / Librem 5 PostmarketOS, Mobian, UBports Supported
Raspberry Pi & SBCs Ubuntu, DietPi, Home Assistant Supported
Electric scooters (Ninebot, Xiaomi) Custom firmware via BLE/ST-Link Supported
Routers OpenWrt, DD-WRT Supported

See the full device catalog for 200+ device types including laptops, game consoles, e-readers, cameras, lab equipment, and more.

Looking for LETHE?

LETHE is a privacy-first OS that runs on your existing phone — no new hardware needed. It bundles financial protection (PreuJust), health data guardianship (Bios), and an on-device AI companion, all designed to give you back control of your digital life.

Install LETHE with OSmosis:

# 1. Set up OSmosis (quick start above), then:
make serve
# 2. Plug in your phone via USB
# 3. Select "LETHE" from the OS list when prompted

LETHE works on Samsung Galaxy, Google Pixel, OnePlus, Xiaomi, Fairphone, Motorola, Sony, and Nothing phones. See the LETHE documentation for details.

Discord

Community

Discord

Usage

Web UI (recommended)

make serve
# Opens http://localhost:5000

The web UI detects your device, shows compatible OS options, and guides you through flashing with real-time progress and physical button instructions.

CLI

./osmosis.sh            # interactive menu
./osmosis.sh --dry-run  # preview commands without executing
./osmosis.sh --help     # show help

Features

  • Auto-detect connected devices via USB
  • Pre-flight checks — battery level, backup status, storage space
  • Guided flashing — step-by-step with physical button instructions and countdown timers
  • Backup & restore — partition backups before flashing
  • ROM downloads — built-in firmware registry with SHA256 verification
  • Scooter support — BLE scan, firmware flash, ST-Link recovery
  • OS Builder — build custom Debian, Arch, Fedora, NixOS, or Alpine images
  • IPFS distribution — decentralized firmware hosting and pinning

Requirements

# Core
sudo apt install -y heimdall-flash adb unzip wget

# Optional
sudo apt install -y lz4 curl python3 python3-venv

# Scooter flashing (BLE)
pip install --user bleak

# Scooter flashing (ST-Link)
sudo apt install -y stlink-tools

Data directories

Path Contents
~/.osmosis/logs/ Session logs
~/.osmosis/backups/ Partition backups
~/Osmosis-downloads/ Downloaded ROMs and firmware

Project structure

Path What it does
osmosis.sh CLI wizard
osmosis-web.sh Web UI launcher
web/ Flask backend
frontend/ Vue 3 frontend
profiles/ Device profiles (YAML)
lethe/ LETHE privacy OS overlay
docs/ Device docs, guides, research

Support the project

OSmosis is free, open source, and not monetized. If it's useful to you, consider supporting the work:

Credits

OSmosis wraps and integrates upstream tools — the real work happens in the communities we depend on. See CREDITS.md for the full list, including:

Read the Manifesto — the principles behind OSmosis — and the Design doc for how it's put together.

We support Windows only so you can escape from it.

About

My best magic trick makes Google disappear

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors