Skip to content

feat: add Poe OAuth auth plugin#18477

Merged
rekram1-node merged 5 commits intoanomalyco:devfrom
kamilio:feat/poe-auth-plugin
Mar 24, 2026
Merged

feat: add Poe OAuth auth plugin#18477
rekram1-node merged 5 commits intoanomalyco:devfrom
kamilio:feat/poe-auth-plugin

Conversation

@kamilio
Copy link
Copy Markdown
Contributor

@kamilio kamilio commented Mar 21, 2026

Issue for this PR

Closes #18478

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds Poe as a built-in auth provider using the opencode-poe-auth package — same pattern as opencode-gitlab-auth.

The package supports two auth methods:

  • Browser-based OAuth (PKCE)
  • Manual API key entry

All OAuth plumbing lives in the external package. The in-tree change is just importing and registering it in INTERNAL_PLUGINS.

How did you verify your code works?

  • bun typecheck passes across all packages.
  • Manual OAuth flow tested end-to-end.

Screenshots / recordings

poe test ts — opencode 2026-03-20 at 20 43 11

poe test ts — opencode 2026-03-20 at 20 43 25

OpenCode - Poe Authorization Successful 2026-03-20 at 20 43 32

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. and removed needs:compliance This means the issue will auto-close after 2 hours. labels Mar 21, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

@rekram1-node
Copy link
Copy Markdown
Collaborator

is there anyway we can do this as an npm package instead, we are prolly game to ship it out of the box but this isn't something we want to maintain ourselves.

@kamilio kamilio force-pushed the feat/poe-auth-plugin branch from 7145b2b to c03e653 Compare March 23, 2026 21:32
@kamilio
Copy link
Copy Markdown
Contributor Author

kamilio commented Mar 23, 2026

@rekram1-node thanks for the feedback, I used our library for the OAuth stuff, polished it up, removed anything unnecessary to not bloat your package size. Makes for a very lean PR. Let me know if you have any more thoughts.

@rekram1-node rekram1-node merged commit 00d3b83 into anomalyco:dev Mar 24, 2026
9 checks passed
Andres77872 pushed a commit to Andres77872/opencode that referenced this pull request Mar 26, 2026
dzianisv pushed a commit to dzianisv/opencode that referenced this pull request Mar 26, 2026
dzianisv pushed a commit to dzianisv/opencode that referenced this pull request Apr 2, 2026
balcsida pushed a commit to balcsida/opencode that referenced this pull request Apr 8, 2026
dzianisv pushed a commit to dzianisv/opencode that referenced this pull request Apr 9, 2026
xywsxp pushed a commit to xywsxp/opencode that referenced this pull request Apr 24, 2026
Rwanbt pushed a commit to Rwanbt/opencode that referenced this pull request May 5, 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.

[FEATURE]: Add Poe as a built-in auth provider

2 participants