openclaw - 💡(How to fix) Fix xai provider not registering x_search / code_execution tools even with valid Grok model

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Fix Action

Fix / Workaround

Workaround Currently using SearXNG + web_fetch as fallback.

RAW_BUFFERClick to expand / collapse

Environment

  • OpenClaw version: 2026.4.27 (also tested after update to 2026.5.5)
  • OS: WSL2 (Ubuntu)
  • Model: grok-4.3 (correct ID from xAI console)

Problem The xai provider is not registering the x_search and code_execution tools, even after:

  • Correcting the model list in models.json (removed invalid grok-4.3-fast)
  • Full gateway restart (systemctl --user restart openclaw-gateway)
  • Using a valid model (grok-4.3) that exists in the xAI account

After restart, web_search still falls back to SearXNG instead of using the native xai tool.

Logs observed

  • chokidar@^5.0.0 installs correctly on every startup
  • No more model_not_found errors for grok-4.3
  • No errors related to xai provider failing to load
  • Gateway reports normal startup, but x_search tool is never available

Expected behavior When using a valid Grok model (grok-4.3), the xai provider should register x_search and code_execution tools.

Workaround Currently using SearXNG + web_fetch as fallback.

Additional info

  • API key is correctly configured
  • Other providers (deepseek, codex) work normally

Can someone confirm if this is a known limitation or if there's additional configuration needed to enable xai tools?

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

openclaw - 💡(How to fix) Fix xai provider not registering x_search / code_execution tools even with valid Grok model