Skip to content

OpenAI quota shows Nothing reported for a 30-day usage window #525

Backlog

Description

@Bearmancer

In one sentence, what do you see?

OpenAI shows "Nothing reported" even though the account has an active 30-day quota window.

Which OpenCode do you use?

OpenCode 2

Your OpenCode version

2.4.1

Your plugin version

6.3.0

What went wrong?

Expected a Monthly quota row for OpenAI; got "Nothing reported" and exit code 1. The usage API answers with one window of 2592000 seconds (30 days), but only 2628000 seconds is recognized as a month, so the whole window is dropped.

Before (upstream main) and after (the fix), same fixture and command:

before: OpenAI Nothing reported
after: OpenAI (Pro) Monthly 90% left

How can we make it happen?

  1. Use an OpenAI plan whose usage window lasts 30 days (2592000 seconds).
  2. Run opencode-quota show --provider openai.
  3. See OpenAI Nothing reported instead of a Monthly row.

No real 30-day account was available, so this was reproduced with the packaged CLI against a stubbed usage reply carrying one 2592000-second window (10% used, plan pro); the captures above are that run.

Paste what /quota_status shows (optional)

openai:
- state: error: Nothing reported (no_data)
- rows: 0
- auth_configured: true
- token_status: valid
- error_kind: no_data

Prior art: #345 carried this same one-line fix among three changes; its author closed it as opened against the wrong repository.

Update (2026-11-25)

Linked PR #526

Activity

  1. added
    needs info
    on Nov 25, 2026
  2. github-actions commented on Nov 25, 2026

    @github-actions
    Contributor

    Thanks for opening this! This issue was not made with one of our forms, so we added the needs info label.

    Please open a new issue with a form: https://github.com/slkiser/opencode-quota/issues/new/choose. The forms ask for the details we need to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs info

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions