How to create AIUI Agent and upload it to your Glasses
Create and Upload an AIUI Agent
AIUI gives developers a practical way to build lightweight experiences for Rokid Glasses. Start with the official project template, develop the Agent in Craft with help from AIUI Code, preview and test the interaction, and upload it to your glasses for an on-device check.

Before You Begin
-
Install Node.js and npm on your computer.
-
Make sure you can sign in to Craft with your Rokid account.
-
Keep your Rokid Glasses available for the final on-device test.
Create an AIUI Project
-
Open Terminal or another command-line tool.
-
Run the official project creation command:
npm create @yodaos-pkg/aiui-agent my-agent
-
Follow the prompts to finish creating the project.
-
Open the generated project folder. The starter project includes the basic configuration and page files needed for an AIUI Agent.
Note: In the example command, my-agent is the project name. Replace it with your preferred project name before running the command if needed.
Open the Project in Craft
-
Go to Craft and sign in.
-
Import or open the AIUI project folder you just created.
-
Check that the project files appear in the file tree.
-
Open AIUI Code to begin building the Agent.
Build with AIUI Code
-
Describe the page, feature, or interaction you want to create.
-
Let AIUI Code generate or update the project files.
-
Review the result and continue the conversation to refine the layout, content, or behavior.
-
Before testing, check the generated files, especially the page entry, project configuration, and capabilities the Agent uses.
Developer note: AIUI Code can speed up the first draft, but the final experience still needs a developer review. Keep prompts specific and test after each meaningful change.
Test in Interactive Inview
-
Open Interactive Inview from the preview area.
-
Use the on-screen controls to simulate the hardware keys on Rokid Glasses.
-
Move through the complete flow and check that text is readable, actions respond correctly, and navigation is clear.
Testing note: The simulator helps catch layout and interaction issues early. A final test on the glasses is still recommended before sharing the Agent.
Upload the Agent to Your Glasses
-
Select the upload or deployment option in Craft.
-
Review the Agent name, category, and description.
-
Check the requested capabilities and permissions. Keep only what the Agent actually needs.
-
Follow the on-screen prompts to confirm the upload and select an available destination or connected pair of Rokid Glasses.
-
When the upload is complete, open the Agent on your glasses and run through the experience once more.
Availability
Craft, AIUI Code, and upload options may vary by account, region, platform version, and device availability. If the interface differs from the video, follow the labels shown in the current Craft interface and check the latest AIUI documentation.





























