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
opencli grok ask --prompt "Write a long essay" --timeout 180
25
+
opencli grok ask --prompt "Write a long essay" --web --timeout 180
22
26
```
23
27
24
28
### Options
@@ -27,9 +31,23 @@ opencli grok ask --prompt "Write a long essay" --timeout 180
27
31
|--------|-------------|
28
32
|`--prompt`| The message to send (required) |
29
33
|`--timeout`| Wait timeout in seconds (default: 120) |
30
-
|`--new`| Start a new chat session (default: false) |
34
+
|`--new`| Start a new chat before sending (default: false) |
35
+
|`--web`| Opt into the explicit grok.com consumer web flow (default: false) |
36
+
37
+
## Behavior
38
+
39
+
-`opencli grok ask` keeps the upstream/default behavior intact.
40
+
-`opencli grok ask --web` switches to the newer hardened consumer-web implementation.
41
+
- The `--web` path adds stricter composer detection, clearer blocked/session-gated hints, and waits for a stabilized assistant bubble before returning.
31
42
32
43
## Prerequisites
33
44
34
-
- Chrome running and **logged into** grok.com
45
+
- The Grok adapter still depends on browser-backed access to `grok.com`
46
+
- For `--web`, Chrome should already be running with an authenticated Grok consumer session
0 commit comments