openclaw - 💡(How to fix) Fix [Bug]: xAI image generation and TTS work via infer but not through Crestodian REPL

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…

Crestodian does not route xAI image generation or TTS requests to the available tools, even though the same providers work through openclaw infer.

In my environment:

  • openclaw infer image generate works with xAI OAuth.
  • openclaw infer tts convert --gateway works with xAI OAuth.
  • @openclaw/xai-plugin is enabled and recognized.
  • However, Crestodian/REPL does not invoke image_generate or /tts.
  • Direct /tool image_generate ... fails with Unable to map image_generate to allowed Crestodian commands.
  • Natural-language image generation requests are interpreted as plugin search instead of tool execution. /tts audio ... is interpreted as overview.

This looks like a routing/allowed-command issue in Crestodian rather than an xAI auth or provider issue.

Root Cause

Crestodian does not route xAI image generation or TTS requests to the available tools, even though the same providers work through openclaw infer.

In my environment:

  • openclaw infer image generate works with xAI OAuth.
  • openclaw infer tts convert --gateway works with xAI OAuth.
  • @openclaw/xai-plugin is enabled and recognized.
  • However, Crestodian/REPL does not invoke image_generate or /tts.
  • Direct /tool image_generate ... fails with Unable to map image_generate to allowed Crestodian commands.
  • Natural-language image generation requests are interpreted as plugin search instead of tool execution. /tts audio ... is interpreted as overview.

This looks like a routing/allowed-command issue in Crestodian rather than an xAI auth or provider issue.

Code Example

openclaw infer image generate \
  --model xai/grok-imagine-image-quality \
  --prompt "A retro Japanese travel poster of Ome Station" \
  --aspect-ratio 3:4 \
  --resolution 1K \
  --count 1

---

@openclaw/xai-plugin   │ xai      │ openclaw │ enabled  │ stock:xai/index.js2026.5.18

---

openclaw config set agents.defaults.imageGenerationModel.primary xai/grok-imagine-image-quality
openclaw gateway restart

---

/tool image_generate action=generate prompt="A retro Japanese travel poster of Ome Station" aspectRatio=3:4 resolution=1K count=1

---

A retro Japanese travel poster of Ome Station を画像生成してください。aspect ratio は 3:4、resolution は 1K、count は 1 です。

---

/tts audio Hello. This is an xAI text to speech test from OpenClaw.

---

openclaw infer tts convert \
  --gateway \
  --model xai/tts \
  --voice eve \
  --text "Hello." \
  --output hello-gateway.mp3

---

openclaw infer tts convert \
  --gateway \
  --model xai/tts \
  --voice eve \
  --text "Hello." \
  --output hello-gateway.mp3

---

tts.convert via gateway
provider: xai
outputs: 1
/home/masakielastic/hello-gateway.mp3

---

openclaw onboard --auth-choice xai-oauth

---

@openclaw/xai-plugin   │ xai      │ openclaw │ enabled  │ stock:xai/index.js2026.5.18

---

openclaw config set agents.defaults.imageGenerationModel.primary xai/grok-imagine-image-quality
openclaw gateway restart

---

Config: valid
Path: /home/masakielastic/.openclaw/openclaw.json

---
RAW_BUFFERClick to expand / collapse

Bug type

Behavior bug (incorrect output/state without crash)

Beta release blocker

No

Summary

Crestodian does not route xAI image generation or TTS requests to the available tools, even though the same providers work through openclaw infer.

In my environment:

  • openclaw infer image generate works with xAI OAuth.
  • openclaw infer tts convert --gateway works with xAI OAuth.
  • @openclaw/xai-plugin is enabled and recognized.
  • However, Crestodian/REPL does not invoke image_generate or /tts.
  • Direct /tool image_generate ... fails with Unable to map image_generate to allowed Crestodian commands.
  • Natural-language image generation requests are interpreted as plugin search instead of tool execution. /tts audio ... is interpreted as overview.

This looks like a routing/allowed-command issue in Crestodian rather than an xAI auth or provider issue.

Steps to reproduce

  1. Complete xAI OAuth onboarding:

openclaw onboard --auth-choice xai-oauth

  1. Confirm xAI image generation works via CLI:
openclaw infer image generate \
  --model xai/grok-imagine-image-quality \
  --prompt "A retro Japanese travel poster of Ome Station" \
  --aspect-ratio 3:4 \
  --resolution 1K \
  --count 1
  1. Confirm the xAI plugin is enabled:
@openclaw/xai-plugin   │ xai      │ openclaw │ enabled  │ stock:xai/index.js │ 2026.5.18
  1. Set the default image generation model:
openclaw config set agents.defaults.imageGenerationModel.primary xai/grok-imagine-image-quality
openclaw gateway restart
  1. Enter the Crestodian/REPL session and try direct tool invocation:
/tool image_generate action=generate prompt="A retro Japanese travel poster of Ome Station" aspectRatio=3:4 resolution=1K count=1
  1. Try a natural-language image generation request:
A retro Japanese travel poster of Ome Station を画像生成してください。aspect ratio は 3:4、resolution は 1K、count は 1 です。
  1. Try TTS in the REPL:
/tts audio Hello. This is an xAI text to speech test from OpenClaw.
  1. Confirm TTS works via CLI gateway execution:
openclaw infer tts convert \
  --gateway \
  --model xai/tts \
  --voice eve \
  --text "Hello." \
  --output hello-gateway.mp3

Expected behavior

Crestodian should route image generation and TTS requests to the available enabled tools/providers when xAI OAuth onboarding has completed and the provider works via openclaw infer.

Expected examples:

  • /tool image_generate ... should invoke the image generation tool.
  • A natural-language image generation request should call image_generate.
  • /tts audio ... should invoke TTS rather than being interpreted as overview.

Actual behavior

Direct image tool invocation fails:

Unable to map image_generate to allowed Crestodian commands. [crestodian] interpreted: overview

Natural-language image generation requests do not invoke image_generate. Instead, Crestodian searches ClawHub plugins:

[crestodian] interpreted: plugins search image generation [crestodian] queued: plugins.search [crestodian] running: plugins.search ClawHub plugins (1) @imcaptor/openclaw-poe-image ...

TTS in the REPL is also interpreted as overview:

/tts audio Hello. This is an xAI text to speech test from OpenClaw.

[crestodian] planner: xai/grok-4.3 Processing your request via overview. [crestodian] interpreted: overview Crestodian online. Little claws, typed tools.

However, CLI gateway TTS works:

openclaw infer tts convert \
  --gateway \
  --model xai/tts \
  --voice eve \
  --text "Hello." \
  --output hello-gateway.mp3

Output:

tts.convert via gateway
provider: xai
outputs: 1
/home/masakielastic/hello-gateway.mp3

OpenClaw version

OpenClaw 2026.5.18 (50a2481)

Operating system

Chromebook Crostini / Debian bookworm

Install method

npm / Node environment managed with mise

Model

xai/grok-4.3

Provider / routing chain

agent crestodian (Crestodian) | session main (Crestodian) | xai/grok-4.3

Additional provider/model setup details

xAI OAuth onboarding was completed using:

openclaw onboard --auth-choice xai-oauth

xAI plugin is enabled:

@openclaw/xai-plugin   │ xai      │ openclaw │ enabled  │ stock:xai/index.js │ 2026.5.18

Default image generation model was set:

openclaw config set agents.defaults.imageGenerationModel.primary xai/grok-imagine-image-quality
openclaw gateway restart

The local config was reported as valid:

Config: valid
Path: /home/masakielastic/.openclaw/openclaw.json

This seems to indicate that provider setup and OAuth are working, but Crestodian's command/tool routing does not expose or invoke the available image generation and TTS tools.

Logs, screenshots, and evidence

Impact and severity

No response

Additional information

No response

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…

FAQ

Expected behavior

Crestodian should route image generation and TTS requests to the available enabled tools/providers when xAI OAuth onboarding has completed and the provider works via openclaw infer.

Expected examples:

  • /tool image_generate ... should invoke the image generation tool.
  • A natural-language image generation request should call image_generate.
  • /tts audio ... should invoke TTS rather than being interpreted as overview.

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 [Bug]: xAI image generation and TTS work via infer but not through Crestodian REPL