GETTING STARTED / 06

Build an AI Passport app with Huawei Cloud CodeArts

Open the complete project in CodeArts Agent IDE, describe your app in Vibe Coding, and work through development, building, and installation checks.

01

Get to know CodeArts

Huawei Cloud CodeArts Agent IDE combines a code editor with an AI coding agent. Open the complete AI Passport project, describe your app, and let the agent read code, edit files, and run builds. This guide uses Vibe Coding in CodeArts Agent IDE.

  • Developer: Huawei Cloud
  • This guide uses the Mac IDE. The official download page also offers installers for Windows and other systems.
  • Requirements: a Huawei Cloud account and available CodeArts model usage. Check your account for current access and limits.
  • Model used here: GLM-5.3. Your account may offer different models.
Tip
Tested with CodeArts Agent IDE 26.11.400 and ESP-IDF 5.5.3 on macOS 26.7.3 (Apple silicon).
02

Download and install CodeArts

Download the installer from the official site: CodeArts official downloads. Use only the official download, not repackaged builds from other sources.

Platform choices in the official CodeArts IDE download section
Choose the Mac build for Apple silicon or your operating system in the IDE section
  • Find the CodeArts Agent IDE download section and choose your operating system. This guide uses the Mac build for Apple silicon.
  • macOS: extract the downloaded .zip, move CodeArts Agent to Applications, and launch it. If it's already installed, continue to the next step.
  • Windows: choose the Windows installer and follow the setup wizard. The screenshots below are from a Mac; menus and shortcuts may differ.
  • The download page also offers a desktop beta, CLI, and editor plugins. Choose the IDE to follow these screenshots.
03

Sign in and check the model

On first launch, import your editor settings or skip that step, then sign in with your Huawei Cloud account in the browser and return to the IDE. If you're already signed in, go straight to your project. This session used the English interface, so the steps keep the button names shown in the screenshots.

GLM-5.3 in the CodeArts built-in model list
Select the model name below the message box to check available models
  • Choose IDE at the top, then Vibe Coding in the chat panel.
  • Select the model name below the message box to check availability. The built-in model shown in this session was GLM-5.3.
  • You don't need to copy another tool's model choice or add an API key for this built-in model. If no model is available, check your sign-in and usage allowance.
04

Open the AI Passport project

Download the complete project, then choose File > Open Project… and select its root folder. Choose Current Window or New Window when asked. Explorer should show AGENTS.md and folders such as components, main, and tools.

  • Run git clone https://gitee.com/FoloToy/ai-passport.git in a terminal. Use a separate copy for the tutorial to keep your existing work intact.
  • Open the whole project, not a single .c source file or a firmware .bin file.
  • If chat is hidden, select Expand AI Side Bar at the top right. Check the project before sending your task.
Tip
The first time you open the folder, the IDE may ask whether you trust its authors. Check the source and folder before enabling project features. You don't need to trust the entire parent folder.
05

Send the build prompt

Start a new conversation, paste the prompt below, replace [ENTER APP REQUIREMENTS] with the app you want, and send it. This guide used the following example:

Prompt for the Agent
Build  using the complete project at https://gitee.com/FoloToy/ai-passport; reuse a local checkout if available.
Read AGENTS.md and docs/README.md first, then consult relevant documentation, hardware interfaces, and examples as needed. Prepare the environment and install the Skills required by the project.
Preserve existing changes and develop on a new branch. Reuse the BSP and design a fresh application UI instead of copying the demo; check font coverage for Chinese text. Ask when key requirements are unclear and handle the rest autonomously.
Run project validation and deliver merged firmware flashable from 0x0. Report test results and anything unverified. When finished, proactively ask whether to test on hardware; do not flash without confirmation.
The project, GLM-5.3, and Pomodoro request in CodeArts IDE
Open the complete project and send the app request in Vibe Coding
  • a Pomodoro timer: start with a 25-minute focus countdown; Confirm starts or pauses it; before it starts, Up and Down change the length from 5 to 60 minutes in 5-minute steps; when time is up, show a clear alert and play a sound, and Confirm resets the timer
06

Let CodeArts build and check the app

After you send the task, chat shows progress, file reads, and commands. Let the agent read the project rules and check the environment, then implement the UI and timer and run validation. If it stops at a plan, ask it to finish the code, build, and handoff.

  • If idf.py is missing, follow the project setup guide to install ESP-IDF 5.5.3. In one terminal, run source ~/esp/esp-idf-v5.5.3/export.sh, check that idf.py --version prints ESP-IDF v5.5.3, then run ./tools/validate.sh. Substitute your install path if needed.
  • If CodeArts asks for approval, check the command and target folder. Approve only operations needed for your task.
  • If the chat cannot run a required command, open the integrated terminal from the Terminal menu, activate ESP-IDF, and run validation. Share the first actionable error with the agent and rerun after the fix.
Tip
On the first run, the agent installs the Skills the project needs and checks or sets up the ESP-IDF build environment, so it takes a while. The job isn't done until you see a successful build and a firmware file path.
07

Review the result

Check the agent's handoff for separate build, host-test, device-test, and unverified results. Find the merged .bin firmware explicitly marked for installation at 0x0, rather than choosing an application image on its own.

  • The example passed host tests and built successfully. The merged firmware is build/FoloToy-AI-Passport-full.bin (838,512 bytes).
  • Ask the agent to report the merged firmware size and SHA-256 then run python3 tools/archive_firmware.py verify build/firmware/<firmware SHA-256> with the actual hash.
  • On the device, check that the timer starts at 25:00, Confirm starts and pauses, Up and Down adjust the duration in five-minute steps before starting, and the timer shows and sounds an alert before Confirm resets it.
Tip
Before installing, confirm that you selected the merged firmware for offset 0x0. Keep the archived ELF and MAP for troubleshooting on the device.
08

Install it on AI Passport and test

Open the web flasher, choose the merged firmware the agent delivered (the .bin file written at 0x0), connect AI Passport with a USB-C data cable, and install it. The device restarts when it finishes. Then check the display, buttons, and sound one by one.

  • Installing a new app overwrites everything currently on the device. You can restore the default firmware at any time.
  • Don't unplug the cable or close the page during installation.
  • Describe anything that doesn't look or respond as expected, and ask the agent for another build.
09

Troubleshooting

Here are issues you may run into when building AI Passport apps with CodeArts:

  • The agent can't find the project: use File > Open Project… to open the root folder and check for AGENTS.md in Explorer.
  • Chat says Awaiting your input: look above for a command waiting for approval. Review it and continue or skip; don't resend the same task.
  • No model is available or a request fails: check your Huawei Cloud sign-in, network, and account allowance. Use the models actually listed in your interface.
  • ESP-IDF is missing or compilation fails: ask the agent to follow the project's environment and build documentation, prepare the required tools, and retry.
  • The build passes but the display or sound is wrong: host checks don't establish hardware behavior. Give the agent the observed screen, steps, and logs for a fix.