Skip to content

fix(opencode): make xAI OAuth device-only - #40537

Merged
rekram1-node merged 2 commits into
devfrom
xai-device-auth
Aug 5, 2026
Merged

fix(opencode): make xAI OAuth device-only#40537
rekram1-node merged 2 commits into
devfrom
xai-device-auth

Conversation

@rekram1-node

Copy link
Copy Markdown
Collaborator

Summary

  • replace xAI loopback OAuth with the existing RFC 8628 device flow
  • expose one SuperGrok subscription method that works locally and remotely
  • remove the loopback server, PKCE, CORS, and callback code
  • preserve xAI attribution with referrer=opencode
  • update tests and provider docs

Fixes #38784.

Testing

  • bun test test/plugin/xai.test.ts (24 xAI tests pass; process later fails on the existing Schedule.either is not a function error in packages/core/src/util/effect-flock.ts)

@rekram1-node rekram1-node changed the title fix(opencode): use xAI device authentication fix(opencode): make xAI OAuth device-only Aug 5, 2026
@rekram1-node
rekram1-node merged commit cb88db6 into dev Aug 5, 2026
9 checks passed
@rekram1-node
rekram1-node deleted the xai-device-auth branch August 5, 2026 02:18
banlanzs pushed a commit to banlanzs/opencode that referenced this pull request Aug 6, 2026
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.

Grok auth fails

1 participant