Skip to content

[Upstream tracking] Expose Grok 4.6 through xAI OAuth when the upstream model contract is available #1549

Description

@federicorv25

Status

Blocked on upstream model availability and contract details.

This is now an upstream-tracking issue rather than an implementation-ready feature request.

OpenCodex should not guess a Grok 4.6 OAuth/CLI model slug, context window, reasoning controls, modality support, tool support, or other catalog metadata before xAI exposes and confirms them through the relevant authenticated Grok/xAI surface.

Goal

When Grok 4.6 becomes available to an authenticated xAI/Grok OAuth account, expose it through the existing OpenCodex xAI OAuth workflow so Codex App and Codex CLI users can select it without requiring a separate xAI API-key provider.

The desired flow remains:

ocx login xai
        ↓
OpenCodex discovers or recognizes upstream Grok model
        ↓
/v1/models + generated Codex catalog
        ↓
xai/<confirmed-upstream-slug>

Upstream gate

Implementation should begin only after there is reliable evidence for the OAuth/CLI-backed model contract.

At minimum confirm:

  • the model is actually available to the authenticated Grok/xAI account surface used by OpenCodex;
  • the exact upstream model identifier;
  • whether discovery returns the model dynamically or a maintained fallback entry is required;
  • context-window metadata;
  • reasoning controls/effort values;
  • image/input modality support;
  • tool/function-call behavior;
  • streaming behavior;
  • quota/account eligibility semantics that differ from Grok 4.5, if any.

Public xAI API availability alone is not sufficient if the OAuth/Grok CLI-compatible transport used by this issue exposes a different catalog or entitlement boundary.

Expected OpenCodex behavior once unblocked

  • ocx login xai continues to own authentication for the xAI OAuth provider.
  • The confirmed Grok 4.6 model is discovered or represented with verified metadata.
  • The model appears in /v1/models and the generated Codex catalog.
  • Codex App/CLI can select the namespaced xAI model.
  • Requests use the existing xAI OAuth/Grok-compatible transport when that upstream surface supports the model.
  • Existing Grok 4.5 behavior does not regress.
  • Unsupported capabilities are not advertised merely because another Grok version supports them.

Do not implement by guessing

Do not:

  • hard-code grok-4.6 only because that name is expected;
  • copy Grok 4.5 capability metadata without upstream evidence;
  • treat a custom-provider/API-key workaround as proof that the OAuth route supports the same model;
  • advertise a model before the authenticated upstream can actually invoke it.

Close condition

Close when the model is available through the intended xAI OAuth account flow and OpenCodex exposes it with verified routing/catalog behavior.

If xAI confirms that this model will not be available through the OAuth/Grok account transport, close as not planned and document the supported alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    account-poolOAuth, credentials, Codex pool, quota, failover, planscatalogModel catalog, slugs, visibility, routed entriesenhancementNew feature or requestupstream-trackingBlocked on an upstream (Codex CLI/Desktop) fix; kept open for discoverability

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions