Skip to content
Back to skills

Openai Usage

ASecurity

Report current OpenAI usage/rate-limit health from Codex ChatGPT limits.

  • 57 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added October 17, 2026
ai-agentsnode

Security analysis

A100/100

Scanned October 17, 2026

npx -y skills add diegosouzapw/awesome-omni-skill --skill openai-usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Openai Usage?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Openai Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/diegosouzapw-openai-usage/badge)](https://www.skillsdirectory.com/skills/diegosouzapw-openai-usage)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: openai-usage
description: Report current OpenAI usage/rate-limit health from Codex ChatGPT limits.
---

# OpenAI Usage Skill

Use this skill when the user asks things like:
- "what is my OpenAI usage at?"
- "show my OpenAI limits"
- "how much OpenAI budget do I have left?"

## Command

- Human-readable output:
  - `node skills/openai-usage/check-openai-usage.js`
- JSON output:
  - `node skills/openai-usage/check-openai-usage.js --json`

## Data Source

- Codex app-server `account/rateLimits/read` (ChatGPT mode)
- No manual fallback. If Codex rate limits are unavailable, return an actionable error.

## Behavior

- Reports 5-hour and weekly remaining percentages.
- Computes one health stage (`healthy`, `medium`, `low`, `critical`) using separate 5-hour and weekly thresholds.
- Stage rules:
  - `critical` if 5-hour <= 10% OR weekly <= 10%
  - `low` if 5-hour <= 25% OR weekly <= 20%
  - `medium` if 5-hour <= 50% OR weekly <= 30%
  - otherwise `healthy`

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.