Build Your Own AI Gadget — cover

AI tools to try · Free PDF · 10 pages

Build Your Own AI Gadget

Your own AI device in one evening

You get this PDF right away, plus one email a week with the new guide. Unsubscribe in one click. Privacy

The problem

You see AI gadgets everywhere but they cost a lot and do what the maker decided. Building one yourself sounds like weeks of firmware, wiring and forum threads.

After this guide

You turn a spare Raspberry Pi or a cheap board into an AI gadget that talks, shows things and runs your own commands. Your coding agent writes and flashes the changes for you.

What's inside

  • Six gadgets that already work, from fridge screen to talking desk buddy
  • Raspberry Pi setup in four steps
  • Small-board setup where your coding agent flashes it for you
  • 8 copy-paste agent prompts plus the safety rules

Free preview

Meta open-sourced the Muse Gadget SDK on October 2, 2026. It connects Muse, Meta's AI agent, to an ESP32 board or a Raspberry Pi, and with a screen, button or sensor you get your own Muse device. This guide is for makers who want to set up either path and use a coding agent to do the hard parts.

  1. Pick Pi or ESP32The Linux path (Pi 3B+, 4, 5, Zero 2 W or any Linux box with Bluetooth LE) takes about 15 minutes. The ESP32 path needs an ESP32 board, a Mac or Linux computer and ESP-IDF v6.0.1, and takes an evening the first time.
  2. Get the app and tokenBoth paths need the Muse app on your phone and an SDK token that starts with mgst_, from gadgets.muse.ai > Account > SDK tokens. Every gadget needs one to pair.
  3. Pi: download and run installerDownload the installer and read it first, then run it with your token. It installs to /opt/musegadget, starts the service and opens Bluetooth pairing.
  4. Pi: pair and checkIn the Muse app, go to Settings > Devices, turn on Developer mode, then Add Device (+). Pairing stays open 10 minutes, and you can check the service afterwards.
  5. ESP32: let an agent flashClone the SDK, go to the esp32 folder and start your coding agent there with the board plugged in. Each folder has an AGENTS.md with the full build recipe.
  6. Pair and plan for riskOn an ESP32, a light breathing orange means add it in the Muse app, and green means connected. On a Pi, Muse runs shell commands with the rights of its account, so use a separate account and a network you trust.

3 prompts from the guide

Build and flash your first ESP32 firmware
Read AGENTS.md. Build this firmware for my [ESP32-C5 DevKitC-1 / board name] and flash it. Ask me for my SDK token, put it only in the build's sdkconfig, never in git, and never print it in full. Then watch the serial log and tell me when it's ready to pair.
Add a new command to Muse on a Pi
In linux/, read AGENTS.md. Add a command "garage.status" that reads [GPIO 17 / a sensor] and returns open or closed. Add the spec to COMMAND_SPECS and a branch in Executor.run, write a test, run the tests with uv, then tell me how to install it with install.sh --from .
Restrict what Muse can do on a Pi
Reinstall the gadget with install.sh --run-as muse, a new user without sudo. Give that user read access only to [folders]. Show me what Muse can and can't do afterwards.

The full guide has every step, all the prompts and the fixes for what usually goes wrong.

Questions

What is the Muse Gadget SDK?

It is code Meta open-sourced on October 2, 2026 that connects its Muse AI agent to an ESP32 board or a Raspberry Pi. There are two SDKs: ESP32 firmware for small boards and a Linux service for a Pi or any Linux box. It is licensed under Apache 2.0 and provided as-is, with no warranty.

Can I run Muse on a Raspberry Pi?

Yes. The guide lists the Pi 3B+, 4, 5 and Zero 2 W, or any Linux box with Bluetooth LE, running Pi OS Bullseye+, Debian 11+ or Ubuntu 22.04+. You need an account with sudo, and the setup takes about 15 minutes.

What do I need to build a Muse gadget on an ESP32?

You need an ESP32 board, with the ESP32-C5 DevKitC-1 listed as the easiest, and a USB cable that carries data. You also need a Mac or Linux computer to build and flash, with ESP-IDF v6.0.1 exactly. Windows isn't listed.

Can a coding agent flash the board for me?

Yes. Each ESP32 folder has an AGENTS.md with the full build recipe, so a coding agent such as Claude Code, Codex or Meta's Muse Code can build and flash for you. Flashing needs the USB serial port, so the guide says to let it run flash and monitor outside its sandbox and approve each command.

Is it safe to pair a Muse gadget?

Meta warns you are building at your own risk, and bricked boards and voided warranties are possible. On a Pi, Muse runs shell commands with its account's rights, so the guide advises a separate account. Pairing is encrypted but has no maker check and can't stop an active man-in-the-middle, so pair on a network you trust.

From the blog

More free guides

← All free guides