[PR #1722] [CLOSED] draft: openai oauth using codex #10038

Closed
opened 2026-02-16 18:14:35 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1722
Author: @Waishnav
Created: 8/8/2025
Status: Closed

Base: devHead: openai-auth-through-codex


📝 Commits (1)

  • acffed1 reversed engieered the codex oauth flow and integrated similar in opencode along with handleing redirect uri callback api endpoint

📊 Changes

3 files changed (+215 additions, -0 deletions)

View changed files

packages/opencode/src/auth/openai.ts (+170 -0)
📝 packages/opencode/src/cli/cmd/auth.ts (+32 -0)
📝 packages/opencode/src/server/server.ts (+13 -0)

📄 Description

This PR is still in the draft state: #1686

What's working

  • Redirecting to open ai's auth url in browser
  • handling the callback to exchange the access token and refresh token
  • testing it and using gpt-5 model along with opencode's tools along with AI SDK

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1722 **Author:** [@Waishnav](https://github.com/Waishnav) **Created:** 8/8/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `openai-auth-through-codex` --- ### 📝 Commits (1) - [`acffed1`](https://github.com/anomalyco/opencode/commit/acffed19a75cac353aeaa9b7be9e923edeacc54c) reversed engieered the codex oauth flow and integrated similar in opencode along with handleing redirect uri callback api endpoint ### 📊 Changes **3 files changed** (+215 additions, -0 deletions) <details> <summary>View changed files</summary> ➕ `packages/opencode/src/auth/openai.ts` (+170 -0) 📝 `packages/opencode/src/cli/cmd/auth.ts` (+32 -0) 📝 `packages/opencode/src/server/server.ts` (+13 -0) </details> ### 📄 Description This PR is still in the draft state: #1686 What's working - [x] Redirecting to open ai's auth url in browser - [x] handling the callback to exchange the access token and refresh token - [ ] testing it and using gpt-5 model along with opencode's tools along with AI SDK --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:35 -05:00
yindo closed this issue 2026-02-16 18:14:35 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#10038