feat(server): wire Grok Build effort, auth, rewind, and usage
Grok already advertised reasoning effort and rewind over ACP. T3 dropped the metadata and forced a new thread for model changes. Map the live effort menu into composer options, send session/set_model _meta.reasoningEffort, probe login, roll back turns through _x.ai/rewind, and emit thread token usage. Made with Grok 4.6.
This commit is contained in:
14 files changed
+953
-47
No files matched your search
+1
-1
@@ -12,7 +12,7 @@
|
||||
- [Keeping app and server in sync](./user/updating.md)
|
||||
- [Source control integrations](./user/source-control.md)
|
||||
- [Background service (Linux)](./user/background-service.md)
|
||||
- Providers: [Codex](./user/providers-codex.md) · [Claude](./user/providers-claude.md)
|
||||
- Providers: [Codex](./user/providers-codex.md) · [Claude](./user/providers-claude.md) · [Grok Build](./user/providers-grok.md)
|
||||
|
||||
Mobile app: [apps/mobile/README.md](../apps/mobile/README.md)
|
||||
|
||||
|
||||
@@ -75,6 +75,7 @@ authenticated shows its status in **Settings** and fails at session start with t
|
||||
to run.
|
||||
|
||||
For multi-account setups, see [Codex](./providers-codex.md) and [Claude](./providers-claude.md).
|
||||
For Grok Build login and effort, see [Grok Build](./providers-grok.md).
|
||||
|
||||
## Next Steps
|
||||
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
# Grok Build
|
||||
|
||||
This guide is for people who want to use Grok Build in T3 Code. For first-time setup, see
|
||||
[Install T3 Code](./install.md).
|
||||
|
||||
Log in with the Grok CLI on the machine that runs the T3 Code server:
|
||||
|
||||
```bash
|
||||
grok login
|
||||
```
|
||||
|
||||
You can also set `XAI_API_KEY` in the server environment instead of running `grok login`.
|
||||
|
||||
In T3 Code Settings, the default Grok provider can stay like this:
|
||||
|
||||
```text
|
||||
Display name: Grok
|
||||
Binary path: grok
|
||||
```
|
||||
|
||||
Use an explicit binary path when `grok` is not on the `PATH` of the shell that started T3 Code.
|
||||
|
||||
## Models and effort
|
||||
|
||||
T3 Code reads the live Grok model list from the CLI. Current Grok Build installs advertise
|
||||
`grok-4.6` and `grok-4.5`. Each model that supports reasoning effort shows a Reasoning control in
|
||||
the composer. The menu comes from the CLI, so the levels can differ by model.
|
||||
|
||||
T3 Code sends the selected effort on the live session. You do not need a new thread to change
|
||||
model or effort.
|
||||
|
||||
## If Grok looks ready but will not start
|
||||
|
||||
Run `grok login` again on the server machine. T3 Code reports an unauthenticated Grok install in
|
||||
Settings when ACP login fails.
|
||||
Reference in new issue
Block a user