Skip to content

sudoHG/codex-reset-credits-skill

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

codex-reset-credits-skill

sudoHG-codex-reset-credits-skill visitor counter

简体中文

codex-reset-credits-skill packages a Codex Skill named codex-reset-credits.

It lets Codex query banked Codex reset credits from the local Codex Desktop login state and report available count plus expiration times. The query is local-first and read-only: it reads ${CODEX_HOME:-~/.codex}/auth.json, calls the ChatGPT backend reset-credit endpoint, and prints only sanitized output.

This project is unofficial and is not affiliated with OpenAI.

Use With Codex

Send Codex this file:

https://github.com/sudoHG/codex-reset-credits-skill/blob/main/USE_WITH_CODEX.md

Then ask:

Check my Codex reset credits and expiration times.

Codex should read the runbook, run the script locally, and return a clean summary table.

Install As A Codex Skill

Copy the Skill folder into your Codex skills directory:

mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
cp -R codex-reset-credits "${CODEX_HOME:-$HOME/.codex}/skills/codex-reset-credits"

Restart Codex or open a new Codex session. Then ask:

Check how many Codex reset credits I have left and when they expire.

Direct CLI

python3 codex-reset-credits/scripts/query_reset_credits.py --human
python3 codex-reset-credits/scripts/query_reset_credits.py --json

Example --human output:

Codex reset credits

| Summary | Value |
| --- | --- |
| Available reset credits | `3` |
| Earliest expiration | `2026-07-16 15:51:44 CST` |

| # | Status | Type | Expires local | Expires UTC | ID suffix |
| --- | --- | --- | --- | --- | --- |
| 1 | `available` | `codex_rate_limits` | 2026-07-16 15:51:44 CST | 2026-07-16 07:51:44 UTC | `c60e4307` |

Safety Boundaries

  • Do not paste tokens into Codex.
  • The script reads local Codex Desktop auth state.
  • The script must not print access tokens, full auth.json, full account ids, full credit ids, or raw backend responses.
  • The script does not redeem reset credits.
  • The script does not call mutation or control endpoints.
  • The backend endpoint is not a public stable API; auth or response shape may change.

Validate

python3 -m unittest discover -s tests -v
python3 ~/.codex/skills/.system/skill-creator/scripts/quick_validate.py codex-reset-credits

License

MIT.

About

Codex Skill and runbook for querying banked Codex reset credits / Codex 重置机会过期时间查询Skill,可以安装后查询,也支持不安装一次性查询

Topics

Resources

License

Stars

61 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages