A local-first, edge AI operating system for the home. Learns your patterns. Runs entirely offline. No cloud, no subscriptions, no surveillance.
License: MIT Python 3.10+ Node 18+
NestShift OS turns a Raspberry Pi into a truly autonomous home brain. Unlike smart home hubs that rely on rigid "if-this-then-that" rules, NestShift uses a neural core that learns from your behavior and anticipates what you need β all without sending a single byte to the cloud.
It runs every AI model locally: voice recognition, energy forecasting, behavioral learning, and safety filtering. Your data stays in your house. Period.
| Feature | What it does |
|---|---|
| π§ Neural Brain (NARE) | Spiking neural network with Hebbian learning that forms synapses between your sensors and devices. The more you use it, the smarter it gets. |
| β‘ Energy Optimisation | LightGBM forecasts your demand and shifts high-power loads to the cheapest tariff windows β 9β13% savings demonstrated. |
| π Pi-safe Hardware Filter | Immutable safety constraints. No AI, voice command, or bug can override hard limits on temperature, wattage, or high-power concurrency. |
| ποΈ Local Voice Control | Whisper Small runs on-device. Speak naturally. No cloud ASR, no wake-word phoning home. |
| π₯οΈ OrbitAI Dashboard | Glassmorphism React UI with real-time telemetry, neural traces, and energy rhythm charts. Deep blacks, neon cyan accents, zero clutter. |
| π Drift-aware MLOps | SystemAgent monitors prediction quality and triggers automatic retraining when your habits change. |
git clone https://github.com/aryan597/nestshift-os.git cd nestshift-os/dashboard npm install npm run dev # Open http://localhost:5173
cd services/brain python -m venv venv source venv/bin/activate # Windows: venv\Scripts\activate pip install -r requirements.txt python main.py
curl -sSL https://raw.githubusercontent.com/aryan597/nestshift-os/main/scripts/install.sh | bashNote: Full stack deployment requires Mosquitto MQTT, InfluxDB, and Zigbee2MQTT. See ARCHITECTURE.md for detailed service topology.
βββββββββββββββββββ ββββββββββββββββ βββββββββββββββββββ
β OrbitAI Dashboard βββββββΊβ FastAPI βββββββΊβ Mosquitto MQTT β
β (React + Vite) β β Gateway β β (TLS) β
βββββββββββββββββββ ββββββββββββββββ βββββββββββββββββββ
β
ββββββββββββββββ¬βββββββββββββββ¬ββββββββββββββββββΌββββββββββββββββββ
βΌ βΌ βΌ βΌ βΌ
ββββββββββββββ ββββββββββββββ ββββββββββββββ ββββββββββββββ ββββββββββββββ
β Brain β β Energy β β Automation β β System β β Zigbee β
β (NARE) β β Agent β β Agent β β Agent β β / GPIO β
ββββββββββββββ ββββββββββββββ ββββββββββββββ ββββββββββββββ ββββββββββββββ
- NARE Brain β LIF spiking neurons + STDP learning
- Energy Agent β LightGBM demand forecasting + Octopus Agile tariff arbitrage
- Automation Agent β Hourly behavior pattern mining with confidence scoring
- System Agent β Drift detection, model freshness, hardware health
- Pi-safe β Immutable safety filter between all agents and physical hardware
Read the full architecture: ARCHITECTURE.md
| Component | Purpose |
|---|---|
| Raspberry Pi 5 (4GB+) | Primary compute |
| Shelly 1PM | WiFi relays + power monitoring |
| Danfoss Ally TRV | Zigbee radiator valves |
| Aqara Sensors | Temp, humidity, motion, door/window |
| CT Clamp | Whole-home energy monitoring (NILM) |
nestshift-os/
βββ dashboard/ # React + Vite OrbitAI UI
βββ services/ # Microservices (FastAPI + asyncio)
β βββ api/ # REST gateway & auth
β βββ brain/ # NARE neural core
β βββ energy-agent/ # Demand forecasting & tariff logic
β βββ automation-agent/ # Behavioral pattern learning
β βββ system-agent/ # Drift detection & monitoring
β βββ gpio/ # Raspberry Pi hardware interface
β βββ zigbee/ # Zigbee2MQTT bridge
βββ board/ # Buildroot OS overlay
βββ config/ # Hardware & neural config
βββ scripts/ # Installation & flashing helpers
βββ simulation/ # Digital twin evaluation framework
βββ tests/ # Safety & logic test suite
βββ systemd/ # Production service units
- Local-first: 100% of inference and data stays on your Pi. No cloud APIs, no telemetry, no outbound analytics.
- Encrypted transport: All MQTT traffic uses TLS. JWT auth on REST endpoints.
- Immutable safety: Pi-safe constraints are hardcoded. No prompt injection, voice spoof, or model drift can disable them.
- Camera-free: Optional WiFi CSI sensing (RuView) for through-wall occupancy without cameras or wearables.
NestShift OS is the product of active research in edge AI and residential energy optimisation.
- Energy optimisation: 9β13% cost reduction across dynamic tariffs (see RESEARCH.md)
- Solar self-consumption: 12β38% savings for solar-equipped households
- Digital twin: Reproducible Monte Carlo simulation framework included in
simulation/
Read the full research background: RESEARCH.md
NestShift sits at the intersection of neuroscience, embedded systems, and home automation. We're actively looking for contributors in:
- Spiking neural networks (snnTorch / Norse)
- Embedded ML & ONNX Runtime on ARM64
- Zigbee / Matter device integrations
- Safety-critical systems verification
Open an issue or draft PR. All contributions are reviewed through the Pi-safe lens: safety first, features second.
Built by NestShift Ltd for a sustainable, intelligent future.