Harness Notes

Commands

Updated 2026-11-25,

On this page

The command for each task, in each harness. Pick what you are working with, then read across: commands you type in your shell or a script and commands you type inside an open session are listed separately. Commands for renaming sessions are on Thread naming and importing from another harness on Migration.

Inside a session

Slash commands you type into an open session.

TaskCodex CLIchecked at 0.162.1
Use
Show details

/usage [daily|weekly|cumulative]

View account usage analytics, or redeem a usage-limit reset.

1 note

Redeeming consumes a reset. Requires ChatGPT sign-in.

Programmatic retrieval

Quota, activity and spend have different units and account scopes. These findings describe source or documentation; account retrieval has not been runtime verified.

Codex CLI: Quota windows

account/rateLimits/read

App Server JSON-RPC · quota · client-protocol · source-inspection, checked 2026-10-22 · 0.163.0

Requires auth backed by Codex services: managed/external ChatGPT tokens, header auth, Agent Identity or personal access token pass the source gate. API-key-only and Bedrock auth do not. Backend entitlement remains separate.

  • rateLimitsByLimitId.*.primary.usedPercent — rounded integer percent consumed
  • rateLimitsByLimitId.*.secondary.usedPercent — rounded integer percent consumed
  • rateLimitsByLimitId.*.*.windowDurationMins — minutes; nullable
  • rateLimitsByLimitId.*.*.resetsAt — Unix seconds; nullable
  • ordinaryUsageAllowed — boolean; nullable; backend permission
  • rateLimitsByLimitId.*.credits.balance — opaque string; nullable; currency/unit not established

Initialize the App Server connection first. Passive readers can send params {"excludeResetCreditDetails":true}; omit supportsLunaReserve or leave it false. That capability opt-in can record experiment exposure.

Use the multi-bucket map when present. The legacy rateLimits field selects codex or the first returned bucket. Primary and secondary windows are optional; read their durations instead of assuming fixed 5-hour/weekly periods.

Remaining percentage is a derived display value (100 minus usedPercent), not an absolute token allowance. Missing values mean unknown. Do not infer permission to resume from percentages or a reset time.

account/rateLimits/updated is a sparse notification produced during session activity, not a guaranteed polling feed. Merge available values by bucket or refetch; retain account metadata omitted by updates.

Client source does not establish a public REST contract or hosted service internals. No account request was run.

Codex CLI: Account token activity

account/usage/read

App Server JSON-RPC · activity · client-protocol · source-inspection, checked 2026-10-22 · 0.163.0

Requires auth backed by Codex services: managed/external ChatGPT tokens, header auth, Agent Identity or personal access token pass the source gate. API-key-only and Bedrock auth do not. Backend entitlement remains separate.

  • summary.lifetimeTokens — tokens; nullable
  • summary.peakDailyTokens — tokens; nullable
  • summary.longestRunningTurnSec — seconds; nullable
  • summary.currentStreakDays / longestStreakDays — days; nullable
  • dailyUsageBuckets[].startDate — date string
  • dailyUsageBuckets[].tokens — tokens

With no threadId, reads a backend profile; activity totals do not report remaining plan quota or authoritative invoiced spend.

An optional threadId selects a different response branch with threadUsage and estimated cost fields in micros. Thread usage 403/404 yields null; it is not proof of zero usage.

Summary fields and dailyUsageBuckets may be null. No account request was run.

Notes and sources

Codex CLI
  • The shell CLI installs and removes plugins but has no enable, disable, update or validate command; the /plugins browser can switch plugins on or off.
  • --worktree starts new sessions in a managed Git worktree and works with codex fork given an explicit session; resume, queue, archive, unarchive and delete reject it at run time.
  • MCP protocol capabilities are recorded in mcp.json; these records cover the operator commands.
  • 0.164.0 TUI: /presets opens ten numbered reusable-input slots (1–9 and 0) for prompts/slash commands, with a keyboard menu and saving through local settings. It is not a skill or model-callable tool.
  • 0.164.0 TUI: /model [model] --reasoning=<level> --speed=<tier> validates available model/effort/tier choices before applying session settings. /permissions <profile-id> [--approval-policy=<policy>] [--reviewer=user|auto_review] discovers and validates the selected permission profile before releasing queued input. These commands are distinct from CLI launch flags.
  • 0.166.0 adds codex doctor --network-only, which runs only the config, network environment, provider HTTP and Responses WebSocket checks.