# Codex Usage Tray — Live Quota Circles

> Two circles in the Windows notification area show the Codex 5-hour and weekly quota you have left. Hover for the exact percentage and local reset time. Refreshes every 30 seconds, green/orange/red at a glance. Windows 10/11, uses your existing Codex CLI login.

Codex Usage Tray — Live Quota Circles is a paid AI agent skill on Agensi by Frica Chai, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $7 (one-time purchase)
- Creator: [Frica Chai](https://www.agensi.io/creators/frica-chai)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-11-20
- Security: scan passed (2026-11-19); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/codex-usage-tray-live-quota-circles
- Tags: productivity, automation, llm-ops, codex, quota, usage, tray, windows

## About this skill

Codex shows your remaining quota inside the app. This skill puts the same two numbers in the Windows notification area, so you can see them without opening anything.

### What it does

- Adds two small circles to the notification area: the 5-hour window on the left, the weekly window on the right.
- Draws the remaining percentage inside each circle.
- Refreshes every 30 seconds.
- Shows the reset time in your local time zone on hover.
- Turns green above 50%, orange at 21–50%, and red at 20% or below.
- Turns gray and says so when the quota cannot be read.

### How it works

1. The installer compiles a native windowed EXE into `%LOCALAPPDATA%\CodexUsageTray`.
2. Every 30 seconds the widget starts `codex app-server --listen stdio://` as a short-lived child process.
3. It sends `initialize` and `account/rateLimits/read` over stdio.
4. It maps `windowDurationMins` 300 to the 5-hour circle and 10080 to the weekly circle.
5. It displays `100 − usedPercent` and converts `resetsAt` from Unix seconds to local time.

Only the child process started for that refresh is closed. Your other Codex sessions are not touched.

### What you get

- `SKILL.md` — agent instructions.
- `README.md` — setup, options, troubleshooting.
- `NOTICE.md` — licence notice.
- `Install-CodexUsageTray.ps1` — a self-contained installer with the widget source embedded.

No EXE is shipped. The executable is built on your own machine from readable C# source.

### Requirements

- Windows 10 or 11.
- .NET Framework 4.x (the C# compiler ships with Windows).
- Codex CLI installed.
- A ChatGPT account signed in through `codex login`.
- PowerShell 5.1 or later.

### Verification

A run is complete only when:

- both circles are visible in the notification area;
- each tooltip contains the label, a percentage, and a reset time;
- the percentage equals `100 − usedPercent` for the matching window;
- a refresh 30 seconds later still shows values, not `暫時無法取得`.

If the CLI cannot read the account, both circles go gray. The widget never shows an invented number.

### Limitations

- Windows only. macOS and Linux are not supported.
- It shows the two quotas the Codex account already exposes. It does not report cost, per-project usage, or history.
- Quota endpoints belong to OpenAI and can change. A future Codex CLI update may require a new version of this skill.
- On Windows 11 new tray icons usually start in the overflow menu; drag them onto the visible taskbar once.

### Privacy

The widget writes one file, `%LOCALAPPDATA%\CodexUsageTray\codex-path.txt`, containing the path to `codex.exe`. It keeps no history, sends nothing to the author, and adds no telemetry. Quota requests use your own Codex CLI login; this package never sees or stores credentials.

## Requires

- Runs on Windows only
- .NET Framework 4.x
- Codex CLI signed in with ChatGPT
- PowerShell 5.1+

Codex CLI must be installed and signed in with codex login before the first run. The installer compiles the widget locally with the C# compiler that ships with Windows.

## Known limitations

Requires Windows 10/11, PowerShell 5.1+, and .NET Framework 4.x. Codex CLI must be installed and signed in. Icons may hide in the overflow menu by default.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Codex Usage Tray — Live Quota Circles skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### How does the Codex Usage Tray improve my daily workflow?

This skill solves the 'tab-switching' problem by placing two live, color-coded icons in your Windows system tray that show your 5-hour and weekly usage percentages at a glance.

### What are the system requirements for this skill to work?

The skill is designed for Windows 10 and 11 environments and requires the Codex CLI to be installed and authenticated on your machine to fetch your account data.

### How frequently does the usage data refresh?

The tray widget asks the local Codex App Server for your quotas every 30 seconds, so the percentages follow the same figures the Codex app shows. If a read fails, both circles turn gray instead of showing a stale number.

### What exactly am I getting with this purchase?

You get SKILL.md, README.md, NOTICE.md, and one self-contained PowerShell installer. The widget's C# source is embedded in that installer, so you can read it before running it. No EXE is shipped; it is built on your machine.

### Can I set the tray widget to start automatically when I turn on my computer?

Yes, during the setup process, the skill provides an option to configure the application to launch automatically whenever you sign into Windows.

### What do the different colors of the tray icons indicate?

The icons use a traffic-light system: Green for high availability, Orange when you are nearing your limit, and Red when your quota is nearly exhausted or depleted.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
