2026-11-26 15:40 UTC

Open-source reverse engineering makes ZNP Z01 badge programmable

state: watchingheat: mediumuncertainty: mediumrelevance: mediumai-hardware reverse-engineering consumer-accessdevniz

What is this?

Independent developer devniz released znp-re, an MIT-licensed project reverse-engineering the ZNP Z01 AI badge’s Bluetooth protocol and documenting its screen and animation formats. The repository includes a Python probe, an iOS Swift package and example, and an Android port. The author says the hardware itself is essentially a microphone, speaker, screen, button and Bluetooth chip; a phone app supplies the AI. The project’s iOS code is described as tested with real badges, while the Android quick start is explicitly uncompiled and untested on hardware. The repository also presents Milo, the author’s custom assistant, as a working example. The project is independent of ZNP and the model providers it mentions; the available corroboration is the repository itself and search results that summarize it, not independent testing or adoption evidence.

Why it matters

The project lowers the barrier to repurposing an inexpensive AI-branded wearable: developers can replace its vendor app and connect phone-side features and chosen models without changing the badge firmware. That could shift control over features, model choice and data handling toward owners and developers. The concrete evidence is strongest for the protocol and iOS path; broader device compatibility, Android readiness and the author’s privacy and feature claims have not been independently verified.

Current assessment

New: devniz’s znp-re repository documents the Z01’s BLE protocol and supplies code for building replacement apps. Its README says the badge streams microphone audio to a phone and receives text or audio responses; the example streams model output to the badge screen. It says the iOS library has been tested on real badges, but the Android port has not yet been compiled or tested on one. The author’s Milo example claims calendar, email, calls, music, directions and other phone actions, and says its voice processing uses on-device iPhone transcription with no account or server; these are project-author claims, not independently established results. The repository says firmware remains stock and licenses the project MIT. A later Hacker News listing on Nov. 23 frames it as a way to make a Meta AI charm/keychain, but links to the same repository and adds no validation; the README’s claim that Meta’s Charm keychain was scheduled for December 2026 is a future plan, not a confirmed release. Search results also summarize the project but provide no independent technical evaluation or adoption evidence. Useful follow-up: test the Android implementation and other hardware/firmware versions, verify privacy and model-provider data flows, and track whether outside developers build on the protocol.

Measured heat

now 0 pts/hpeak 6 pts/hcomments 0/hpeers p10momentum: steady2 platformsage 194h
points/hour across evidence · reading as of 2026-11-27 02:23:58.509736+11:00 · deterministic, not a model opinion

How the heat travelled

11-18 14:25 (minted)⭐ origin echo-reconstructedThe repository is the original artifact: its README describes reverse-engineering the ZNP Z01 badge’s Bluetooth protocol and provides code t
devniz on github (echo) · attributed from hn.story.50546196 · published time unknown
—
11-18 13:40first on hacker news · published · lag ?I reverse-engineered a cheap AI badge so you can put any AI in it
nzr_ldn
—
11-18 13:40amplified on hacker newshn.story.50546196
nzr_ldn
peak 1 · 0 comments · 34% of case engagement
11-22 18:56amplified on hacker news 👑hn.story.50602722
nzr_ldn
peak 2 · 0 comments · 69% of case engagement
11-18 14:20our radar first saw it · lag ?discovery anchor: hn.story.50546196—
pace: p38 vs 2096 stories at the 168h mark (now 194h old) — ahead of adobe-max-ai-agents-creative-tools-mcp (1.5x), behind 42loop-agent-operated-product-experiment (0.8x)

Evidence (3) — ⭐ canonical anchor

sourceobjectauthorscorecomments
🟧 hnI reverse-engineered a cheap AI badge so you can put any AI in it
Retrieved article excerpt

Open article · Retrieved 2026-11-18T14:22:18.519833+00:00

[The ZNP Z01 badge showing a purple face on its round screen](https://github.com/devniz/znp-re/blob/main/docs/z01.webp)

# ZNP-RE

**The ZNP Z01 AI badge, reverse engineered.** The full Bluetooth protocol and working iOS and Android code, so you can build your own badge assistant with your own app, features and AI model.

We use it with [Claude](https://www.anthropic.com/claude), but you can plug in any model.

```
press the badge ─▶ speak ─▶ your phone app ─▶ Claude ─▶ answer on the badge screen
                                                      └▶ and out of the badge speaker
```

## The Z01 is just a mic and a speaker

Under the "AI" label, the Z01 is a microphone, a speaker, a small round screen, one button and a Bluetooth chip. Same parts as a cheap smartwatch, and the chip comes from the same family.

There's no AI inside. The badge records your voice, sends it to a phone app over Bluetooth, and shows or plays whatever comes back. Whoever controls the app controls the badge, and this repo gives you that control.

You can buy one on [AliExpress](https://www.aliexpress.com/item/1005013174192186.html).

## The stock app is not great

The Z01 ships with an app called **BagiBagi**, and it wastes the hardware.

- "Add a GIF" uploads a single frozen frame. We decoded the badge's real animation format, so you can push moving faces to the screen.
- You can't choose the AI model, the voice or the personality.
- It can only chat. No email, calendar, music or directions.
- Your voice goes through their servers.
- It's closed source.

## Meet Milo

**Milo** is my own assistant, built on the protocol in this repo. It replaces BagiBagi on my Z01.

I use it for small tasks that would otherwise mean unlocking my phone. I double-tap the badge and ask "what's in my calendar tomorrow?" or "play something calm", and the answer shows on the badge and plays through its speaker.

[Milo's settings: Claude answers, actions, conversation mode, language, background mode, and spoken answers on the Z01](https://github.com/devniz/znp-re/blob/main/docs/milo-settings.jpg)

What Milo does:

- Answers with Claude, streamed to the badge screen word by word and read out loud
- Sends email, reads and adds calendar events, places calls, plays music, and types for me with its own keyboard
- Keeps listening after each answer in conversation mode
- Runs common commands instantly with a small on-device model
- Shows turn-by-turn directions on the badge, like `<< LEFT 200 m`
- Hands off to other apps (Maps, Waze, Spotify) with a lock-screen card
- Uses a custom listening screen and animated faces
- Has no account and no server. Voice is transcribed on the iPhone when the language allows, and the iPhone's own mic is never used

## What's in this repo

- [PROTOCOL.md](https://github.com/devniz/znp-re/blob/main/docs/PROTOCOL.md). The full BLE protocol, byte by byte.
- [HOW-WE-DID-IT.md](https://github.com/devniz/znp-re/blob/main/docs/HOW-WE-DID-IT.md). The reverse engineering, in plain words.
- [FILE-FORMATS.md](https://github.com/devniz/znp-re/blob/main/docs/FILE-FORMATS.md). Pictures and animated faces for the screen.
- [examples/ios](https://github.com/devniz/znp-re/blob/main/examples/ios). A Swift package (`Z01Kit`) and a small SwiftUI app wired to Claude.
- [examples/android](https://github.com/devniz/znp-re/blob/main/examples/android). The same in Kotlin.
- [tools/z01\_probe.py](https://github.com/devniz/znp-re/blob/main/tools/z01_probe.py). Drive the badge from your laptop with Python.

## Why build your own

With your own app, the badge can do anything your phone can do. A pocket assistant, a translator, a note taker, a remote for your smart home.

Meta's **Charm keychain**, an AI you wear, is scheduled to ship in December 2026. A Z01 and this repo get you the same idea today, with your model, your features and your data.

|  | BagiBagi | Your app |
| --- | --- | --- |
| AI model | fixed | Claude, another provider, or a local model |
| Features | chat | anything you can write as a tool |
| Animations | GIFs freeze | real animated faces |
| Privacy | vendor's servers | badge → your phone → the model you chose |
| Code | closed | open, MIT |

It's also easy to build on:

- **Nothing to flash.** The firmware stays stock, so you can't brick the badge.
- **Music keeps playing.** The mic comes over BLE as data, not as a phone call.
- **Any voice works.** The speaker is a normal Bluetooth audio output named "Z01".
- **Text streams live.** Answers appear on the screen while the model is still writing.

## Try it from your laptop

Turn the badge on and close the stock app on your phone, since only one app can hold the badge. Then, from the repo folder:

```
python3 -m venv .venv
```

```
.venv/bin/python -m pip install --upgrade pip
```

```
.venv/bin/pip install bleak
```

```
.venv/bin/python tools/z01_probe.py --text "Hello from my laptop"
```

The badge connects, unlocks and shows your text. Add `--listen`, press the badge button and talk, and the probe saves what the badge heard.

> **On a Mac,** upgrade pip on its own first, as above. The `python3` that ships with macOS has an old pip that tries to compile `pyobjc-core` and fails with *Cannot locate a working compiler*. Allow Bluetooth access for your terminal when asked.

## Build your own app

**iOS.** Follow [examples/ios](https://github.com/devniz/znp-re/blob/main/examples/ios). Create an app in Xcode, add the `Z01Kit` package, copy in the five Swift files from [examples/ios/QuickStart](https://github.com/devniz/znp-re/blob/main/examples/ios/QuickStart), paste your Anthropic API key and run. The core loop looks like this.

```
import Z01Kit

let badge = Z01()
let listener = Listener()               // speech to text, QuickStart/Listener.swift
let claude = Claude(apiKey: myKey)      // streaming client, QuickStart/Claude.swift

badge.onEvent = { event in
    switch event {
    case .buttonPressed:                // 1. the wearer presses the button
        listener.start { _ in }
        badge.startMic()
    case .micAudio(let pcm):            // 2. the badge streams what it hears
        listener.append(pcm)
    default:
        break
    }
}
badge.start()

// 3. when they stop talking (the QuickStart app waits for 1.2 s of silence)
func answer() async throws {
    badge.stopMic()
    badge.setScreen(.thinking)
    let question = listener.stop()
    badge.beginReply()
    for try await piece in claude.stream(system: "Answer in one short spoken sentence.",
                                         messages: [.init(role: "user", text: question)]) {
        badge.appendReply(piece)        // 4. the answer appears on the badge as it's written
    }
}
```

**Android.** Follow [examples/android](https://github.com/devniz/znp-re/blob/main/examples/android). Same structure in Kotlin, with the official Anthropic Java SDK.

**Anything else.** It's plain BLE, so Flutter, React Native, a Raspberry Pi or an ESP32 can drive the badge too. Start from [PROTOCOL.md](https://github.com/devniz/znp-re/blob/main/docs/PROTOCOL.md) and the Python probe.

## The protocol at a glance

|  | Channel | Bytes |
| --- | --- | --- |
| unlock | `AE01` / `AE02` | JieLi challenge-response, solved by reflecting the badge's own challenge |
| button pressed | ← `AE02` | RCSP op `FF`, `FF F7 F1 00` |
| open mic | → `AE01` | RCSP op `04`, `02 10 00` |
| voice | ← `AE02` | RCSP op `01`, Opus packets, 16 kHz mono, 20 ms |
| close mic | → `AE01` | RCSP op `05`, `00` |
| screen | → `AE01` | RCSP op `FF`, `FF F7 F1 02` replying, `03` listening, `04` thinking |
| text | → `DF98` | `88 88 11 01 …`, 2 characters per frame, acked on `DF99` |
| battery | → `AE01` | RCSP op `03`, `FF FF FF FF` |
| speaker | classic Bluetooth | a normal audio output named `Z01` |

Timings and gotchas are in [PROTOCOL.md](https://github.com/devniz/znp-re/blob/main/docs/PROTOCOL.md).

## Status

|  |  |
| --- | --- |
| Connect, unlock, button, mic, screens, text | works on real badges |
| Pictures and animation packs | works on real badges, documented here, no sample code yet |
| iOS `Z01Kit` | unit-tested, trimmed from the code our iOS apps run on real badges |
| iOS QuickStart app | compiles against the iOS SDK |
| Android quick start | a port, not yet compiled or tried on a badge |

Open questions are listed at the end of [PROTOCOL.md](https://github.com/devniz/znp-re/blob/main/docs/PROTOCOL.md#16-what-is-still-unknown).

## Contributing

Issues and pull requests are welcome, especially captures from other firmware versions, answers to the open questions, Android testing and ports to other platforms.

## Disclaimer

An independent interoperability project by owners of the device, not affiliated with ZNP, JieLi, Anthropic or Meta. No firmware was modified and no keys or encryption were extracted. Opinions about the stock app are our own. Use at your own risk.

## License

[MIT](https://github.com/devniz/znp-re/blob/main/LICENSE)
nzr_ldn10
🟧 echo.github ⭐The repository is the original artifact: its README describes reverse-engineering the ZNP Z01 badge’s Bluetooth protocol and provides code tdevniz——
🟧 hnMake your own Meta Muse / AI charm keychainnzr_ldn20

Interpretation history

Decision trace