#8976·multica

[Feature]: Add Sign in with ChatGPT for local Codex runtimes

Author: areddddCreated Sep 30, 2026Updated Sep 30, 2026

Deployment type

Self-hosted CLI/daemon; the same local runtime can connect to the Official App.

Area

CLI; Agents and runtimes

What do you want and why?

Multica's built-in Codex runtime currently relies on the Codex CLI's own authentication. OpenAI now documents a separate Sign in with ChatGPT flow for open-source applications, including a Codex app-server integration. Multica should be able to request its own authorization and use the selected ChatGPT plan through that public integration.

The registration, renewable credentials, model list, and conversation ownership need to belong to the selected local account. Importing Codex's saved login or reusing another account's thread would not implement this flow correctly.

Proposed solution

Add an opt-in multica chatgpt command group for sign-in, saved accounts, selection, models, status, sign-out, and explicit restoration of Codex's own authentication. Keep credentials on the daemon host, use PKCE/OIDC and the issued client ID, serialize refresh-token rotation, and revoke renewable sessions on sign-out.

Wire the selected registration into the existing built-in Codex app-server backend using OpenAI's public Responses endpoint. Use the account's live model catalog and isolate conversations when accounts or authentication modes change. Failed authorization must not silently switch accounts or billing methods. Existing Codex authentication and custom runtime wrappers should retain their behavior unless this mode is selected.

A local implementation and regression tests are prepared; the linked PR will include validation results and current test-environment limitations.