+ {checking && (
+
+ progress_activity
+ Checking Grok Build...
+
+ )}
+
+ {!checking && grokStatus && !grokStatus.installed && (
+
+
+
+
warning
+
+
Grok Build not detected locally
+
Install:
+
curl -fsSL https://x.ai/cli/install.sh | bash
+
Manual configuration is still available if 9router is deployed on a remote server.
+
+
+
+
+
+
+
+ )}
+
+ {!checking && grokStatus?.installed && (
+ <>
+
+ {tool.notes && tool.notes.length > 0 && (
+
+ {tool.notes.map((note, idx) => (
+
+
+ {note.type === "warning" ? "warning" : note.type === "error" ? "error" : "info"}
+
+ {note.text}
+
+ ))}
+
+ )}
+
+
+ Select Endpoint
+ arrow_forward
+
+
+
+ {grokStatus?.settings?.model?.base_url && (
+
+ Current
+ arrow_forward
+
+ {grokStatus.settings.model.base_url}
+ {grokStatus.settings.model.model ? ` · ${grokStatus.settings.model.model}` : ""}
+
+
+ )}
+
+
+
API Key
+
arrow_forward
+
+
+
+
+
Default Model
+
arrow_forward
+
+ setSelectedModel(e.target.value)}
+ placeholder="provider/model-id"
+ className="w-full min-w-0 pl-2 pr-7 py-2 bg-surface rounded border border-border text-xs focus:outline-none focus:ring-1 focus:ring-primary/50 sm:py-1.5"
+ />
+ {selectedModel && (
+
+ )}
+
+
+
+
+
+ {message && (
+
+ {message.type === "success" ? "check_circle" : "error"}
+ {message.text}
+
+ )}
+
+
+
+
+
+
+ >
+ )}
+
+ )}
+
+