M5Stack hardware and software. Without complex environment configuration, you can quickly generate code for M5Stack devices, deploy programs, and debug them using natural language. AiFlow is available as both a desktop app and a mobile app and supports all M5Stack devices compatible with the UiFlow2 platform. This guide uses connecting a StickS3 through the desktop app as an example to explain how to connect the device to AiFlow and quickly get started.
iOS users can search for AIFlow in the App Store to download the app. Android users can search for AIFlow on Google Play or download AIFlow-v1.0.5.apk.
The model API configuration primarily includes the following information:
After entering the information above, click Test connection. When Connection successful appears, the API has been configured successfully.
Put the device into download mode: Connect the StickS3 to the computer, then press and hold the power button until the green indicator starts flashing. The device will enter download mode.
After the firmware has been flashed, the device must establish a wireless connection with AiFlow using an Access Code. This connection is used for program deployment and device control.
Obtain the device Access Code: After the StickS3 starts, press the center button once. When the server connection is established, the device will automatically generate an Access Code and display it on the screen.
After completing the connection, enter natural-language instructions describing the functionality you want to implement. You can also upload image attachments and add custom user prompts. AiFlow displays the current task generation progress in real time. Once reasoning is complete, it automatically generates the corresponding MicroPython code and deploys it to the device over the network. Use the code preview and run-and-debug features to quickly validate and iterate on the result.
The AiFlow interface is designed around the “chat -> code generation -> run and debug” workflow. It is arranged from left to right, making it easy to move quickly from an idea to a working result.
Token usage statistics for the current session are displayed in the upper-right corner of the Conversation area, making it easier to estimate model usage costs. In the upper-right corner of the Your Idea area, you can manage templates and view Token usage history for the past three days to help manage daily usage and quotas.
The AIFlow project is continuously updated. Follow AIFlow GitHub for the latest updates.



