Multi-AI Terminal v0.2.3
Multi-AI Terminal v0.2.3
Sign in to your CLIs without leaving MAT
v0.2.2 could install a CLI for you — and then leave you stranded: the first run died because the CLI was installed but not signed in, and fixing that meant opening a terminal. Provider Setup now drives each CLI's own login flow directly:
- claude — MAT starts
claude auth login, shows you the sign-in link, and you paste the confirmation code from the browser back into MAT. MAT forwards it to the CLI and then verifies withclaude auth statusbefore reporting success. - codex — MAT starts the device flow, shows the link and the one-time code, and detects completion on its own once you approve in the browser. Note: codex discards its existing login the moment this flow starts; MAT warns you before it begins.
- grok — the same device-flow ceremony via
grok login --device-code.
Safety was the design driver. MAT only runs fixed, server-side login recipes on your explicit click; the sign-in URL is accepted only when it is https on that provider's own domains; your pasted code goes only to the CLI's standard input, never a command line; and MAT never reads, writes, or copies the CLI's credential store — the CLI itself performs the OAuth exchange, exactly as if you had run it in a terminal. Login URLs, codes, and CLI output are never written to diagnostics.
Update an outdated CLI with one click
The other way a "working" setup fails: the CLI is too old to expose a newer model, and runs die with a confusing error. When a CLI is detected, Provider Setup now offers Update CLI — claude runs its own claude update (which respects how it was installed), npm-installed CLIs reinstall @latest, and Antigravity upgrades through winget on Windows. The result reports the freshly detected version.
Also in this release
- Sign-in outcomes are first-class translated messages in both English and 繁體中文; the CLI's own status line (e.g. "Logged in using ChatGPT") is always shown verbatim.
- The whole sign-in ceremony is capped below the device-code expiry, a stuck login can be cancelled, and an abandoned CLI process is always cleaned up.
- 32 new tests drive the real recipes end to end against scripted fake CLIs: trusted-host rejection, plain-http rejection, kill-on-no-URL, timeout, the single-session lock, and output redaction.
Multi-AI Terminal v0.2.3(繁體中文)
不用離開 MAT 就能登入 CLI
v0.2.2 能幫你安裝 CLI——然後把你留在原地:第一次執行就因為「已安裝但未登入」而失敗,而解法卻要你自己開終端機。現在「服務提供者設定」可以直接驅動每個 CLI 自己的登入流程:
- claude — MAT 啟動
claude auth login,顯示登入連結;你在瀏覽器授權後,把確認代碼貼回 MAT。MAT 轉交給 CLI,並先以claude auth status驗證成功才回報完成。 - codex — MAT 啟動裝置授權流程,顯示連結與一次性代碼;你在瀏覽器核准後,MAT 會自動偵測完成。**注意:**codex 在這個流程一開始就會讓現有登入立即失效,MAT 會在開始前先警告你。
- grok — 透過
grok login --device-code走同樣的裝置授權流程。
安全性是這個設計的核心。MAT 只在你明確點擊時執行固定的伺服器端登入配方;登入連結必須是該服務自家網域的 https 才會顯示;你貼上的代碼只會送進 CLI 的標準輸入,絕不會進入任何命令列;MAT 也絕不讀取、寫入或複製 CLI 的憑證檔——OAuth 交換完全由 CLI 自己完成,跟你在終端機執行一模一樣。登入連結、代碼與 CLI 輸出永遠不會寫入診斷紀錄。
一鍵更新過舊的 CLI
另一種「看似正常卻會失敗」的情況:CLI 版本太舊、叫不出較新的模型,執行時只留下難懂的錯誤。現在只要偵測到 CLI,「服務提供者設定」就會提供更新 CLI——claude 使用它自己的 claude update(會尊重原本的安裝方式)、npm 安裝的 CLI 重新安裝 @latest、Windows 上的 Antigravity 透過 winget 升級,完成後回報重新偵測到的版本。
本版其他改進
- 登入結果訊息在英文與繁體中文都是完整翻譯的正式文案;CLI 自己的狀態文字(例如「Logged in using ChatGPT」)一律原文呈現。
- 整個登入流程的時限低於裝置代碼的有效期限;卡住的登入可以取消,被放棄的 CLI 程序一定會被清理。
- 新增 32 個測試以腳本化的假 CLI 完整驅動真實配方:不信任網域拒絕、純 http 拒絕、無連結時終止程序、逾時、單一登入鎖,以及輸出遮蔽。