whatisgithub

What is codex-micro-4-core2?

imliubo/codex-micro-4-core2 — explained in plain English

Analysis updated 2026-05-18

36C++Audience · developerComplexity · 3/5LicenseSetup · moderate

In one sentence

Unofficial firmware that turns an M5Stack Core2 touchscreen board into a Bluetooth controller for ChatGPT Desktop's Codex Micro feature.

Mindmap

mindmap
  root((Codex Micro Core2))
    What it does
      BLE controller
      Touchscreen UI
      Codex Micro compatible
    Tech stack
      C++
      PlatformIO
      M5Stack Core2
    Use cases
      Control AI tasks
      Approve or decline requests
      Push to talk
    Audience
      ChatGPT Desktop users
      Hardware hobbyists
    License
      MIT

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Turn an M5Stack Core2 board into a physical Bluetooth controller for ChatGPT Desktop's Codex Micro.

USE CASE 2

Approve, decline, or fork an AI agent task with physical touchscreen buttons instead of the keyboard.

USE CASE 3

Use a rotating dial and directional touch controls to navigate ChatGPT Desktop's Codex Micro interface.

USE CASE 4

Study the project's BLE HID and JSON-RPC implementation as a reference for building similar hardware controllers.

What is it built with?

C++PlatformIOArduinoM5Stack Core2

How does it compare?

imliubo/codex-micro-4-core2vmx7/rust_pdbendermo/poggetcore
Stars363637
LanguageC++C++C++
Setup difficultymoderatemoderatehard
Complexity3/55/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · moderate Time to first run · 30min

Only tested on macOS with an M5Stack Core2, PlatformIO, and ChatGPT Desktop's Input Monitoring permission.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

So what is it?

This project is firmware, meaning software that runs directly on a piece of hardware, that turns an M5Stack Core2, a small touchscreen development board, into a Bluetooth controller for a feature called Codex Micro inside the ChatGPT desktop app. It is an independent, unofficial project, not made or supported by OpenAI, the maker of the original Codex Micro keyboard, or M5Stack, and it works by mimicking an undocumented Bluetooth protocol that could stop working if ChatGPT Desktop changes. Once flashed onto the device, the Core2's touchscreen shows six programmable Agent Keys used to pick which AI task is active, six Command Keys with default actions like approving or declining a request, forking into a new task, or holding to talk, plus four directions that act like a joystick and a rotating dial with press and hold actions. The exact behavior of these buttons is configured inside ChatGPT Desktop itself rather than on the device, and the screen shows colored borders and simple animations to reflect task status sent from the computer. The device also reports its battery level to the paired computer over Bluetooth. The setup requires an M5Stack Core2 board, a USB-C cable capable of data transfer, and a tool called PlatformIO to build and upload the firmware, plus ChatGPT Desktop with Codex Micro support running on macOS, since that is the only operating system the author tested. After flashing, pairing is done through the normal macOS Bluetooth settings, followed by granting the ChatGPT app permission to monitor input and choosing the button mappings inside its settings. The project only handles the Bluetooth connection to the host computer, it does not connect to the internet itself, and it does not capture or use the Core2's own microphone. The project's documentation is upfront about several limits: it currently supports only macOS, only one Bluetooth connection at a time, and it does not attempt to recreate the original Codex Micro keyboard's USB mode, physical keys, per-key lighting, or firmware update system. It is written in C++ and its code is released under the MIT license.

Copy-paste prompts

Prompt 1
Walk me through flashing this firmware onto my M5Stack Core2 using PlatformIO.
Prompt 2
Help me pair the Core2 running this firmware with ChatGPT Desktop on macOS and grant Input Monitoring.
Prompt 3
Explain what each of the six Command Keys does by default in ChatGPT Desktop's Codex Micro.
Prompt 4
Show me the BLE HID and JSON-RPC architecture this project uses to talk to ChatGPT Desktop.

Frequently asked questions

What is codex-micro-4-core2?

Unofficial firmware that turns an M5Stack Core2 touchscreen board into a Bluetooth controller for ChatGPT Desktop's Codex Micro feature.

What language is codex-micro-4-core2 written in?

Mainly C++. The stack also includes C++, PlatformIO, Arduino.

What license does codex-micro-4-core2 use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is codex-micro-4-core2 to set up?

Setup difficulty is rated moderate, with roughly 30min to a first successful run.

Who is codex-micro-4-core2 for?

Mainly developer.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.