Page 1 of 1

HarixOS: An Open Source Linux-Style Real Operating System for ESP8266

Posted: Mon May 04, 2026 5:05 pm
by Haris16-code
HarixOS โ€“ A Linux-Style CLI Operating System for ESP8266

HarixOS is a real, CLI-based open source operating system designed specifically for microcontrollers, starting with the ESP8266 family. Unlike typical firmware projects or simple IoT scripts, HarixOS introduces a structured operating system experience on constrained hardwareโ€”complete with a shell, filesystem, scripting engine, and safe hardware API layer.

This project transforms the ESP8266 from a basic WiFi module into a fully interactive embedded computer accessible through a serial terminal.

๐Ÿš€ The Story Behind HarixOS

Most ESP8266 projects follow a simple pattern: connect sensors, blink LEDs, send data to the cloud. But as projects grow, managing logic becomes messy, unsafe, and unscalable.

HarixOS was built to solve this problem.

Instead of writing scattered firmware logic, HarixOS introduces a central operating system layer where everything is controlled through commandsโ€”just like Linux systems, but designed for microcontrollers.

The goal was simple:
โ€œWhat if ESP8266 could feel like a real computer, not just a WiFi chip?โ€
That idea evolved into HarixOSโ€”a modular OS with a command-line shell, safe API architecture, and a script engine for automation.

๐Ÿ–ฅ๏ธ Screenshots

Image
Image
Image
Image
Image
Image

And much more amazing commands!

๐Ÿง  Key Principles

HarixOS is built around three core principles:
  • Simplicity through CLI โ€“ Everything is accessible via commands
  • Safety by design โ€“ Apps never touch hardware directly
  • Extensibility first โ€“ New boards and features can be added easily
โš™๏ธ Core Features
  • ๐Ÿ–ฅ๏ธ Interactive CLI shell (HarixOS>)
  • ๐Ÿ“ Linux-like filesystem (LittleFS support)
  • โšก GPIO control via safe API layer
  • ๐ŸŒ WiFi management (scan, connect, status)
  • ๐Ÿ“œ .hx scripting engine for automation
  • ๐Ÿง  Background task scheduler
  • ๐Ÿ“ก HTTP file downloader (pull command)
  • ๐Ÿงฎ Built-in calculator
  • ๐Ÿงพ Notepad CLI editor
  • ๐Ÿ”ง System tools (info, heap, reboot, adc)
  • ๐Ÿ“ก HTTP server for file sharing
  • ๐Ÿงฉ Modular API architecture (GPIO, WiFi, FS, System)
๐Ÿ—๏ธ Architecture Overview

Code: Select all

CLI / .hx Scripts
      โ†“
HarixOS API Layer (Safe & Structured)
      โ†“
ESP8266 Hardware (GPIO, WiFi, ADC, FS)
This design ensures:
  • No unsafe direct hardware access
  • Controlled system behavior
  • Stable execution even under heavy scripting
๐Ÿ“œ Script Engine (.hx)

HarixOS includes a lightweight scripting system for automation:

Code: Select all

gpio 2 mode output
gpio 2 on
delay 500
gpio 2 off
delay 500
Getting Started with HarixOS

Prerequisites:
  • ESP8266 Flasher Tool (if using precompiled)
  • PlatformIO (if building from source)
  • USB-to-serial adapter or development board
  • Any ESP8266-family board (ESP-01, NodeMCU, D1 mini, etc.)
Precompiled Binaries

Download prebuilt latest .bin files on the Release Page.

Directly flash binary:

Code: Select all

esptool.py --port COM3 write_flash 0x00000 firmware.bin
โš ๏ธ Note: Make sure the binary matches your board (esp01 / nodemcu / d1 mini).

Common Commands
  • help โ€” list available commands
  • info โ€” system and Wi-Fi summary
  • ls โ€” check filesystem
  • notepad /myfile.txt โ€” edit and save text files
  • wifi scan โ€” scan nearby networks
  • run /scripts/myapp.hx โ€” execute a .hx script
๐ŸŒ Project Links

๐Ÿ”— GitHub Repository: https://github.com/Haris16-code/HarixOS
๐Ÿ’ฌ HarixOS Community: https://harixos.harislab.tech
๐Ÿ’ฐ Support the Project: https://harislab.gumroad.com/l/wsxmy?wanted=true

๐Ÿ“ Future Vision
  • ESP32 support
  • Plugin system for apps
  • OTA updates
  • GUI layer (optional future module)
If You Like HarixOS, Leave A Star At Github!