CoAgent8 - Source API
    Preparing search index...

    Function readCodexRateLimits

    • Reads the signed-in account's Codex rate-limit windows, without a thread or a model call.

      Parameters

      • command: string

        The Codex executable.

      • Optionalcontext: BackendReadContext

        Optional cancellation and deadline context (EXEC-001-T08c).

      Returns Promise<
          | {
              buckets?: {
                  id: string;
                  name: string;
                  remainingFraction: number;
                  resetTime: string;
                  window: string;
              }[];
              headroomPercent?: number
              | null;
              measured: boolean;
              resetsAt?: string | null;
              usedPercent?: number | null;
              window?: string;
          }
          | undefined,
      >

      The measured quota, or undefined when the server answers with an error (for example API-key sign-in without ChatGPT limits) or does not answer in time.