Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

signin with openai

クローズ
#1,572 コメント 0 件 リアクション 0 件 担当者 1 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

@jherr がすでに取り組んでいます。

2026年9月30日 から。

  • #1574 @tombeckenham による — マージ済み

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
45/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
react, typescript

調査の方向性

Start by reading OpenAI's SIWC token-sharing documentation and the existing @tanstack/ai-openrouter/pkce implementation. The scope also names the BYOK keyring, the ts-react-chat BYOK key dialog, the BYOK and OpenAI adapter documentation, and unit tests for the helpers. Done means the specified sign-in, callback, token refresh, UI, docs, and tests are covered, while respecting the stated token and Responses API limits.

索引モデルが issue の本文から書いたものです。

説明

has-pr waiting-on: maintainer

Add "Sign in with ChatGPT" (SIWC) to BYOK, so a user can use their ChatGPT plan instead of pasting an OpenAI API key.

OpenAI docs: https://developers.openai.com/siwc/token-sharing-open-source

Scope

  • New subpath @tanstack/ai-openai/siwc, modelled on @tanstack/ai-openrouter/pkce.
    • Start: dynamic client registration (client_id=dynamic_agent_client, agent_name_hint, persisted ext_agent_host_id), state, nonce, PKCE S256, redirect http://127.0.0.1:<port>/auth/callback.
    • Callback: check state, handle error, keep the issued client_id, exchange the code at https://auth.openai.com/api/accounts/oauth/token, check that chatgpt.tokens.use.direct was granted.
    • Refresh on the client: keep the credential (client id, refresh token, expiry) in the BYOK keyring. A helper refreshes the access token before it expires and writes it into the openai slot. The relay sees an ordinary x-byok-openai bearer value.
  • No adapter change. Docs explain the SIWC Responses limits (store: false, stream: true, no temperature/max_output_tokens/metadata/previous_response_id, no hosted tools).
  • ts-react-chat: "Continue with ChatGPT" button in the BYOK key dialog.
  • Docs: BYOK page and OpenAI adapter page. Unit tests for the helpers.

Constraints

  • OpenAI allows this only for open-source and locally hosted apps. Hosted apps need OpenAI's interest form.
  • The redirect must be 127.0.0.1 (not localhost) with the path /auth/callback.
  • Access tokens last 1 hour. Refresh tokens last 30 days and rotate on every refresh.
主要言語
TypeScript
スター
3.2k
フォーク
365
平均マージ
1日 8時間
マージ済み PR(30日)
261

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/ai のほかの issue

TanStack/ai の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。