cyberneticlibrary

Monitor OpenAI Codex API costs

codex-hudpluginsetup L23,035
davepoon/buildwithclaude
What it does

Display OpenAI Codex API usage and costs in HUD

Best for

Teams using OpenAI Codex who need quick inline visibility to daily/weekly/monthly costs without switching to OpenAI dashboard.

Inputs
  • · OpenAI API key (setup phase)
  • · time range (today/week/month)
Outputs
  • · usage count by day/week/month
  • · cost breakdown
  • · summary dashboard
Requires
  • · OpenAI Codex API
Preconditions
  • · valid OpenAI API key configured
  • · Codex API active on account
  • · usage logged by OpenAI backend
Failure modes
  • · API key invalid or expired — usage queries return 403
  • · OpenAI backend lag — reported usage lags actual by hours
  • · HUD display space too small — cost numbers truncate
Trust signals
  • · direct OpenAI API integration
  • · time-range filtering (day/week/month granularity)