A pocket computer on your Heltec V4.

KoaOS is a small Unix-style operating system with a shell, editor, GPS, Wi-Fi, weather and LoRa APRS. Flash it once over USB, then install apps over Wi-Fi.

koa login: root
Password:
root@koa:~# free
psram   8192 KB   used  1024 KB
root@koa:~# wifi connect home ••••••••
connected 192.168.1.42
root@koa:~# weather
Open-Meteo  14°C  wind 9 km/h
root@koa:~# install meshcore
installed meshcore (wasm)
root@koa:~# _

Flash KoaOS

  1. Use Chrome, Edge or another Chromium browser on a computer or Android phone.
  2. Plug in a Heltec WiFi LoRa 32 V4 with a data-capable USB cable.
  3. Choose a build below, press the install button, pick the board's serial port, and confirm.
Choose a build
This browser can't flash over USB. Open this page in Chrome or Edge, or use the esptool method on the Releases page. Flashing needs a secure (HTTPS) connection. Open this page over https://.

The installer keeps your files and apps unless you choose to erase the device. Your board must show up as a serial device; if it doesn't, hold BOOT, tap RST, release BOOT, and try again. After flashing, open a serial terminal at the board's USB port and log in with root / 1234.

V4 only. KoaOS needs the V4's PSRAM, so the V3 and other boards are not supported.

What it is

A real shell and filesystem

Login, processes, background jobs, scripts, a Nano-style editor and files that survive reboots and reflashes.

Apps you install at runtime

Apps are separate .esp packages run in a WebAssembly sandbox. A crashing app doesn't take the OS down.

The OS owns the hardware

Apps ask for Wi-Fi, GPS, LoRa or pins and the OS grants, shares or refuses. Two apps can't fight over the radio.

Built into the firmware: GPS with a shared on/off manager, Wi-Fi with HTTP/HTTPS, Open-Meteo weather, LoRa APRS (aprs, aprsd), edit, neofetch and pins.

Experimental 0.14 adds: VGA output and a graphical desktop (vga, gui), RCA composite video (rca, color mode recommended), a Bluetooth keyboard (ble), the i2c shell command, and apps that draw on the OLED and use I2C on its bus. Experimental 0.12 has VGA and the desktop only.

Apps and the SDK

Write apps in C, compile them to WebAssembly, and run them with wasm3. The SDK exposes a 48-function ABI (56 in experimental 0.14, which adds drawing on the OLED and I2C on its bus): console and file I/O, Wi-Fi and HTTP(S), GPS, LoRa, GPIO, two UARTs, I2C, SPI, hardware RNG, SHA-256, HMAC and AES-128, plus IPC.

Included examples: hellowasm, gpswatch, webget, iodemo, and a meshcore client. The experimental SDK also has i2cscan, oleddemo and pca9555 (a 16-bit I2C GPIO expander, tested at address 0x20).

$ python3 koaos-sdk/tools/repo_server.py apps/prebuilt 8000
root@koa:~# install -s 192.168.1.10:8000
root@koa:~# install -l
root@koa:~# install gpswatch

Good to know

Roadmap: saved Wi-Fi networks, I2C keyboard support, a touchscreen home screen for the V4 Expansion Kit, and a public app repository.