WhatsLeft — Codex limits, always on deck
macOS only

If you're running Codex sessions regularly, you already know what it's like to hit a limit mid-task. WhatsLeft puts the gauge on your deck so you're never caught off guard. No sign-in, no account to configure — it reads the same file the Codex CLI already wrote.

Five actions, one plugin

Session

Your 5-hour rolling usage window.

Weekly

Your 7-day rolling window.

Overview

Both session and weekly on one key.

Status

Live Codex CLI service status — green, degraded, or outage at a glance.

API Credits

Your OpenAI API spending this month. Set a budget to track remaining balance.

What it does

  • Four display modes — Gauge (arc), Bar (horizontal fill), Solid (full-key color), or Vertical bar (side column with large % readout). Switch per key from the Property Inspector.
  • Color-coded gauge — purple means healthy, red means under 20% remaining. The color tells you what you need to know before you read a number.
  • Reads from ~/.codex/auth.json — no separate sign-in inside the plugin. It uses the credentials the Codex CLI already stored.
  • All three actions share one connection — connect once from any key's Property Inspector, done for all.
  • Tap to open usage page — opens chatgpt.com/codex/cloud/settings/usage in your browser.
  • Hold to refresh — skips the polling interval and fetches immediately.
  • API Credits tracker — connect an OpenAI Admin API key to see your monthly spend on a dedicated key. Optionally enter a budget to show remaining balance instead. Turns red below 20%.

Who it's for

Engineers using Codex for code tasks

When you're in the middle of an agentic Codex run, knowing you're at 12% session means you decide whether to finish the task or split it — not lose the context when it cuts out.

Anyone running Codex in agentic mode

Agentic tasks burn tokens fast. The weekly gauge gives you a horizon — how much is left before the window resets.

Getting set up

  1. Install the Codex CLI and run codex once in your terminal to log in. This writes ~/.codex/auth.json.
  2. Install WhatsLeft from the Marketplace and drag whichever actions you want onto your keys.
  3. Open any key's Property Inspector → Connect to Codex. Configure once; all three usage actions share the connection.
  4. Optional — API Credits: drag the API Credits action onto a key, paste an OpenAI Admin API key (sk-admin-*) from platform.openai.com → Admin Keys, and click Connect.

Good to know

Key shows "Setup needed"

Codex isn't installed or not logged in. Run codex in your terminal to complete login, then click Connect to Codex in the Property Inspector.

Plugin shows nothing after login

The auth.json file must contain both tokens.access_token and tokens.account_id. If either is missing, sign out of Codex and log in again by running codex in your terminal.

My auth.json is in a non-default location

Open the Property Inspector → Advanced settings, and set a custom path to your auth.json file.

"Token expired"

Run codex in your terminal to refresh. The plugin picks up the new token on its next poll. If it doesn't, click Connect to Codex again or use Reset auth from the Property Inspector.

API Credits: how do I connect?

Drag the API Credits action onto a key, open its Property Inspector, and paste an OpenAI Admin API key (starts with sk-admin-). Create one at platform.openai.com → Admin Keys. Click Connect. The key shows your spending for the current month. Hold the key for 600ms to force a refresh. You must be an org owner to create admin keys.

API Credits: shows "OK / key valid" but no dollar amount

You connected a project key (sk-proj-*). Only Admin API keys (sk-admin-*) can access the spending endpoint. Go to platform.openai.com → Admin Keys, create an admin key, disconnect, and reconnect.

API Credits: how does "remaining balance" work?

OpenAI doesn't expose a credit balance endpoint via API. The plugin shows spending instead. To see how much you have left, enter your total credits in the Budget field in the Property Inspector — the key then shows remaining = budget − spent and turns red when below 20%. Update the budget field whenever you top up.

View in Marketplace →