[new]grok doctor— run a read-only terminal and configuration report from the shell without starting the TUI. Covers terminal/multiplexer detection, color level, available themes, clipboard preflight, issues, recommendations, and probes that could not run. Use--jsonfor machine-readable output (safe to pipe; color detection does not rely on stdout). Exits successfully when a report is produced, even if it lists issues. Completions for bash, zsh, fish, elvish, and PowerShell include the new subcommand. Inside a session,/terminal-setup(and/terminal-check//terminal-info) still provide the interactive path with live runtime evidence.[new]External editor for the minimal-mode composer —Ctrl+Gopens the current draft in an external editor without sending it ($VISUAL, then$EDITOR, thenvi; values may include quoted arguments). Saving replaces the draft; an empty file clears it. New/edit-promptopens an empty editor draft (minimal mode only). When the terminal reservesCtrl+G, use Edit Prompt in External Editor from the command palette to keep the existing text; drafts with pasted/file/image chips stay in the composer so attachments are not flattened.[new]Per-model auth providers — define named credential helpers under[auth_provider.<name>]and point a model at them withauth_provider = "...". Intended for gateways and proxies with rotating bearer tokens while keeping normal xAI login for other models. Helpers follow the same stdout contract asauth_provider_command(bare token or JSON), cache tokens in memory per provider, support TTL/JWT/expires_in, refresh handback env vars, and optionaltoken_ttl_secs/timeout_secs. Literalapi_key/env_keyon a model still win; provider-backed models are BYOK and never fall back to the session token. Provider tables are honored only from trusted config layers (not project.grok/config.toml).[fix]Shell deny-rule coverage for inline scripts —ReadandEditdeny rules that already apply to paths touched by shell commands now also cover literal inline scripts passed tobash,sh,dash,zsh, orkshwith-c(symlink-resolving shell-level check unchanged).
Upgrade notes
No migration required. To diagnose terminal setup from CI or a plain shell, run grok doctor or grok doctor --json. For rotating third-party model credentials, add an [auth_provider.*] table in trusted config and set auth_provider on the model.