Skip to content

feat(xai): add Grok 4.5 support#102316

Merged
steipete merged 2 commits into
mainfrom
codex/grok-4-5-xai
Jul 9, 2026
Merged

feat(xai): add Grok 4.5 support#102316
steipete merged 2 commits into
mainfrom
codex/grok-4-5-xai

Conversation

@steipete

@steipete steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Closes #102312

What Problem This Solves

OpenClaw's bundled xAI catalog does not expose Grok 4.5, so users cannot select xAI's current flagship model through the normal provider and model flows.

Why This Change Was Made

This adds Grok 4.5's static and dynamic model metadata, official aliases, reasoning compatibility, live-model coverage, and regression tests. It keeps Grok 4.3 as the setup default because xAI currently limits Grok 4.5 availability by region; supported users can explicitly select xai/grok-4.5.

The docs now describe Grok 4.5 selection, aliases, thinking levels, pricing, context limits, and the regional-safe default.

User Impact

Users in supported regions can select xai/grok-4.5 and use low, medium, or high thinking levels. Existing xAI setup and default-model behavior remain unchanged.

Evidence

  • Live xAI model metadata confirmed grok-4.5, 500k context, current pricing, and the grok-4.5-latest / grok-build-latest aliases.
  • Live xAI Responses API passed non-streaming, streaming, and streamed tool-call scenarios.
  • A real embedded OpenClaw agent turn with xai/grok-4.5 and low thinking returned the expected marker over HTTP 200 SSE.
  • Exact-head Blacksmith Testbox: 160 focused tests passed; full docs checks passed; pnpm check:changed passed.
  • Fresh pre-commit autoreview reported no accepted or actionable findings.

AI-assisted implementation and validation.

@steipete steipete self-assigned this Jul 9, 2026
@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation agents Agent runtime and tooling extensions: xai size: M maintainer Maintainer-authored PR labels Jul 9, 2026
@clawsweeper

clawsweeper Bot commented Jul 9, 2026

Copy link
Copy Markdown
Contributor

Codex review: stale review; fresh review needed.

Summary
The latest durable ClawSweeper review was for head a61bc32be71d17a6060ed3318f9bca08b9ea7c3a, but the PR head is now ca55db80c669961882f7509be646ed41131fef6f. Its old verdict and PR readiness labels are no longer current.

Next step
Run or wait for a fresh ClawSweeper review on the current PR head.

@steipete

steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Land-ready proof for a61bc32be71d17a6060ed3318f9bca08b9ea7c3a:

  • Blacksmith Testbox tbx_01kx23frd3f8rjp4e1q3c78t9g: 57 core agent tests + 103 xAI plugin tests passed.
  • pnpm check:docs: passed.
  • pnpm check:changed: passed, including typecheck, lint, import-cycle, dependency, storage, and boundary guards.
  • Live xAI model metadata confirmed grok-4.5, 500k context, current pricing, and both official aliases.
  • Live xAI Responses API passed non-streaming, streaming, and streamed tool-call scenarios.
  • A real embedded OpenClaw turn using xai/grok-4.5 with low thinking returned the expected marker over HTTP 200 SSE.
  • Fresh autoreview: no accepted/actionable findings.

Review artifacts validate with recommendation READY FOR /prepare-pr and zero findings.

@steipete
steipete merged commit eae3fc1 into main Jul 9, 2026
100 checks passed
@steipete
steipete deleted the codex/grok-4-5-xai branch July 9, 2026 00:39
@steipete

steipete commented Jul 9, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

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

Labels

agents Agent runtime and tooling docs Improvements or additions to documentation extensions: xai maintainer Maintainer-authored PR size: M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Grok 4.5 to the xAI provider

1 participant