You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Summary
- add the xAI provider and Grok model metadata
- extend configuration, env hydration, and runtime wiring for xai
- refresh docs and tests to surface Grok support
## Testing
- bun test ./tests/models/knownModels.test.ts
- make typecheck
_Generated with _
Copy file name to clipboardExpand all lines: docs/models.md
+28Lines changed: 28 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,30 @@ Access Gemini models directly via Google's generative AI API:
49
49
50
50
TODO: add issue link here.
51
51
52
+
#### xAI (Grok)
53
+
54
+
Frontier reasoning models from xAI with built-in search orchestration:
55
+
56
+
-`xai:grok-4-1` — Fast unified model (switches between reasoning/non-reasoning based on thinking toggle)
57
+
-`xai:grok-code` — Optimized for coding tasks
58
+
59
+
**Setup:**
60
+
61
+
1. Create an API key at [console.x.ai](https://console.x.ai/)
62
+
2. Add to `~/.mux/providers.jsonc`:
63
+
64
+
```jsonc
65
+
{
66
+
"xai": {
67
+
"apiKey":"sk-xai-...",
68
+
},
69
+
}
70
+
```
71
+
72
+
**Search orchestration:**
73
+
74
+
Mux enables Grok's live search by default using `mode: "auto"` with citations. Add [`searchParameters`](https://docs.x.ai/docs/resources/search) to `providers.jsonc` if you want to customize the defaults (e.g., regional focus, time filters, or disabling search entirely per workspace).
75
+
52
76
#### OpenRouter (Cloud)
53
77
54
78
Access 300+ models from multiple providers through a single API:
@@ -167,6 +191,10 @@ All providers are configured in `~/.mux/providers.jsonc`. Example configurations
0 commit comments