본문으로 건너뛰기

TuyaOpen Core SDK Library

TuyaOpen Core is a device-side C SDK library for Tuya Cloud. You add the library to an existing device project, keep your operating system and code, and connect the device to Tuya Cloud. One secure connection then gives you three capability APIs: IoT, AI Agent, and P2P.

Library, not a framework​

TuyaOpen Core is a library you link — it does not own the device's boot flow, drivers, or scheduler. This distinguishes it from the full TuyaOpen framework.

TuyaOpen CoreTuyaOpen framework
FormC libraries linked into a projectComplete framework with an OS stack, driver stack and application demos
ForAn existing platform that needs Tuya CloudA new project that wants everything working out of the box
CloudTuya CloudTuya Cloud

Both connect to the same cloud and share device identity, data points (DPs), and the app experience. Read Get Started with the TuyaOpen framework for the framework path.

Architecture​

The libraries run in the same address space as your application and reach system services only through a thin platform layer that the target provides.

The three capability APIs​

APIPurposeBuild switch
IoTDevice activation, authentication, data points, remote control, OTAAlways built
AI AgentCloud-AI voice and text conversations, optional MCP toolsCONFIG_ENABLE_AI_COMPONENTS
P2PLow-latency peer-to-peer audio and video, optional local storageCONFIG_ENABLE_TUYA_P2P

IoT is the foundation: it owns the cloud connection the other two use. LAN (local link) support is built by default, and BLE services are available when the platform provides a Bluetooth port.

Platforms​

Official platform support is provided for:

  • Linux — generic POSIX, including Raspberry Pi
  • ESP-IDF — Espressif chips, ESP-IDF v5.x
  • TuyaOpen / TuyaOS — an ops-module source drop that binds to the existing TKL layer

Any platform can be supported by implementing the platform adaptation contract. See Port to a new platform.

Next steps​