All News
NewsDocumentation

OpenClaw Prioritizes OAuth Over API Keys for xAI, Documents Gateway Benchmarks, and Corrects a Confusing Slash Command

The xAI provider documentation has been rewritten to lead with SuperGrok and X Premium OAuth flows instead of raw API keys. Gateway operators get detailed startup and restart benchmark documentation for the first time. A long-standing source of user confusion — whether /new and /reset do the same thing — is finally cleared up. And native Codex plugins move to a more discoverable section of the docs.

May 20, 20266 min read
xAI Provider

xAI Docs Rewritten Around OAuth, Not API Keys

4 files changed · docs-only

SuperGrok and X Premium OAuth are now the recommended authentication path for Grok access through OpenClaw. New setup flows split by user state: fresh installs use openclaw onboard --install-daemon, existing installs use openclaw models auth login --provider xai --method oauth. API keys remain documented as an alternate path.

Gateway Benchmarks

Gateway Startup and Restart Benchmarks Documented

2 files changed · 88 lines added · docs-only

New documentation covers startup benchmark probes with predefined case IDs like default, skipChannels, and fiftyPlugins. Restart benchmarks document SIGUSR1-triggered in-process restarts on macOS and Linux, capturing downtime, CPU, RSS, and trace metrics.

Slash Commands

/new and /reset Are Not the Same — Docs Now Say So

1 file changed · 1 line fixed · docs-only

The slash-commands reference previously described /reset as “the reset alias” of /new. In reality, /new archives the current session and starts a fresh one, while /reset wipes the current session in place.

Docs Navigation

Native Codex Plugins Move to Capabilities

1 file changed · navigation restructure · docs-only

The native Codex plugins documentation has been relocated from the References tab to the Capabilities tab, placed directly under the Codex harness guide. The intent: operators looking for what Codex can do should find bundled plugins without needing to dig through reference material.

xAI Gets an OAuth-First Setup Path

Until now, connecting Grok to OpenClaw meant generating an xAI API key and pasting it into the configuration. It worked, but it was never the smoothest experience — especially for users who already had SuperGrok or X Premium subscriptions and didn't want to manage yet another API credential.

The updated documentation flips that default. OAuth is now the recommended path, with API keys documented as an alternative for operators who prefer explicit credential management. The setup instructions split into three branches depending on where the user is in their OpenClaw journey: new installs go through the onboarding wizard, existing installs authenticate with a single CLI command, and API-key users continue as before.

A new troubleshooting section addresses the device-code flow — the fallback for environments where browser-based OAuth can't reach localhost. The docs also clarify that OAuth credentials work for Grok-backed web_search tools, and that the Grok Build app is not required. These are the kinds of details that save operators thirty minutes of experimentation.

The change ripples across four documentation files: the xAI provider page, the model-providers overview, the wizard CLI reference, and the code-execution guide. Each now reflects the OAuth-first posture. The model-providers table, for instance, previously listed only XAI_API_KEY as the authentication method. It now reads “SuperGrok/X Premium OAuth or XAI_API_KEY.”

Gateway Benchmarks Finally Have Documentation

OpenClaw's gateway has had benchmark probes for some time, but running them correctly required reading the test scripts directly. That changes now with two new documentation sections covering startup and restart benchmarks end to end.

The startup benchmark measures the full cold-boot sequence: process output, health and readiness probes, event-loop delay, and plugin lookup timings. It ships with predefined case IDs — default, skipChannels, oneInternalHook, fiftyPlugins — letting operators isolate specific subsystems and compare JSON output across runs.

The restart benchmark is more specialized. It uses SIGUSR1 to trigger an in-process restart on macOS and Linux, then captures downtime, ready timing, CPU usage, RSS memory, and restart-specific trace metrics including signal handling and close phases. The documentation explicitly notes that this doesn't work on Windows, and emphasizes using multiple samples and matching trace spans rather than relying on single measurements.

The docs also clarify a distinction that has caused confusion: /healthz is a liveness probe, while /readyz indicates usable readiness. They are not interchangeable, and the benchmark tooling treats them differently.

A One-Line Fix That Matters More Than It Looks

The slash-commands documentation previously described /reset as “the reset alias” of /new. That phrasing was wrong, and it caused real confusion. Users who thought the commands were interchangeable discovered too late that /reset wipes the current session in place, while /new archives it and starts fresh.

The difference is not academic. An archived session can be reviewed later. A wiped session is gone. Describing one as an alias for the other is the kind of documentation error that leads to lost context — and a one-line fix is all it takes to prevent it.

Codex Plugin Docs Get a Better Home

The native Codex plugins reference has been relocated from the References section to Capabilities, positioned directly under the Codex harness guide. It's a navigation change, not a content change, but it reflects how operators actually discover features. Bundled plugins are a capability — something Codex can do out of the box. Burying them in reference material meant operators had to already know they existed to find them.

Four documentation updates, each targeting a different part of the operator experience. The xAI OAuth rewrite is the most substantial — it signals that OpenClaw is treating subscription-based OAuth as the primary authentication pattern, not a secondary option bolted onto API-key workflows. The gateway benchmarks fill a gap that has existed since the profiling tools shipped. And the slash-command clarification is a reminder that a single misleading word in documentation can cost users real data.

Every upstream doc update. Deployed instantly.

DeployClaw ships every documentation and platform change the moment it lands upstream — so your instance is never behind.

DeployClaw News · by Carlos Simpson

DeployClaw hosts OpenClaw instances. Upstream fixes ship automatically. This publication covers development independently.