English | 简体中文
A lightweight Android quota dashboard for Codex and other AI providers.
CodexMeter is an unofficial Android app for keeping an eye on official quota usage across Codex and other AI providers, from the home screen, the app dashboard, and a low-noise persistent notification.
| Home | Widget | Account | Settings |
|---|---|---|---|
![]() |
![]() |
![]() |
![]() |
- Official usage / quota / balance API data only.
- Quota windows shown as percentage, balance, usage count, or per-model buckets.
- Automatic currency conversion for balance providers (keeps the native amount).
- Home dashboard with a provider-adaptive hourly usage trend chart.
- Resizable Jetpack Glance home-screen widget.
- Persistent status notification labeled with the provider and account, plus per-account quota alerts.
- "Needs re-login" detection that notifies you.
- Multiple saved accounts with a single current account, and per-account quota alert toggles.
- Local history retention and history clearing.
| Provider | Sign-in |
|---|---|
| Codex | Device-code authorization (external browser) |
| Claude | OAuth sign-in (in-app WebView) |
| Antigravity | Google OAuth sign-in (in-app WebView) |
| DeepSeek | API key |
| z.ai | API key |
| MiniMax | API key |
| Cursor | Cookie capture (in-app WebView) |
| Kimi | Cookie capture (in-app WebView) |
Grab the latest signed APK from the GitHub Releases page:
→ Download the latest release (all releases)
- On your Android 12+ device, open the release and download the
.apkasset. - When prompted, allow your browser or file manager to "install unknown apps".
- Open the downloaded APK and tap Install.
- Launch CodexMeter and add an account to start tracking quota.
The app checks GitHub Releases for newer versions from the Settings screen; it never auto-installs and requests no storage permission.
CodexMeter keeps sensitive data on the device.
- OAuth sessions are encrypted with Android Keystore-backed AES-GCM.
- Raw tokens, cookies, auth codes, full callback queries, raw usage responses, and complete
auth.jsoncontent must never be logged, shown, or committed. - There is no cloud sync, analytics SDK, remote logging, ad SDK, or third-party quota proxy.
- Kotlin
- Jetpack Compose + Material 3
- StateFlow + ViewModel
- Room
- DataStore
- WorkManager
- Jetpack Glance
- OkHttp + kotlinx.serialization
- Android Keystore + AES-GCM
- Hand-written
AppContainer
Requirements:
- Android Studio with Android SDK support
- JDK 17
- Android 12+ device or emulator
Build a debug APK:
./gradlew assembleDebugRun unit tests:
./gradlew test
./gradlew :app:testDebugUnitTestInstall the debug APK with adb:
adb install -r app/build/outputs/apk/debug/app-debug.apkParsing of some providers' usage/quota responses references the steipete/CodexBar project.
MIT License. See LICENSE.
CodexMeter is an unofficial project and is not affiliated with OpenAI. Use it with your own account and follow the relevant service terms.




