Skip to content

Add Grok API and OAuth support - #413

Merged
RasulOs merged 4 commits into
mainfrom
feature/add-grok
Aug 13, 2026
Merged

Add Grok API and OAuth support#413
RasulOs merged 4 commits into
mainfrom
feature/add-grok

Conversation

@RasulOs

@RasulOs RasulOs commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Adds first-class XAI support for grok-4.5 through the Responses API.
  • Supports XAI_API_KEY and OAuth setup with mobilerun configure xai.
  • Supports text, tools, images, structured output, streaming, and usage accounting.
  • Adds provider configuration, concise CLI documentation, and focused regressions.

Validation

  • Focused provider tests: 281 passed
  • Complete test suite: 570 passed, 3 subtests passed
  • Scoped Ruff, lockfile, dependency, and diff checks: passed
  • Android 16 / API 36 Portal gate: 12 of 12 passed
Provider API direct API reasoning OAuth direct OAuth reasoning
XAI Passed — 46,763 tokens, 3 actions Passed — 49,233 tokens, 4 actions Passed — 30,867 tokens, 4 actions Passed — 36,866 tokens, 4 actions
Anthropic Passed — 11,339 tokens, 3 actions Passed — 53,738 tokens, 5 actions Passed — 39,769 tokens, 4 actions Passed — 53,765 tokens, 5 actions
Gemini Passed — 16,076 tokens, 3 actions Passed — 40,815 tokens, 4 actions Passed — 145,024 tokens, 21 actions Passed — 30,358 tokens, 4 actions

Each live case used the exact provider and model, restored the Android 16 snapshot, required Portal UI evidence and positive usage, completed a real device action, independently verified the answer, and returned Home.

@RasulOs
RasulOs marked this pull request as ready for review August 12, 2026 16:25
@RasulOs

RasulOs commented Aug 12, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: b0c4b7cc7e

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobilerun/config_manager/auth_profile_store.py Outdated
Comment thread mobilerun/cli/configure_wizard.py Outdated
@RasulOs

RasulOs commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 52dcd52d8a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread mobilerun/cli/oauth_actions.py
Comment thread mobilerun/agent/utils/oauth/grok_oauth_llm.py Outdated
@RasulOs

RasulOs commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. 🚀

Reviewed commit: c76e81fd89

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@RasulOs
RasulOs merged commit e422171 into main Aug 13, 2026
6 of 7 checks passed
@mintlify

mintlify Bot commented Aug 13, 2026

Copy link
Copy Markdown

Docs PR opened: https://github.com/droidrun/mobilerun-docs/pull/54

Added xAI Grok provider docs to framework quickstart, CLI guide, and SDK configuration, covering API key and OAuth setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant