Replies: 2 comments
-
Scope correction (after reviewing #4874)I looked at open #4874 (
What that means
Correct product split
What I’m doing
Ask (updated)
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
vouched! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Request
Please !vouch @ART1KZ so I can open a PR. I am not in
.github/VOUCHED.tdyet; CONTRIBUTING says unvouched PRs are auto-closed, so I am starting here instead of opening a PR that would be closed on sight.Problem (tracked by #4945)
Current core path
xai-oauth/*(including the bundled modelxai-oauth/grok-build) talks tohttps://api.x.ai/v1(SuperGrok / API quota surface).Official Grok Build CLI traffic goes to:
https://cli-chat-proxy.grok.com/v1/responsesgrok-cli:accessgrok-pagerHAR / community reverse-engineering, e.g. decolua/9router):X-XAI-Token-Auth: xai-grok-clix-grok-client-identifier: grok-pagerx-grok-client-versionx-authenticateresponse: authenticate-responsex-grok-session-id/x-grok-conv-id(same id on main chat)x-grok-req-id(new uuid each request)x-grok-turn-idxx-grok-model-overrideWithout that route + fingerprint, users burn API quota even when they have Grok Build subscription quota (exactly #4945).
What already exists in core
xai-oauth+ curated modelgrok-buildonapi.x.aipromptCacheSessionHeader: "x-grok-conv-id"forxai-oauthgrok-cli:accessMissing piece is the CLI proxy product path, not the login ceremony alone.
Proposed design (separate provider, not a silent fallback)
Add a first-class provider
grok-build(catalog + registry), distinct fromxai/xai-oauth:grok-buildhttps://cli-chat-proxy.grok.com/v1openai-responsesgrok-build)XAI_API_KEYfallback (prevent silent API-quota burn)/v1/models(at leastgrok-4.5,grok-build,grok-composer-2.5-fast)/logout→grok-buildremoves only this provider credentialxai-oauthstays onapi.x.ai)Why separate provider (answers roboomp open questions on #4945):
*-build(e.g.grok-4.5-build) and Build dashboard/quota moves; API key path does not.Working prototype (extension)
I already shipped a portable extension that proves the path end-to-end:
omp plugin install github:ART1KZ/omp-grok-buildcli-chat-proxy.grok.com/v1/responses→ HTTP 200, modelgrok-4.5-buildomp -p --model grok-build/grok-4.5→ successful replygrok-build(logout works when nomodels.ymlapiKey override)Core PR scope (after vouch)
Following
docs/adding-a-provider.md:CATALOG_PROVIDERS+ model manager options for CLI proxypackages/ai/src/registry/grok-build.ts+ OAuth thunk (reuseregistry/oauth/xai-oauthflow, store asgrok-build)registry.tsALL listai/catalog/coding-agentas neededNon-goals for v1:
grok.exeside-jobs (recap-*jobs)xai-oauthSuperGrok usersRelated
Ask
!vouch @ART1KZgrok-buildprovider (recommended) vs only rewiringxai-oauth/grok-buildbaseUrl/headersmainwith full template + testsBeta Was this translation helpful? Give feedback.
All reactions