Build Your Own AI Passport App with an AI Agent
AI Passport is open source, which means you can build your own app for it — and an AI coding agent can do most of the heavy lifting. Start with one clear sentence about what you want, let an AI agent develop and build it, then flash it onto your real device. No deep embedded experience required.
What You Need
- An AI Passport device and a USB Type-C cable
- A computer with Chrome or Edge, and access to the official GitHub repository
- An AI coding agent such as Codex, Claude Code, or TRAE
- The official documentation at ai-passport.folotoy.cn
Step-by-Step
- Open the project. Open the AI Passport repository in your AI coding tool and have it read the AGENTS.md file first — it tells the agent the project rules and workflow.
- Let the agent install the required skills. The project needs five skills to be installed; grant the permissions the environment requires.
- Describe what you want to build. Write a clear requirement. The more specific, the better — pages, controls, data, and how you will verify it works.
- Start from a fresh branch. Create a new
feature/*branch frommain(for example,feature/my-passport-app) and develop there, keepingmainclean. - Let the agent develop and build. The agent writes the application code, builds the firmware, and reports the result, including any device checks that still need to be run on hardware.
- Flash it onto your device. Connect AI Passport over USB and flash the merged firmware (the
full.binimage) to the device. - Test on real hardware. A successful build is not hardware validation — run the app on your device, observe the controls and screen, and send the feedback back to the agent to refine.
Writing a Clear Requirement
The more specific your requirement, the more likely the agent gets it right in one pass. Include:
- User flow: what each screen shows, and what short press, double press, and long press do for each button.
- State and data: whether the app needs timing, persistence across power loss, networking, recording, or computer communication.
- Experience goals: fonts, colors, animation, sound, response time, and error states.
- Constraints: navigation, allowed dependencies, and Flash/data usage.
- Acceptance criteria: which behaviors need automated tests, and which must be checked on the real device.
Hardware You Can Build With
| Capability | Detail |
|---|---|
| Processor & memory | ESP32-C3 with 8 MB Flash (no PSRAM) |
| Display | 240 × 320 color screen |
| Buttons | Three physical buttons (UP, DOWN, OK) |
| Audio | Microphone and speaker for playback and recording |
| Battery | Built-in 500 mAh rechargeable battery with charge monitoring |
| Wireless | 2.4 GHz Wi-Fi and Bluetooth Low Energy (BLE) |
| Connectivity | NFC on the device |
Good to Know
- The
mainbranch is a minimal, runnable hardware-test baseline — design your own app UI rather than reusing the demo test menu. - Reference demo branches (
demo/stopwatch,demo/tetris-game,demo/claude-buddy-port, and more) show proven patterns you can reuse. - Flashing is your call — approve it, then test on the real device and iterate.