AnyBot/mobile
王性驊 a03f7c7458 feat: ChatGPT 方案——用 ChatGPT 帳號登入,Bot 用你 ChatGPT 方案的額度,不用 API 金鑰
- 新供應商「ChatGPT 方案」(src/chatgpt.rs):照 OpenAI 給開源 App 的 Sign in with ChatGPT。
  第一次登入註冊 AnyBot(dynamic_agent_client → oaiapp_…)並重用;PKCE、state、nonce;
  ID token 驗 RS256 簽章、iss、aud、exp、nonce;沒同意使用方案算登入但不能用(再登入會要求同意)。
- 要求走 Responses API(api.openai.com/v1/responses,store:false、stream:true、instructions),
  token 只送 OpenAI 自己的網址;收到 response.completed 才算完成;額度用完停下來給管理用量連結,
  不重試、不改用 API 金鑰。token 快到期或 401 時更新(一次一個,refresh token 會輪替)。
- 設定 › 模型 › ChatGPT 方案:使用 ChatGPT 繼續、登出、換帳號、打開登入頁、管理用量;
  連到伺服器大腦的螢幕電腦和手機也能登入(登入頁開在自己這台,打不開的那頁網址貼回給大腦)。
- Bot 工具 chatgpt_login(status、login、logout、switch_account;登出和換帳號先問)。
- 修連接器登入:封存的 token 前綴寫錯("sealed:" 實際是 "enc:v1:"),重開 App 後 token
  沒解開就被當成憑證送出,登入等於每次重開都失效。

已驗證: cargo test 全綠(chatgpt::、providers::、appctl::、remote::、mcp_oauth::、featuremap::、layout_audit::);
  授權網址的參數送到 auth.openai.com 沒被拒(302 到登入頁)。
未驗證: 實際用 ChatGPT 帳號登入、同意、Responses 串流與工具呼叫(要真的 ChatGPT 付費帳號和瀏覽器);
  螢幕電腦貼回網址、手機登入(要實機);Windows 的「打開登入頁」。
  動到審批路徑(appctl::needs_approval 的 chatgpt_login):需要實機測試+人類簽名。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-17 17:23:10 +08:00
..
badge-96.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon-180.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-192.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-512.png 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
icon-maskable-192.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon-maskable-512.png feat: 電腦版不再破版、通知用 AnyBot 的貓、手機網頁像 App;從帳號看畫面不再斷線 2026-11-16 00:06:12 +08:00
icon.svg 圖示: the cat — an ink engraving on yellow — is AnyBot's icon on the computer and the web 2026-11-11 23:24:05 +08:00
index.html feat: ChatGPT 方案——用 ChatGPT 帳號登入,Bot 用你 ChatGPT 方案的額度,不用 API 金鑰 2026-11-17 17:23:10 +08:00
manifest.webmanifest 合併: 手機網頁的改良(web-pwa-polish):新訊息進場、iOS 鍵盤、觸感、主畫面捷徑、通知上直接允許/拒絕 2026-11-17 13:54:10 +08:00
novnc.js People watch and help on the bots' computer through VNC (noVNC), carried by the account server 2026-11-05 23:05:44 +08:00
screen.html design: 手機網頁顏色跟著電腦版、改成 Claude 手機 App 的感覺,實點修好 12 個問題 2026-11-16 23:16:38 +08:00
sw.js 合併: 手機網頁的改良(web-pwa-polish):新訊息進場、iOS 鍵盤、觸感、主畫面捷徑、通知上直接允許/拒絕 2026-11-17 13:54:10 +08:00