Skip to main content

Codex Passport

Codex session notifications and quota visualization on FoloToy AI Passport, with an Android companion.

从零开始:中文一步步入门 · 中文介绍 · Python / uvx guide · Downloads

Passport graphical quota dashboard

Synthetic quota fixture rendered on the physical device; no account or conversation data.

What it does

  • Computer → encrypted BLE → Passport, or computer → private LAN/WireGuard → Android → encrypted BLE → Passport.
  • Meaningful completion, failure, interruption, approval and input notifications across local Codex sessions. Starts and housekeeping update silently; internal guardian/memory workers are excluded.
  • Durable delivery queue, device acknowledgements, offline replay, and one active BLE sender with phone fallback.
  • Remaining quota compared with remaining cycle time. Orange means faster consumption, green balanced, blue slower.
  • Native 240×320 Passport dashboard and physical-button controls. Material 3 Expressive Android overview, notification and connection pages.

Phone notifications show bounded titles and summaries for the four most recent sessions. Passport receives quota, counts and receipt IDs, with no conversation text. This version does not resume conversations, send replies or approve actions. Those stay in Codex. Hooks need existing sessions to restart after installation; incremental logs are a compatibility fallback, not a stable API or Codex Mobile push integration. Other computers need their own collectors.

Get started

The beginner guide covers tool installation, backup/app-only flashing, APK installation without ADB, relay configuration, pairing, a real notification test, startup, switching, troubleshooting and removal. It uses the verified macOS + Android + Passport setup. Linux host deployment needs platform adaptation; Windows host deployment has not been validated.

Download the ready-made Android APK and Passport firmware v0.1.0. Python 0.1.1 is a documentation/packaging update compatible with those device files; no device reinstall is needed for this update. The APK is debug-signed. Back up the device before flashing and write only the app at 0x10000 on the documented hardware layout, preserving its other partitions.

Python installation

Requires Python 3.10+ and a working, logged-in Codex CLI. Install uv, then try:

uvx --from 'codex-passport-sync==0.1.1' codex-passport --help

For persistent hooks, install a persistent tool environment instead:

uv tool install 'codex-passport-sync[ble]==0.1.1'
uv tool update-shell

Open a new terminal, then:

codex-passport install-hooks
export COMPUTER_LAN_IP="replace-with-this-computers-private-IP"
codex-passport serve --host "$COMPUTER_LAN_IP" --port 18765

Keep that terminal open. Configure Android's Connection page with http://YOUR_COMPUTER_IP:18765 and the contents of ~/.local/state/codex-passport/relay-token. Allow Bluetooth permissions and enter the current six-digit Passport code in the phone's system pairing dialog. Restart existing Codex sessions to load the hooks. The address is the relay API, not wireless ADB or a WireGuard endpoint.

Add --ble "Passport-XXXXXX" using your device's actual advertised name for computer BLE. First pairing requires the computer's OS dialog and Bluetooth permission. The [ble] extra is required for this route. Select the sender on Android's Connection page; a failed computer connection falls back to the phone and stays there until selected again. Do not install permanent hooks from a temporary uvx environment, whose cache can be removed.

PyPI package · Wheel downloads · All installation options and state paths

Daily controls and scope

Control Result
UP / DOWN Switch quota windows
Short OK while awake Mark received notifications read; never approve an action
First press while asleep Wake only
Hold OK while awake Reconnect BLE, preserving bonds

The backlight sleeps after 60 seconds without alerts/buttons. Daily BLE frames contain no conversation text. An authenticated private relay and paired BLE protect access; bounded phone summaries can still contain private context. Keep the relay within your private network/VPN. Do not expose its HTTP port publicly. The computer must stay awake and run the collector.

Both BLE routes, route switching, replay and physical controls were validated. Off-LAN WireGuard and battery endurance were not measured. See the validation record for the exact evidence and limitations.

Development and attribution

Build instructions · MIT license · Third-party notices

Application code is independently authored. Official FoloToy BSP, Material Components and other dependencies retain their own licenses. The reference application was studied, not copied. This is a community project, not an official OpenAI or FoloToy product.

Metadata

Release files for codex-passport-sync 0.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for codex-passport-sync 0.1.1
File Size Uploaded
codex_passport_sync-0.1.1.tar.gz 88.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for codex-passport-sync 0.1.1
File Interpreter ABI Platform
codex_passport_sync-0.1.1-py3-none-any.whl Python 3 none any Details

Total release size: 109.8 kB

Release files / codex_passport_sync-0.1.1.tar.gz

Download URL codex_passport_sync-0.1.1.tar.gz
Size 88.3 kB
Tags Source
SHA-256 checksum
How to use checksums
6e70dbce61270c35f020bd24ef79ba8ded15c96a290e79696bcf5e6ea4f76d99
BLAKE2b-256 checksum
How to use checksums
0187e9023a96d516b0cb29bdc1d663b962cf583146f60991f98e9951b987f39a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / codex_passport_sync-0.1.1-py3-none-any.whl

Download URL codex_passport_sync-0.1.1-py3-none-any.whl
Size 21.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
04efeeccb6846f6542b7bb3c3fb38f7772617917cc7a9be52ae95097d9833331
BLAKE2b-256 checksum
How to use checksums
f1ae9b04366bb400bfaa20ba6e85fa516eacdccd5fc658021e26572778d1d55d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

0.3.1

2 release files

0.3.0

2 release files

0.2.0

2 release files

This release

0.1.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page