# LibreTiny

> PlatformIO development platform for IoT modules

Source: https://talira.ai/catalog/libretiny-v4d84pwj
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Library
- Categories: [embedded / frameworks](https://talira.ai/categories/embedded/frameworks)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Free tier: yes[^1]

LibreTiny (formerly LibreTuya) is a PlatformIO development platform for the Beken BK72xx, Realtek RTL8710/RTL8720 and Lightning LN882H Wi-Fi chips found in many Tuya-based smart devices. Besides packaging the vendors' SDKs as PlatformIO cores, it provides Arduino-compatible cores modelled on Espressif's ESP32 core, so existing ESP code can be ported to these chips. [ESPHome](https://talira.ai/catalog/esphome-de6hvqj8.md) supports it natively since 2023.9.0 for building firmware for BK72xx, RTL87xx and LN882H devices. Its docs cover flashing with ltchiptool, dumping stock firmware and converting devices with tuya-cloudcutter, and list the supported boards and modules.

## Links

- Website: https://docs.libretiny.eu/
- GitHub: https://github.com/libretiny-eu/libretiny
- Docs: https://docs.libretiny.eu/

## Problems it solves

- write Arduino code for the Beken chip inside my Tuya smart plug
- run ESPHome on a smart device that has a BK7231 instead of an ESP chip
- port my ESP32 project to a Realtek RTL8720 module
- build custom firmware for cheap Tuya Wi-Fi modules with PlatformIO
- flash a device with a Beken or Realtek chip and keep a backup of the stock firmware

## Features

- PlatformIO platform for BK72xx, RTL8710BN/BX, RTL8720CF/CM and LN882x chips
- Arduino-compatible cores modelled on the ESP32 core
- vendor SDKs as PlatformIO cores
- native ESPHome support since 2023.9.0
- C and C++ APIs
- flashing and dumping guide with ltchiptool
- list of supported boards and Tuya modules

## Trust

Overall: 0.15 out of 1.
Signals: backing 0.00, extensibility 0.00.

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [ESPHome](https://talira.ai/catalog/esphome-de6hvqj8.md)

## Sources

[^1]: https://github.com/libretiny-eu/libretiny/blob/master/LICENSE (checked 23 Nov 2026)
