feat: add Grok Build CLI provider - #26940
Closed
canderson26 wants to merge 1 commit into
Closed
Conversation
Collaborator
Author
|
Happy to coordinate with #25968. I think the scopes are complementary rather than competing:
If preferred, I can rebase after #25968 lands and reuse any shared xAI provider registry/auth helpers, but I’d keep |
Author
|
Closing this for now. The fork live branch is back at upstream parity, and we will let the broader xAI provider work settle in the community rather than carrying a separate Grok Build CLI provider PR. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a first-class
grok-buildprovider backed by the local Grok Build CLI.grok-buildin the provider registry, model catalog, aliases, model picker, runtime resolver, and auxiliary client pathGrokCliClient, an OpenAI-compatible shim aroundgrok --prompt-filefor headless turns--no-memory --disable-web-search --max-turns 1 --output-format plain --effort xhighHERMES_GROK_BUILD_COMMAND,GROK_CLI_PATH,HERMES_GROK_BUILD_ARGS, andHERMES_GROK_BUILD_EFFORTTesting
venv/bin/python -m py_compile agent/grok_cli_client.py agent/model_metadata.py hermes_cli/auth.py hermes_cli/models.py hermes_cli/runtime_provider.py hermes_cli/providers.py hermes_cli/model_normalize.py hermes_cli/model_switch.py hermes_cli/main.py hermes_cli/setup.py agent/auxiliary_client.py run_agent.py tests/agent/test_grok_cli_client.py tests/agent/test_model_metadata_local_ctx.py tests/hermes_cli/test_api_key_providers.py tests/hermes_cli/test_model_validation.py tests/run_agent/test_run_agent.pyvenv/bin/python -m pytest tests/agent/test_grok_cli_client.py tests/agent/test_model_metadata_local_ctx.py tests/hermes_cli/test_api_key_providers.py tests/hermes_cli/test_model_validation.py tests/run_agent/test_run_agent.py::test_aiagent_uses_grok_cli_client -qNotes
This provider relies on an already-authenticated local Grok Build CLI session. Run
grok loginand confirmgrok modelsincludesgrok-build.