-
Add any devices you want to use with
tuyapito the Tuya Smart app. -
Install the CLI tool by running
npm i @tuyapi/cli -g. If it returns an error, you may need to prefix the command withsudo. (Tip: usingsudoto install global packages is not considered best practice. See this NPM article for some help.) -
Install AnyProxy by running
npm i anyproxy -g. Then runanyproxy-ca. -
Run
tuya-cli list-app. It will print out a QR code; scan it with your phone and install the root certificate. After installation, trust the installed root certificate. -
Configure the proxy on your phone with the parameters provided in the console.
-
Enable full trust of certificate by going to Settings > General > About > Certificate Trust Settings
-
Open Tuya Smart and refresh the list of devices by "pulling down".
-
A list of ID and key pairs should appear in the console.
-
It's recommended to untrust the root certificate after you're done for security purposes.
This repository was archived by the owner on Mar 10, 2026. It is now read-only.