Skip to content

[Bug]: models status states "Day" but displays weekly usage for openai-codex #29783

@shulshof

Description

@shulshof

Summary

The openclaw models command shows "Day X% left" but the data is actually weekly usage from OpenAI's codex dashboard.

Steps to reproduce

  1. Run openclaw models status
  2. Compare output to OpenAI usage dashboard https://chatgpt.com/codex/settings/usage
  3. Notice the openclaw cli label says "Day" but the percentage matches weekly usage on the OpenAI Dashboard, not daily

Expected behavior

The openclaw models status should show weekly instead of day

Example of expected output:

- openai-codex usage: 5h 100% left ⏱3h 55m · Weekly 86% left ⏱5d 0h
  - openai-codex:default ok expires in 24h

### Actual behavior

Currently showing *Day* instead of *Week*

```OAuth/token status
- openai-codex usage: 5h 100% left ⏱4h 52m · Day 86% left ⏱5d 1h
  - openai-codex:default ok expires in 25h

### OpenClaw version

2026.2.26

### Operating system

Ubuntu

### Install method

npm global

### Logs, screenshots, and evidence

```shell
$ openclaw models
<snip>
OAuth/token status
- openai-codex usage: 5h 100% left ⏱3h 55m · Day 86% left ⏱5d 0h
  - openai-codex:default ok expires in 24h

Impact and severity

Affected: cli
Severity: annoying
Frequency: Always
Consequence: misrepresent usage limits of openai-codex oauth

Additional information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions