JACOB ALLEN.Français Contact me
← All projects

Python · Codex

TokenFlex.

TokenFlex brings Codex usage statistics into a local dashboard: tokens, model breakdowns, quotas and estimated API-equivalent costs. Data stays on my computer.

Platform
Local web app · Python 3.9+
Availability
Public code
Technologies
Python · SQLite · JavaScript · CodexBar
TokenFlex dashboard with fictional Codex statistics
Demonstration with entirely fictional data.

The project

My Codex activity at a glance.

Understand usage

The dashboard shows token usage and model breakdowns across several periods: today, seven days, thirty days, the current month or the full history. Subscription quotas and reset history complete the overview.

Put estimates in context

TokenFlex uses CodexBar reports to display estimated API-equivalent costs in US dollars. These estimates are neither an additional bill nor a conversion of subscription quotas. The daily cost and the period average are shown separately.

Keep data local

A Python launcher opens the web interface on a local address. Aggregates and quotas are stored in SQLite. The project uses Python without external Python dependencies, a JavaScript interface and a separately installed CodexBar. Available history depends on local logs and may not cover other devices.

Keep exploring

More ideas.
More projects.

All projects