Quick Start
Build a page for Rokid Glasses and check it in your browser. The local steps use Node.js 20 or later and npm.
Build and Preview Your First Agent
Open a terminal in the directory where you keep your projects. Create the project, install the AIX CLI, and start the preview.
npm create @yodaos-pkg/aiui-agent@latest my-agent
cd my-agent
npm install -g @yodaos-pkg/aix-cli
aix preview .
Open the URL printed in the terminal. The starter page should display Hello AIUI!. Click the button labeled 点击我 to change the greeting briefly. If the preview opens a different page, check that you ran the command from my-agent and that app.json lists pages/index/index. Stop the preview with Ctrl+C.
To change the greeting, edit the greeting value under data in pages/index/index.ink. Restart the preview and check that the new text appears.
You can also create a project in AIUI Studio, which runs in the browser.
Next Steps
- Build an interactive counter to practice updating page state.
- Test on glasses with AIUI Studio or install an AIX package with the CLI.
- Package and publish your agent.
- Choose an interaction model. Start with a card in a conversation or an immersive page.
- Learn what AIUI provides and how an AIUI project is organized.