codex_status
Confirm the CLI is installed and authenticated, and check cached quota data to decide if you can run a paid call.
Instructions
Check that the codex CLI is installed, authenticated, and a supported
version, and report the resolved defaults. Free — no model call. Call this
first when a run fails with a setup error.
Also reports a rate_limit block — how much of the Codex 5-hour (primary) and
weekly (secondary) quota windows remains, captured from your last paid Codex call
(a cached snapshot, not a live query). Use it to decide whether to spend: available
is deliberately conservative (only when both windows are observed and healthy);
limited/exhausted are reasons to defer non-urgent Codex calls; unknown means no
fresh/usable reading (run any paid Codex call to populate it), not that anything is wrong.
is_stale/as_of show freshness; home_unverified flags a snapshot from a different
CODEX_HOME.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes |